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

youtube-di update bug #1030

Closed
imrhk opened this issue Jul 11, 2013 · 1 comment
Closed

youtube-di update bug #1030

imrhk opened this issue Jul 11, 2013 · 1 comment

Comments

@imrhk
Copy link

@imrhk imrhk commented Jul 11, 2013

rahul@hp:~$ sudo youtube-dl -U
[sudo] password for rahul:
Updating to latest version...
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4645, in
main()
File "/usr/bin/youtube-dl", line 4636, in main
_real_main()
File "/usr/bin/youtube-dl", line 4610, in _real_main
updateSelf(fd, sys.argv[0])
File "/usr/bin/youtube-dl", line 4203, in updateSelf
urlh.close()
UnboundLocalError: local variable 'urlh' referenced before assignment

I am not able to download video
rahul@hp:$ youtube-dl http://www.youtube.com/watch?v=ktvTqknDobU
[youtube] Setting language
[youtube] ktvTqknDobU: Downloading video webpage
[youtube] ktvTqknDobU: Downloading video info webpage
[youtube] ktvTqknDobU: Extracting video information
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4645, in
main()
File "/usr/bin/youtube-dl", line 4636, in main
_real_main()
File "/usr/bin/youtube-dl", line 4620, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl", line 869, in download
ie.extract(url)
File "/usr/bin/youtube-dl", line 1135, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl", line 1406, in _real_extract
url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
File "/usr/bin/youtube-dl", line 1406, in
url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
KeyError: 'sig'
rahul@hp:
$

@phihag
Copy link
Contributor

@phihag phihag commented Jul 12, 2013

Sorry, that was a bug we introduced temporarily (See #578). You can update manually with

sudo wget https://yt-dl.org/latest/youtube-dl -O $(which youtube-dl)

I'm closing this issue now since I'm fairly certain that you are seeing #578. Feel free to comment either way, and we'll reopen it if necessary.

@phihag phihag closed this Jul 12, 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.