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

[Livestream] info_dict['url'] is None #3308

Closed
epitron opened this issue Jul 20, 2014 · 4 comments
Closed

[Livestream] info_dict['url'] is None #3308

epitron opened this issue Jul 20, 2014 · 4 comments

Comments

@epitron
Copy link
Contributor

@epitron epitron commented Jul 20, 2014

Not sure what happened -- this was working yesterday!

$ youtube-dl -g http://new.livestream.com/accounts/686369/events/3195566
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 "/usr/scripts/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/scripts/youtube-dl/youtube_dl/__init__.py", line 859, in main

  File "/usr/scripts/youtube-dl/youtube_dl/__init__.py", line 849, in _real_main

  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 1052, in download
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in extract_info
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 645, in process_ie_result
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in process_ie_result
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 830, in process_video_result
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 871, in process_info
TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode'

(It happens without the -g option as well.)

@phihag
Copy link
Contributor

@phihag phihag commented Jul 20, 2014

Thanks for reporting! Looks like this video is no longer available as a simple file. youtube-dl will have to handle the smil_url key and puzzle the video from that.

@epitron
Copy link
Contributor Author

@epitron epitron commented Jul 20, 2014

Ah, I see... thanks for the quick response!

@epitron epitron changed the title Livestream's info_dict['url'] is None [Livestream] info_dict['url'] is None Jul 20, 2014
@epitron
Copy link
Contributor Author

@epitron epitron commented Jul 24, 2014

Two of the three HOPE X streams I tried to grab work now! Thanks for the fix.

One of the streams is having a different problem though:

$ youtube-dl http://new.livestream.com/accounts/9197973/events/3195646
[livestream] 9197973/events/3195646: Downloading webpage
[download] Downloading playlist: [HOPE X] - Serpico
[livestream] playlist [HOPE X] - Serpico: Collected 9 video ids (downloading 9 of them)
[download] Downloading video #1 of 9
[download] Destination: HOPE X - Serpico-57095862.m3u8
avconv version 0.8.13-4:0.8.13-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Jul 15 2014 13:00:59 with gcc 4.6.3
[http @ 0xa01c440] HTTP error 403 Forbidden
http://api.new.livestream.com/accounts/9197973/events/3195646/videos/57095862.m3u8?dw=0&hdnea=st=1406169599~exp=1406170499~acl=/i/9197973_1198167_1cd4ee13_1@43651/*~hmac=8d46c33a765f6ff8129a5ae4a2ba5c5f9e8451110441d192fad7fce81db50713: Input/output error


ERROR: ffmpeg exited with code 1

With the -g option, it does something different:

 $ youtube-dl -g http://new.livestream.com/accounts/9197973/events/3195646
http://api.new.livestream.com/accounts/9197973/events/3195646/videos/57095862.m3u8?dw=0&hdnea=st=1406169699~exp=1406170599~acl=/i/9197973_1198167_1cd4ee13_1@43651/*~hmac=1f8089276953d367ad3267ca16bc3c56be461b92b446aefa90af903b8fc6b173
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 "/usr/scripts/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/scripts/youtube-dl/youtube_dl/__init__.py", line 857, in main

  File "/usr/scripts/youtube-dl/youtube_dl/__init__.py", line 847, in _real_main

  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 1052, in download
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in extract_info
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 645, in process_ie_result
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in process_ie_result
  File "/usr/scripts/youtube-dl/youtube_dl/YoutubeDL.py", line 770, in process_video_result
  File "/usr/scripts/youtube-dl/youtube_dl/utils.py", line 855, in determine_ext
AttributeError: 'NoneType' object has no attribute 'partition'

Not sure what the issue is here...

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 14, 2015

It's working now for me, so I'm closing the issue. If you can reproduce the error with the last youtube-dl version, please comment here or open a new issue.

@jaimeMF jaimeMF closed this Mar 14, 2015
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.