Download next with --match-title #1764

Closed
opened 2026-02-20 22:17:02 -05:00 by deekerman · 5 comments
Owner

Originally created by @davidhedlund on GitHub (Jan 23, 2014).

title="Afgin - Astral Experience"; # Works in below script
title="Afgin - Old is Gold"; # Does not work in below script
youtube-dl "ytsearch10:$title" -f 172/171/43/webm/ogg --extract-audio --no-overwrites --match-title ^"title" --verbose --ignore-errors --max-downloads 1

[download] Downloading video #2 of 10
[youtube] 65MQ5ZAmusI: Downloading webpage
[youtube] 65MQ5ZAmusI: Downloading video info webpage
[youtube] 65MQ5ZAmusI: Extracting video information
ERROR:
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in
extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in
process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in
process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in
process_info
raise MaxDownloadsReached()
MaxDownloadsReached

Originally created by @davidhedlund on GitHub (Jan 23, 2014). title="Afgin - Astral Experience"; # Works in below script title="Afgin - Old is Gold"; # Does not work in below script youtube-dl "ytsearch10:$title" -f 172/171/43/webm/ogg --extract-audio --no-overwrites --match-title ^"$title"$ --verbose --ignore-errors --max-downloads 1 [download] Downloading video #2 of 10 [youtube] 65MQ5ZAmusI: Downloading webpage [youtube] 65MQ5ZAmusI: Downloading video info webpage [youtube] 65MQ5ZAmusI: Extracting video information ERROR: Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result self.process_info(new_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info raise MaxDownloadsReached() MaxDownloadsReached
Author
Owner

@phihag commented on GitHub (Jan 23, 2014):

Can you post the full output? It looks like these are only the last lines.

@phihag commented on GitHub (Jan 23, 2014): Can you post the full output? It looks like these are only the last lines.
Author
Owner

@davidhedlund commented on GitHub (Jan 23, 2014):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['ytsearch10:Afgin - Old is Gold', '-f', '172/171/43/webm/ogg', '--extract-audio', '--no-overwrites', '--match-title', '^Afgin - Old is Gold$', '--verbose', '--ignore-errors', '--max-downloads', '1']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.23
[debug] Python version 2.7.3 - Linux-3.2.0-58-generic-x86_64-with-Trisquel-6.0-toutatis
[debug] Proxy map: {}
[youtube:search] query "Afgin - Old is Gold": Downloading page 1
[download] Downloading playlist: Afgin - Old is Gold
[youtube:search] playlist Afgin - Old is Gold: Collected 10 video ids (downloading 10 of them)
[download] Downloading video #1 of 10
[youtube] Setting language
[youtube] XCHrWyMpPhM: Downloading webpage
[youtube] XCHrWyMpPhM: Downloading video info webpage
[youtube] XCHrWyMpPhM: Extracting video information
[download] "Afgin - Old Is Gold [FULL ALBUM]" title did not match pattern "^Afgin - Old is Gold$"
[download] Downloading video #2 of 10
[youtube] 65MQ5ZAmusI: Downloading webpage
[youtube] 65MQ5ZAmusI: Downloading video info webpage
[youtube] 65MQ5ZAmusI: Extracting video information
ERROR:
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info
raise MaxDownloadsReached()
MaxDownloadsReached

[download] Downloading video #3 of 10
[youtube] T4dVlDdZXJQ: Downloading webpage
[youtube] T4dVlDdZXJQ: Downloading video info webpage
[youtube] T4dVlDdZXJQ: Extracting video information
[download] "Afgin - Old is Gold (Part 2) -2009-" title did not match pattern "^Afgin - Old is Gold$"
[download] Downloading video #4 of 10
[youtube] LB4QKvDCW1A: Downloading webpage
[youtube] LB4QKvDCW1A: Downloading video info webpage
[youtube] LB4QKvDCW1A: Extracting video information
ERROR:
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info
raise MaxDownloadsReached()
MaxDownloadsReached

[download] Downloading video #5 of 10
[youtube] BnGhelyzUtE: Downloading webpage
[youtube] BnGhelyzUtE: Downloading video info webpage
[youtube] BnGhelyzUtE: Extracting video information
[download] "AFGIN - Old Is Gold (part 2) VIDEO CLIP" title did not match pattern "^Afgin - Old is Gold$"
[download] Downloading video #6 of 10
[youtube] GtYD_YzdFGs: Downloading webpage
[youtube] GtYD_YzdFGs: Downloading video info webpage
[youtube] GtYD_YzdFGs: Extracting video information
ERROR:
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info
raise MaxDownloadsReached()
MaxDownloadsReached

[download] Downloading video #7 of 10
[youtube] oKAkE5-9e4E: Downloading webpage
[youtube] oKAkE5-9e4E: Downloading video info webpage
[youtube] oKAkE5-9e4E: Extracting video information
[download] "Afgin @ Old Is Gold party" title did not match pattern "^Afgin - Old is Gold$"
[download] Downloading video #8 of 10
[youtube] qZvtGRbM7y8: Downloading webpage
[youtube] qZvtGRbM7y8: Downloading video info webpage
[youtube] qZvtGRbM7y8: Extracting video information
ERROR:
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info
raise MaxDownloadsReached()
MaxDownloadsReached

[download] Downloading video #9 of 10
[youtube] E6WiBmYnfsE: Downloading webpage
[youtube] E6WiBmYnfsE: Downloading video info webpage
[youtube] E6WiBmYnfsE: Extracting video information
ERROR: requested format not available
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 757, in process_video_result
expected=True)
ExtractorError: requested format not available

[download] Downloading video #10 of 10
[youtube] JoqG2B2GvYM: Downloading webpage
[youtube] JoqG2B2GvYM: Downloading video info webpage
[youtube] JoqG2B2GvYM: Extracting video information
[download] "Afgin - Return to the Source" title did not match pattern "^Afgin - Old is Gold$"

@davidhedlund commented on GitHub (Jan 23, 2014): [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['ytsearch10:Afgin - Old is Gold', '-f', '172/171/43/webm/ogg', '--extract-audio', '--no-overwrites', '--match-title', '^Afgin - Old is Gold$', '--verbose', '--ignore-errors', '--max-downloads', '1'] [debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8' [debug] youtube-dl version 2014.01.23 [debug] Python version 2.7.3 - Linux-3.2.0-58-generic-x86_64-with-Trisquel-6.0-toutatis [debug] Proxy map: {} [youtube:search] query "Afgin - Old is Gold": Downloading page 1 [download] Downloading playlist: Afgin - Old is Gold [youtube:search] playlist Afgin - Old is Gold: Collected 10 video ids (downloading 10 of them) [download] Downloading video #1 of 10 [youtube] Setting language [youtube] XCHrWyMpPhM: Downloading webpage [youtube] XCHrWyMpPhM: Downloading video info webpage [youtube] XCHrWyMpPhM: Extracting video information [download] "Afgin - Old Is Gold [FULL ALBUM]" title did not match pattern "^Afgin - Old is Gold$" [download] Downloading video #2 of 10 [youtube] 65MQ5ZAmusI: Downloading webpage [youtube] 65MQ5ZAmusI: Downloading video info webpage [youtube] 65MQ5ZAmusI: Extracting video information ERROR: Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result self.process_info(new_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info raise MaxDownloadsReached() MaxDownloadsReached [download] Downloading video #3 of 10 [youtube] T4dVlDdZXJQ: Downloading webpage [youtube] T4dVlDdZXJQ: Downloading video info webpage [youtube] T4dVlDdZXJQ: Extracting video information [download] "Afgin - Old is Gold (Part 2) -2009-" title did not match pattern "^Afgin - Old is Gold$" [download] Downloading video #4 of 10 [youtube] LB4QKvDCW1A: Downloading webpage [youtube] LB4QKvDCW1A: Downloading video info webpage [youtube] LB4QKvDCW1A: Extracting video information ERROR: Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result self.process_info(new_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info raise MaxDownloadsReached() MaxDownloadsReached [download] Downloading video #5 of 10 [youtube] BnGhelyzUtE: Downloading webpage [youtube] BnGhelyzUtE: Downloading video info webpage [youtube] BnGhelyzUtE: Extracting video information [download] "AFGIN - Old Is Gold (part 2) VIDEO CLIP" title did not match pattern "^Afgin - Old is Gold$" [download] Downloading video #6 of 10 [youtube] GtYD_YzdFGs: Downloading webpage [youtube] GtYD_YzdFGs: Downloading video info webpage [youtube] GtYD_YzdFGs: Extracting video information ERROR: Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result self.process_info(new_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info raise MaxDownloadsReached() MaxDownloadsReached [download] Downloading video #7 of 10 [youtube] oKAkE5-9e4E: Downloading webpage [youtube] oKAkE5-9e4E: Downloading video info webpage [youtube] oKAkE5-9e4E: Extracting video information [download] "Afgin @ Old Is Gold party" title did not match pattern "^Afgin - Old is Gold$" [download] Downloading video #8 of 10 [youtube] qZvtGRbM7y8: Downloading webpage [youtube] qZvtGRbM7y8: Downloading video info webpage [youtube] qZvtGRbM7y8: Extracting video information ERROR: Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 765, in process_video_result self.process_info(new_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in process_info raise MaxDownloadsReached() MaxDownloadsReached [download] Downloading video #9 of 10 [youtube] E6WiBmYnfsE: Downloading webpage [youtube] E6WiBmYnfsE: Downloading video info webpage [youtube] E6WiBmYnfsE: Extracting video information ERROR: requested format not available Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 514, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 541, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 757, in process_video_result expected=True) ExtractorError: requested format not available [download] Downloading video #10 of 10 [youtube] JoqG2B2GvYM: Downloading webpage [youtube] JoqG2B2GvYM: Downloading video info webpage [youtube] JoqG2B2GvYM: Extracting video information [download] "Afgin - Return to the Source" title did not match pattern "^Afgin - Old is Gold$"
Author
Owner

@phihag commented on GitHub (Jan 23, 2014):

You are using and outdated version of youtube-dl; this issue has been fixed in the current version. Type sudo youtube-dl -U to update.

@phihag commented on GitHub (Jan 23, 2014): You are using and outdated version of youtube-dl; this issue has been fixed in the current version. Type `sudo youtube-dl -U` to update.
Author
Owner

@davidhedlund commented on GitHub (Jan 23, 2014):

title="Afgin - Old is Gold"; # Still does not work
youtube-dl "ytsearch10:$title" -f 172/171/43/webm/ogg --extract-audio --no-overwrites --match-title ^"title" --verbose --ignore-errors --max-downloads 1
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['ytsearch10:Afgin - Old is Gold', '-f', '172/171/43/webm/ogg', '--extract-audio', '--no-overwrites', '--match-title', '^Afgin - Old is Gold$', '--verbose', '--ignore-errors', '--max-downloads', '1']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.23.1
[debug] Python version 2.7.3 - Linux-3.2.0-58-generic-x86_64-with-Trisquel-6.0-toutatis
[debug] Proxy map: {}
[youtube:search] query "Afgin - Old is Gold": Downloading page 1
[download] Downloading playlist: Afgin - Old is Gold
[youtube:search] playlist Afgin - Old is Gold: Collected 10 video ids (downloading 10 of them)
[download] Downloading video #1 of 10
[youtube] Setting language
[youtube] XCHrWyMpPhM: Downloading webpage
[youtube] XCHrWyMpPhM: Downloading video info webpage
[youtube] XCHrWyMpPhM: Extracting video information
[download] "Afgin - Old Is Gold [FULL ALBUM]" title did not match pattern "^Afgin - Old is Gold$"
[download] Downloading video #2 of 10
[youtube] 65MQ5ZAmusI: Downloading webpage
[youtube] 65MQ5ZAmusI: Downloading video info webpage
[youtube] 65MQ5ZAmusI: Extracting video information
[info] Maximum number of downloaded files reached.
--max-download limit reached, aborting.

@davidhedlund commented on GitHub (Jan 23, 2014): title="Afgin - Old is Gold"; # Still does not work youtube-dl "ytsearch10:$title" -f 172/171/43/webm/ogg --extract-audio --no-overwrites --match-title ^"$title"$ --verbose --ignore-errors --max-downloads 1 [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['ytsearch10:Afgin - Old is Gold', '-f', '172/171/43/webm/ogg', '--extract-audio', '--no-overwrites', '--match-title', '^Afgin - Old is Gold$', '--verbose', '--ignore-errors', '--max-downloads', '1'] [debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8' [debug] youtube-dl version 2014.01.23.1 [debug] Python version 2.7.3 - Linux-3.2.0-58-generic-x86_64-with-Trisquel-6.0-toutatis [debug] Proxy map: {} [youtube:search] query "Afgin - Old is Gold": Downloading page 1 [download] Downloading playlist: Afgin - Old is Gold [youtube:search] playlist Afgin - Old is Gold: Collected 10 video ids (downloading 10 of them) [download] Downloading video #1 of 10 [youtube] Setting language [youtube] XCHrWyMpPhM: Downloading webpage [youtube] XCHrWyMpPhM: Downloading video info webpage [youtube] XCHrWyMpPhM: Extracting video information [download] "Afgin - Old Is Gold [FULL ALBUM]" title did not match pattern "^Afgin - Old is Gold$" [download] Downloading video #2 of 10 [youtube] 65MQ5ZAmusI: Downloading webpage [youtube] 65MQ5ZAmusI: Downloading video info webpage [youtube] 65MQ5ZAmusI: Extracting video information [info] Maximum number of downloaded files reached. --max-download limit reached, aborting.
Author
Owner

@phihag commented on GitHub (Jan 23, 2014):

Thanks for the report, your invocation exposes a bug in youtube-dl when all of these options are combined. This bug has been fixed in youtube-dl 2015.01.23.2.. Type sudo youtube-dl -U to update.

@phihag commented on GitHub (Jan 23, 2014): Thanks for the report, your invocation exposes a bug in youtube-dl when all of these options are combined. This bug has been fixed in youtube-dl 2015.01.23.2.. Type `sudo youtube-dl -U` to update.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#1764
No description provided.