Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Ridiculous bug in ytsearch to the search for "Paranoid Android" #1537
Comments
|
Fixed in youtube-dl 2013.10.01.1. Type |
|
Thanks for the extremely fast reply, but I was curious to know what was the cause of this strange bug... :-P Regards, |
|
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. |
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