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.
get traceback while trying to see/use --list-subs. #1345
Comments
|
Thanks for reporting, we knew the problem (#1213) and the issue is fixed in newer versions of youtube-dl, run |
Hi all,
I'm on Debian testing and use youtube-dl .
$ youtube-dl --version
2013.08.17
$ python --version
Python 2.7.5+
I got a traceback when trying to use the option --list-subs.
$ youtube-dl --list-subs "https://www.youtube.com/watch?v=dCCLhE4QDe8"
[youtube] Setting language
[youtube] dCCLhE4QDe8: Downloading video webpage
[youtube] dCCLhE4QDe8: Downloading video info webpage
[youtube] dCCLhE4QDe8: Extracting video information
[youtube] dCCLhE4QDe8: Checking available subtitles
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 6, in
youtube_dl.main()
File "/usr/lib/python2.7/dist-packages/youtube_dl/init.py", line 639, in main
_real_main(argv)
File "/usr/lib/python2.7/dist-packages/youtube_dl/init.py", line 623, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 573, in download
videos = self.extract_info(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 312, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 96, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 679, in _real_extract
self._list_available_subtitles(video_id)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 387, in _list_available_subtitles
self.report_video_subtitles_available(video_id, sub_lang_list)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 316, in report_video_subtitles_available
sub_lang = ",".join(list(sub_lang_list.keys()))
AttributeError: 'tuple' object has no attribute 'keys'
Looking forward to resolution. Please lemme know if I need to give some more info. or I have used the command in a wrong way or something.
What should happen is it should either say if there are subs., if there are no subs. then it should say something to the effect that there are no subs. Crashing this way is not good.