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

same error has occurred #25013 'UnboundLocalError in xtube.py' #26982

Open
frolex98 opened this issue Oct 23, 2020 · 0 comments
Open

same error has occurred #25013 'UnboundLocalError in xtube.py' #26982

frolex98 opened this issue Oct 23, 2020 · 0 comments

Comments

@frolex98
Copy link

@frolex98 frolex98 commented Oct 23, 2020

Duplicate of #25013

Hello.
I looked at the source code for the same problem that occurred in ver.2020-09-20.
The problem is the undefined 'source' on line 103.
Since 'source' is defined inside of line 95 'if config', this seems to be a bug that occurs when the definition of line 92 'config' cannot be executed due to some problem.
Maybe you need to insert an exception or set up an appropriate error message.

Traceback (most recent call last):

File "main.py", line 19, in
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl_init_.py", line 474, in main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl_init_.py", line 464, in _real_main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 2019, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 532, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\xtube.py", line 103, in _real_extract
UnboundLocalError: local variable 'sources' referenced before assignment

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