Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.2k stars 97 forks source link

Support YouTube links with `/shorts/` as part of the URL #196

Closed ClementTsang closed 6 months ago

ClementTsang commented 6 months ago

Livestreams that are shorts seem to have a url like https://www.youtube.com/shorts/<ID>, which currently give an error if you use them with ytarchive. This PR just adds support for these URLs.

Tested by building and running with a shorts livestream that was scheduled to start soon. Prior to the change it would error out, after the change it accepts the URL.

Kethsar commented 6 months ago

Huh, do they? I've genuinely not encountered this yet. Even went to check by searching for streams with #shorts in the title, or streams I know were in the garbage format already, and they all use watch. Ah well. Much as I hate this garbage, I know there are probably people doing it in a valid way.

ClementTsang commented 6 months ago

Late response, but yeah, I only recently encountered it too, was blindly copying in an upcoming livestream someone sent to ytarchive and only realized it was a shorts link when it failed. 🤷