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.
XTube Python Extraction Failure #25602
Comments
Pass authenticated cookies to youtube-dl. |
Tried to download a video from XTube, and this happened.
$ youtube-dl "https://www.xtube.com/video-watch/wife-using-a-toy-32459942" [XTube] wife-using-a-toy: Downloading webpage Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 474, in main File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 464, in _real_main File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2018, in download File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/xtube.py", line 103, in _real_extract UnboundLocalError: local variable 'sources' referenced before assignmentThank you in advance. If you need anything else, feel free to send me a message or reply here.
UPDATE:
Updated script to latest version, python traceback is a little different, but same bug.
$ youtube-dl "https://www.xtube.com/video-watch/wife-using-a-toy-32459942" [XTube] wife-using-a-toy: Downloading webpage Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 474, in main File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 464, in _real_main File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2018, in download File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/xtube.py", line 103, in _real_extract UnboundLocalError: local variable 'sources' referenced before assignmentVersion string:
$ youtube-dl --version 2020.06.06