For example
- capsPath <- getFullPath (T.unpack (coerce dir <> coerce videoName <> ".en.vtt"))
+ capsPath <- getFullPath (T.unpack (coerce dir <> "/" <> coerce videoName <> ".en.vtt"))
Needed to apply the same change in a few places.Also found
--sub-langs en
doesn't work if the videos has for example en-CA as the subtitle language.And finally, youtube-dlc seems to inconveniently discard the VTT file, breaking glancer, unless you specify `-k` to keep the file.
Subs: that's kind of known, I need to provide the option to the user to choose sub language in weird cases. I'll try to find a way.
VTT file: oh, that's definitely new, is not the case with the version I have installed. I'll have a look ASAP and add this parameter.
I feel this is how I currently approach an unfamiliar artist or creator - skip ahead to random points in the video and if I still find them engaging, I rewatch from 0. This type of AI would be so great.
Your idea sounds intriguing, though. I wonder how one could measure _interest_ in this regard, some form of entropy measure might be right, but how to construct it would be the fun part.
I'm not keen on using any of its forks for the moment.
apt-cache policy youtube-dl
youtube-dl:
Installed: 2021.01.08-1
Candidate: 2021.02.04.1-1
Combining youtube-dl with vtt2txt.py[1] would usually give me a transcript, however this no longer works for me (for now): $> youtube-dl --skip-download --convert-subs vtt https://www.youtube.com/watch?v=iGLzWdT7vGc
$> find . -name "*.vtt" -exec python vtt2text.py {} \;
[1] https://gist.github.com/glasslion/b2fcad16bc8a9630dbd7a945ab...