This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client"; | |
| import { ComponentProps, useEffect, useRef } from "react"; | |
| import { useVirtualizer, useWindowVirtualizer } from "@tanstack/react-virtual"; | |
| import { Card, CardContent } from "@/components/ui/card"; | |
| import Link from "next/link"; | |
| import { cn } from "@/lib/utils"; | |
| interface CollectionItem { | |
| href?: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| if __name__ == '__main__': | |
| # setup cuesheet entries | |
| cuesheetEntries = [] | |
| # obtain comment | |
| chapterComment = [] | |
| # commentFilename = input("Comment filename (txt) > ") | |
| # with open(f"./{commentFilename}", 'r') as file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def parse_cue_sheet(filename): | |
| """Parses a CUE sheet and returns a list of track dictionaries. | |
| Args: | |
| filename: The path to the CUE sheet file. | |
| Returns: | |
| A list of dictionaries, where each dictionary contains the following keys: | |
| order: The order of the track in the CUE sheet. | |
| title: The title of the track. |