Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--reject-title not working #7135

Closed
mikhaelkh opened this issue Oct 11, 2015 · 5 comments
Closed

--reject-title not working #7135

mikhaelkh opened this issue Oct 11, 2015 · 5 comments

Comments

@mikhaelkh
Copy link

@mikhaelkh mikhaelkh commented Oct 11, 2015

Why the file is downloading despite --reject-title Masha*Bear*?

[debug] System config: []
[debug] User config: [u'--output', u'%(title)s.%(ext)s', u'--format', u'bestvideo[height<=?1080][ext=mp4]+bestaudio[ext=m4a]/bestvideo[height<=?1080][ext=webm]+bestaudio[ext=webm]/best[height<=?1080]']
[debug] Command-line args: [u'--playlist-items', u'19', u'--reject-title', u'Masha*Bear*', u'--match-filter', u'duration > 100 & duration < 600', u'--restrict-filenames', u'--ignore-errors', u'https://www.youtube.com/playlist?list=PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC', u'-v']
[debug] Encodings: locale cp1251, fs mbcs, out None, pref cp1251
[debug] youtube-dl version 2015.10.09
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 2.7, ffprobe 2.7
[debug] Proxy map: {}
[youtube:playlist] PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC: Downloading webpage
[download] Downloading playlist: Most Viewed Videos of All Time(Over 100 million views)
[youtube:playlist] PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC: Downloading page #1
[youtube:playlist] PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC: Downloading page #2
[youtube:playlist] PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC: Downloading page #3
[youtube:playlist] PLirAqAtl_h2r5g8xGajEwdXd3x1sZh8hC: Downloading page #4
[youtube:playlist] playlist Most Viewed Videos of All Time(Over 100 million views): Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] KYniUCGPGLs: Downloading webpage
[youtube] KYniUCGPGLs: Downloading video info webpage
[youtube] KYniUCGPGLs: Extracting video information
[youtube] KYniUCGPGLs: Downloading DASH manifest
[youtube] KYniUCGPGLs: Downloading DASH manifest
[debug] Invoking downloader on 'https://r3---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?id=2989e250218f18bb&itag=137&source=youtube&requiressl=yes&pl=19&mv=m&ms=au&mm=31&mn=sn-n8t51nxg8pjx-2xne&ratebypass=yes&mime=video/mp4&gir=yes&clen=173906888&lmt=1437756465599620&dur=412.120&signature=804E88708A44648511FA04CF20E2592B420A4152.9A1F8CD11DB88B7A13599A2BB5D544DA168C696D&key=dg_yt0&sver=3&mt=1444594542&fexp=9408012,9408710,9409069,9413139,9414764,9416126,9416310,9416729,9416778,9416838,9417380,9417707,9418393,9418448,9419444,9419785,9420348,9421013,9421285,9421890,9422010&upn=exVvuwGTbjA&ip=212.109.6.214&ipbits=0&expire=1444616291&sparams=ip,ipbits,expire,id,itag,source,requiressl,pl,mv,ms,mm,mn,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Masha_and_The_Bear_-_17.f137.mp4

[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 165.85MiB at Unknown speed ETA Unknown ETA
[download]   0.1% of 165.85MiB at  8.27MiB/s ETA 00:20         
[download]   0.2% of 165.85MiB at 16.60MiB/s ETA 00:09         
[download]   0.3% of 165.85MiB at 10.85MiB/s ETA 00:15         
[download]   0.6% of 165.85MiB at 10.74MiB/s ETA 00:15         
[download]   1.2% of 165.85MiB at 11.69MiB/s ETA 00:14         
[download]   2.4% of 165.85MiB at 11.17MiB/s ETA 00:14         
[download]   4.8% of 165.85MiB at 11.22MiB/s ETA 00:14         
[download]   7.2% of 165.85MiB at 11.19MiB/s ETA 00:13         
[download]   9.6% of 165.85MiB at 11.16MiB/s ETA 00:13         
[download]  12.1% of 165.85MiB at 11.17MiB/s ETA 00:13         
[download]  14.5% of 165.85MiB at 11.00MiB/s ETA 00:12         
[download]  16.9% of 165.85MiB at 11.01MiB/s ETA 00:12         
[download]  19.3% of 165.85MiB at 11.03MiB/s ETA 00:12         
[download]  21.7% of 165.85MiB at 11.04MiB/s ETA 00:11         
[download]  24.1% of 165.85MiB at 10.96MiB/s ETA 00:11         
[download]  26.5% of 165.85MiB at 10.98MiB/s ETA 00:11         
[download]  28.9% of 165.85MiB at 10.99MiB/s ETA 00:10         
[download]  31.4% of 165.85MiB at 10.85MiB/s ETA 00:10         
[download]  33.8% of 165.85MiB at 10.74MiB/s ETA 00:10         
[download]  36.2% of 165.85MiB at 10.36MiB/s ETA 00:10         
[download]  38.6% of 165.85MiB at 10.36MiB/s ETA 00:09         
[download]  41.0% of 165.85MiB at 10.40MiB/s ETA 00:09         
[download]  43.4% of 165.85MiB at 10.44MiB/s ETA 00:08         
[download]  45.8% of 165.85MiB at 10.45MiB/s ETA 00:08         
[download]  48.2% of 165.85MiB at 10.49MiB/s ETA 00:08         
[download]  50.6% of 165.85MiB at 10.49MiB/s ETA 00:07         
[download]  53.1% of 165.85MiB at 10.52MiB/s ETA 00:07         
[download]  55.5% of 165.85MiB at 10.55MiB/s ETA 00:07         
[download]  57.9% of 165.85MiB at 10.55MiB/s ETA 00:06         
[download]  60.3% of 165.85MiB at 10.58MiB/s ETA 00:06         
[download]  62.7% of 165.85MiB at 10.58MiB/s ETA 00:05         
[download]  65.1% of 165.85MiB at 10.60MiB/s ETA 00:05         
[download]  67.5% of 165.85MiB at 10.58MiB/s ETA 00:05         
[download]  69.9% of 165.85MiB at 10.61MiB/s ETA 00:04         
[download]  72.4% of 165.85MiB at 10.61MiB/s ETA 00:04         
[download]  74.8% of 165.85MiB at 10.62MiB/s ETA 00:03         
[download]  77.2% of 165.85MiB at 10.60MiB/s ETA 00:03         
[download]  79.6% of 165.85MiB at 10.53MiB/s ETA 00:03         
[download]  82.0% of 165.85MiB at 10.47MiB/s ETA 00:02         
[download]  84.4% of 165.85MiB at 10.35MiB/s ETA 00:02         
[download]  86.8% of 165.85MiB at 10.36MiB/s ETA 00:02         
[download]  89.2% of 165.85MiB at 10.34MiB/s ETA 00:01         
[download]  91.6% of 165.85MiB at 10.35MiB/s ETA 00:01         
[download]  94.1% of 165.85MiB at 10.38MiB/s ETA 00:00         
[download]  96.5% of 165.85MiB at 10.38MiB/s ETA 00:00         
[download]  98.9% of 165.85MiB at 10.39MiB/s ETA 00:00         
[download] 100.0% of 165.85MiB at 10.39MiB/s ETA 00:00         
[download] 100% of 165.85MiB in 00:15                          
[debug] Invoking downloader on 'https://r3---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?id=2989e250218f18bb&itag=140&source=youtube&requiressl=yes&pl=19&mv=m&ms=au&mm=31&mn=sn-n8t51nxg8pjx-2xne&ratebypass=yes&mime=audio/mp4&gir=yes&clen=6546913&lmt=1437756338121709&dur=412.177&signature=321DC01AB0F8BC2123EF66B623FBF21DA434A74E.2ECF3D671B7B4EC6C62F710AEFF518C194D51256&key=dg_yt0&sver=3&mt=1444594542&fexp=9408012,9408710,9409069,9413139,9414764,9416126,9416310,9416729,9416778,9416838,9417380,9417707,9418393,9418448,9419444,9419785,9420348,9421013,9421285,9421890,9422010&upn=exVvuwGTbjA&ip=212.109.6.214&ipbits=0&expire=1444616291&sparams=ip,ipbits,expire,id,itag,source,requiressl,pl,mv,ms,mm,mn,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Masha_and_The_Bear_-_17.f140.m4a

[download]   0.0% of 6.24MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 6.24MiB at 200.00KiB/s ETA 00:31        
[download]   0.1% of 6.24MiB at 466.67KiB/s ETA 00:13        
[download]   0.2% of 6.24MiB at 1000.01KiB/s ETA 00:06       
[download]   0.5% of 6.24MiB at  2.02MiB/s ETA 00:03         
[download]   1.0% of 6.24MiB at  4.10MiB/s ETA 00:01         
[download]   2.0% of 6.24MiB at  8.27MiB/s ETA 00:00         
[download]   4.0% of 6.24MiB at  8.03MiB/s ETA 00:00         
[download]   8.0% of 6.24MiB at 10.85MiB/s ETA 00:00         
[download]  16.0% of 6.24MiB at 10.74MiB/s ETA 00:00         
[download]  32.0% of 6.24MiB at 10.69MiB/s ETA 00:00         
[download]  64.0% of 6.24MiB at 11.17MiB/s ETA 00:00         
[download] 100.0% of 6.24MiB at 10.73MiB/s ETA 00:00         
[download] 100% of 6.24MiB in 00:00                          
[ffmpeg] Merging formats into "Masha_and_The_Bear_-_17.mp4"
[debug] ffmpeg command line: ffmpeg -y -i file:Masha_and_The_Bear_-_17.f137.mp4 -i file:Masha_and_The_Bear_-_17.f140.m4a -c copy -map 0:v:0 -map 1:a:0 file:Masha_and_The_Bear_-_17.temp.mp4
Deleting original file Masha_and_The_Bear_-_17.f137.mp4 (pass -k to keep)
Deleting original file Masha_and_The_Bear_-_17.f140.m4a (pass -k to keep)
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 11, 2015

--reject-title expects a regex or a substring. Use --reject-title Masha.*Bear.*.

@dstftw dstftw closed this Oct 11, 2015
@mikhaelkh
Copy link
Author

@mikhaelkh mikhaelkh commented Oct 11, 2015

@dstftw Why Masha*Bear* is not a regex? What is the syntax of regex?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 11, 2015

It's a regex but it does not match Маша и Медведь (Masha and The Bear) - Маша плюс каша (17 Серия).

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 11, 2015

It uses the python re module. Instead of the basic regex used by the shells, it's similar to the ones used in grep and perl

@mikhaelkh
Copy link
Author

@mikhaelkh mikhaelkh commented Oct 11, 2015

I was confused by the --restrict-filenames option, the regex is for the original title, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.