ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.32k stars 9.95k forks source link

Exclude files based on regex in file names #13190

Closed martiniusDE closed 7 years ago

martiniusDE commented 7 years ago

Some debug information:

PS D:\tmp\youtube-dl> .\youtube-dl.exe -f 'best' --download-archive archive.txt "http://mediathek.rbb-online.de/tv/Sandmann/Sendung?documentId=6503982&bcastId=6503982&rss=true" -v --no-part --reject-title '/gebärdensprache/gi' --hls-prefer-native
...
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.05.23
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-86175-g64ea4d1, ffprobe N-86175-g64ea4d1
[debug] Proxy map: {}
[ARD:mediathek] 6503982: Downloading webpage
[download] Downloading playlist: rbb Mediathek: Sendung "Sandmann" | rbb Fernsehen
[ARD:mediathek] playlist rbb Mediathek: Sendung "Sandmann" | rbb Fernsehen: Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2

This command downloads 2 videos from the german mediathek ("Unser Sandmännchen"). The problem is, that both videos are the same, except in the second one there extra sign language for deaf people. The regex seems only to work on titles, not on file names.

Is there any chance to get an extra option flag to exclude some video with a special file name?

BTW, thanks for the great project!

Kind regards martinius

martiniusDE commented 7 years ago

Sorry for the disturbing, actually it works. The problem was some german umlauts..