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

get traceback while trying to see/use --list-subs. #1345

Closed
shirishag75 opened this issue Aug 29, 2013 · 1 comment
Closed

get traceback while trying to see/use --list-subs. #1345

shirishag75 opened this issue Aug 29, 2013 · 1 comment

Comments

@shirishag75
Copy link

@shirishag75 shirishag75 commented Aug 29, 2013

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.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 29, 2013

Thanks for reporting, we knew the problem (#1213) and the issue is fixed in newer versions of youtube-dl, run sudo youtube-dl -U to update.

@jaimeMF jaimeMF closed this Aug 29, 2013
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.