faissaloo / SponSkrub

Strip advertisements from downloaded YouTube videos
GNU General Public License v3.0
177 stars 7 forks source link

Doesn't work when video ID starts with a - #8

Closed pukkandan closed 3 years ago

pukkandan commented 3 years ago

Eg: sponskrub "-0PyDhv6jlA" test.webm test2.webm The id is detected as a switch when it starts with a -.

youtube-dl uses a switch -- to force such ids as url. Eg: youtube-dl -0PyDhv6jlA doesn't work, but youtube-dl -- -0PyDhv6jlA does. It'd be great if you could implement a similar feature

faissaloo commented 3 years ago

Yeah -- seems to be the standard Unix way of preventing things from being parsed as flags thank for pointing that out, I'll probably look into next weekend, right now I need sleep fam goodnight

pukkandan commented 3 years ago

I have created a pull request.

I have no experience with D-Lang, so make sure to review the code before you merge.

faissaloo commented 3 years ago

Thanks a ton!
Also I just saw what that video id was image