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

Ridiculous bug in ytsearch to the search for "Paranoid Android" #1537

Closed
IgorIsaiasBanlian opened this issue Oct 1, 2013 · 3 comments
Closed

Comments

@IgorIsaiasBanlian
Copy link

@IgorIsaiasBanlian IgorIsaiasBanlian commented Oct 1, 2013

Please, test:

youtube-dl --get-title --get-url "ytsearch:the fray - over my head"

This works and results in:

The Fray - Over My Head (Cable Car)
http://r8---sn-upfn-bg0l.c.youtube.com/videoplayback?expire=1380657431&fexp=900064%2C924606%2C916914%2C929117%2C929121%2C929906%2C929907%2C929922%2C929923%2C929127%2C929129%2C929131%2C929930%2C936403%2C925724%2C925726%2C936310%2C925720%2C925722%2C925718%2C936401%2C925714%2C929917%2C906945%2C929933%2C929935%2C929937%2C929939%2C939602%2C939604%2C937102%2C906842%2C913428%2C912715%2C937003%2C919811%2C939908%2C932309%2C913563%2C919373%2C930803%2C908536%2C908538%2C904839%2C938701%2C931924%2C938608%2C940501%2C936308%2C909549%2C900816%2C912711%2C934507%2C907231%2C936312%2C906001&id=7c5464a6fbe8a772&cp=U0hXRVZQVV9IS0NON19OSllFOkEzdHpSNkFGd0F0&ms=au&ipbits=8&mv=m&mt=1380632860&source=youtube&sparams=cp%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&itag=44&ratebypass=yes&upn=eeq6DpvtcEs&ip=189.69.104.65&key=yt1&gcr=br&sver=3&signature=D4DF39CC5454E6FFB40F5983F8EF8973F3BF40B14.86E2E7F82CF5482D7DF10E878794875E18B45EA

But when searching for "Paranoid Android"...

youtube-dl --get-title --get-url "ytsearch:paranoid android"

This NOT works and results in:

Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 6, in
youtube_dl.main()
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 667, in main
_real_main(argv)
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 651, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 573, in download
videos = self.extract_info(url)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 339, in extract_info
return self.process_ie_result(ie_result, download=download)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 412, in process_ie_result
extra_info=extra)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 377, in process_ie_result
extra_info=extra_info)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 324, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/common.py", line 103, in extract
return self._real_extract(url)
File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 798, in _real_extract
m_s = re.search(r'[&,]s=', args['url_encoded_fmt_stream_map'])
KeyError: 'url_encoded_fmt_stream_map'

LOL, this is a ridiculous and unbelievable bug!

My Python version is 3.3.2!

Regards,
Igor Isaias Banlian

@phihag
Copy link
Contributor

@phihag phihag commented Oct 1, 2013

Fixed in youtube-dl 2013.10.01.1. Type sudo youtube-dl -U to update.

@phihag phihag closed this Oct 1, 2013
@IgorIsaiasBanlian
Copy link
Author

@IgorIsaiasBanlian IgorIsaiasBanlian commented Oct 1, 2013

Thanks for the extremely fast reply, but I was curious to know what was the cause of this strange bug... :-P

Regards,
Igor Isaias Banlian

@phihag
Copy link
Contributor

@phihag phihag commented Oct 1, 2013

The first video in the search result happened to be one with a new YouTube format ( #1535). Unfortunately, that's all there is to it.

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
2 participants
You can’t perform that action at this time.