captn3m0 / youtube-cue

Generate CUE sheet from timestamps in youtube video description
15 stars 0 forks source link

Support non-Youtube sources #67

Open captn3m0 opened 3 years ago

captn3m0 commented 3 years ago

Since the core of the project is a generic timestamp parser to cue sheet generator, it might be helpful to support parsing text directly. Something like:

youtube-cue file.txt output.cue

Where file.txt contains:

[00:00:00] 1. Artist - Title
[00:02:53] 2. Artist - Title
[00:05:55] 3. Artist - Title
[00:08:49] 4. Artist - Title

And the cue sheet is generated accordingly.

porg commented 3 years ago

This is very much appreciated! Especially when still having some MP3+TXT lying around from the times before Youtube, as many DJs used to provide on their own websites back then. And as many online radios and podcasts (music and speech likewise) still do!

porg commented 3 years ago

How is the state of development in that regard?

captn3m0 commented 3 years ago

Haven't had the time so far. Maybe this weekend.

captn3m0 commented 3 years ago

@porg I pushed some rough code for this in #82. You can try it out locally with

npm install captn3m0/youtube-cue#file-processor

Required a lot more changes than I'd thought of, mainly because I can't get album artist or album information from plain text files.

porg commented 3 years ago

I looked through the DJ Mixes which I wanted to cut with the playlist files. Turns out they all only have number + artist + title, but no timecodes ahead. Cannot test with realistic dataset. But will later try with custom made tracklist file.