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

UnboundLocalError: local variable 'ext' referenced before assignment #4360

Closed
zwerfvogel opened this issue Dec 3, 2014 · 3 comments
Closed

UnboundLocalError: local variable 'ext' referenced before assignment #4360

zwerfvogel opened this issue Dec 3, 2014 · 3 comments

Comments

@zwerfvogel
Copy link

@zwerfvogel zwerfvogel commented Dec 3, 2014

I got a traceback trying to download from tvn24.pl with the generic extractor using version 2014.12.01 with Python 2.7 on Debian

$ python -V
Python 2.7.3
$ uname -a
Linux myhost 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux
$ youtube-dl -U
youtube-dl is up-to-date (2014.12.01)
$ youtube-dl  --verbose  "http://www.tvn24.pl/wideo/z-anteny/02-12-trwa-walka-o-zycie-malego-adasia,1367188.html?playlist_id=17949"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.tvn24.pl/wideo/z-anteny/02-12-trwa-walka-o-zycie-malego-adasia,1367188.html?playlist_id=17949']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.01
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.7
[debug] exe versions: avconv 0.8.16-6, avprobe 0.8.16-6, ffmpeg 0.8.16-6, ffprobe 0.8.16-6, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 02-12-trwa-walka-o-zycie-malego-adasia,1367188: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 02-12-trwa-walka-o-zycie-malego-adasia,1367188: Downloading webpage
[generic] 02-12-trwa-walka-o-zycie-malego-adasia,1367188: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: 02.12 | Trwa walka o życie małego Adasia - "Fakty" z 2 grudnia
[generic] playlist 02.12 | Trwa walka o życie małego Adasia - "Fakty" z 2 grudnia: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[Brightcove] ref:1367188: Downloading webpage
[Brightcove] ref:1367188: Extracting information
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/user/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/home/user/bin/youtube-dl/youtube_dl/__init__.py", line 355, in main
  File "/home/user/bin/youtube-dl/youtube_dl/__init__.py", line 345, in _real_main
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1117, in download
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in extract_info
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in process_ie_result
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 617, in process_ie_result
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 553, in extract_info
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 241, in extract
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 204, in _real_extract
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 236, in _get_video_info
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/brightcove.py", line 284, in _extract_video_info
UnboundLocalError: local variable 'ext' referenced before assignment
@jaimeMF jaimeMF closed this in 233d37f Dec 3, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 3, 2014

Thanks for the report, it will work in the next version.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 4, 2014

Fixed in in youtube-dl 2014.12.04 and newer. See our FAQ if you encounter problems updating.

@zwerfvogel
Copy link
Author

@zwerfvogel zwerfvogel commented Dec 4, 2014

Yes, that works -- thank you.

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