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 error #2713

Closed
Ranutso opened this issue Apr 7, 2014 · 9 comments
Closed

Livestream error #2713

Ranutso opened this issue Apr 7, 2014 · 9 comments

Comments

@Ranutso
Copy link

@Ranutso Ranutso commented Apr 7, 2014

This is downloading a non-live (VoD) content from Livestream. It seems to me Livestream changed something between Friday (April 4th) and Saturday (April 5th) since I was able to download a file on Friday but I wasn't today, Sunday.

$ youtube-dl -v "http://new.livestream.com/nrl/TigersvsSeaEagles2014"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://new.livestream.com/nrl/TigersvsSeaEagles2014']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.01.3
[debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
[livestream] TigersvsSeaEagles2014: Downloading webpage
[download] Downloading playlist: Tigers vs Sea Eagles
[livestream] playlist Tigers vs Sea Eagles: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, 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 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 836, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 826, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1025, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 522, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 640, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 559, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 806, in process_video_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 996, in process_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 969, in dl
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/init.py", line 20, in get_suitable_downloader
AttributeError: 'NoneType' object has no attribute 'startswith'

Please tell me if you need more information. Thanks.

@jedahan
Copy link

@jedahan jedahan commented Jul 23, 2014

same issue here

@phihag
Copy link
Contributor

@phihag phihag commented Jul 23, 2014

Fixed in youtube-dl 2014.07.23.2 or newer. Type sudo youtube-dl -U to update.

@phihag phihag closed this Jul 23, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Jul 23, 2014

@jedahan You wrote "same issue here" without providing an output. Can you provide one? Also, you wrote the same thing in #3318, but the errors happen at different stages, so it's impossible to get both. Which one are you really getting? Please always post the full output you get with the -v flag.

@jedahan
Copy link

@jedahan jedahan commented Jul 23, 2014

Depending on the video, i'd get different errors. Now I no longer get this error but still get the other one. Posting logs there.

@Ranutso
Copy link
Author

@Ranutso Ranutso commented Jul 23, 2014

Let me just give you all a heads up. Some videos on Livestream may load on the Flash player but not on the HTML5 player. If you're using Safari, try disabling the plugins and refresh the page. It will return you a message that the video is being processed and you should come back later. You will also get this message if you access the video page on the iPhone or iPad.

I believe youtube-dl uses the HTML5 video URL to download it, so after some experience with this, I've seen several videos that play fine on Flash but not on HTML5 and, therefore, fail to download.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 23, 2014

@Ranutso Can you name such a video that fails in youtube-dl? Without knowing at least one, it's very hard for us to add support for the Flash-only videos in youtube-dl.

@Ranutso
Copy link
Author

@Ranutso Ranutso commented Jul 23, 2014

Well, that's the catch, Phil. These videos are NOT Flash only. They are simply available on the Flash player before they are available on the HTML5 player. So that creates the illusion that the video plays fine on the browser but youtube-dl fails to download. If we wait a little longer the video will eventually be processed for HTML5 and then be downloaded successfully. Unfortunately I don't have any examples to give you right now, but that happened with my video on the original post. I checked on the browser before I came here to open the ticket. Now the video is ready for HTML5, so ytdl downloads it successfully.

@balr0g
Copy link

@balr0g balr0g commented Jul 24, 2014

Right now http://new.livestream.com/internetsociety2/hopex2/videos/57134850 seems to be failing in this way.

@Ranutso
Copy link
Author

@Ranutso Ranutso commented Jul 24, 2014

I confirm balrog's comment. I can play it on Flash player, but youtube-dl fails to download it.

And here is what the page looks like on Safari with the Flash plugin disabled.

screen shot 2014-07-24 at 8 12 43 pm


$ youtube-dl -w "http://new.livestream.com/internetsociety2/hopex2/videos/57134850"
[livestream] 57134850: Downloading webpage
[livestream] 57134850: Downloading video info
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, 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 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 859, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 849, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1052, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 830, in process_video_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1022, in process_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 993, in dl
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/init.py", line 20, in get_suitable_downloader
AttributeError: 'NoneType' object has no attribute 'starts with'

phihag added a commit that referenced this issue Jul 25, 2014
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
4 participants
You can’t perform that action at this time.