po5 / mpv_sponsorblock

mpv script to skip sponsored segments of YouTube videos
GNU General Public License v3.0
530 stars 29 forks source link

Support for local files downloaded with youtube-dl #5

Closed TheFrenchGhosty closed 4 years ago

TheFrenchGhosty commented 4 years ago

By default, youtube-dl name files [Title]-[VIDEOID].[ext]

Since those stuff are close to standard when using youtube-dl, it would be nice if this script could support it.

My idea would be to have a wildcard for every file that end with -ID.mkv and -ID.mp4.

I will soon add something similar in my scripts (but I'm waiting to see how you will implement it (if you do).

po5 commented 4 years ago

I'm hesitant to implement this because it could leak info for files with scene naming.

I'll consider putting it behind an option, but gonna wait to see if you have a better idea.

TheFrenchGhosty commented 4 years ago

Yeah you're right...

Well for my scripts I could technically make them use something specific (like ```- ID=[VIDEOID], but the youtube-dl default naming wouldn't work then.