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

TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode' #25540

Closed
heygitty opened this issue Jun 5, 2020 · 7 comments
Closed

TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode' #25540

heygitty opened this issue Jun 5, 2020 · 7 comments

Comments

@heygitty
Copy link

@heygitty heygitty commented Jun 5, 2020

The following command breaks with an TypeError.

# youtube-dl --all-subs --embed-subs --merge-output-format mkv 'https://players.brightcove.net/102076671001/ShNTDWXQ_default/index.html?videoId=6159321787001'
[brightcove:new] 6159321787001: Downloading JSON metadata
[brightcove:new] 6159321787001: Downloading m3u8 information
[brightcove:new] 6159321787001: Downloading m3u8 information
[brightcove:new] 6159321787001: Downloading MPD manifest
[brightcove:new] 6159321787001: Downloading MPD manifest
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 19, in
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 2019, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 808, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 863, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1644, in process_video_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1818, in process_info
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 3006, in subtitles_filename
TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'

@tortycat3
Copy link

@tortycat3 tortycat3 commented Jun 5, 2020

I'm getting exactly the same messages. Any ideas? All worked fine yesterday!

Thanks

@dstftw dstftw closed this in b4eb0bc Jun 5, 2020
@tortycat3
Copy link

@tortycat3 tortycat3 commented Jun 5, 2020

I do not know how to fix this, could I have a hint, please? How do I install the file mentioned? Thank you.

@heygitty
Copy link
Author

@heygitty heygitty commented Jun 6, 2020

Perfect, thank you for fixing it so quickly!

@tortycat3
Copy link

@tortycat3 tortycat3 commented Jun 6, 2020

@heygitty
Copy link
Author

@heygitty heygitty commented Jun 6, 2020

Eric, try to update with "youtube-dl -U"

@tortycat3
Copy link

@tortycat3 tortycat3 commented Jun 6, 2020

Thanks, tried that already got:

ERROR: can't find the current version. Please try again later.

Any other thoughts?

@tortycat3
Copy link

@tortycat3 tortycat3 commented Jun 6, 2020

Solved it for the moment. Curl returned an invalid certificate error so I managed to use curl with the -k option which worked, now all works well.Brew did not work, no idea why. 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
2 participants
You can’t perform that action at this time.