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.com URL Not Working Anymore #1465

Open
Spiral-King opened this issue Sep 2, 2016 · 15 comments
Open

Livestream.com URL Not Working Anymore #1465

Spiral-King opened this issue Sep 2, 2016 · 15 comments

Comments

@Spiral-King
Copy link

Livestream.com changed their UI for their player and I'm guessing something else under the hood because a link I used to download no longer works. The string I am using is as follows.

livestreamer "http://livestream.com/accounts/4099489/events/2120235" 720p_hls -o 01.ts

H:>livestreamer "http://livestream.com/accounts/4099489/events/2120235" 720p_hl
s -o 01.ts
[cli][info] Found matching plugin livestream for URL http://livestream.com/accou
nts/4099489/events/2120235
Traceback (most recent call last):
File "", line 6, in
File "main.py", line 128, in
File "main__livestreamer.py", line 9, in
File "livestreamer_cli\main.py", line 886, in main
File "livestreamer_cli\main.py", line 471, in handle_url
File "livestreamer_cli\main.py", line 388, in fetch_streams
File "livestreamer\plugin\plugin.py", line 313, in get_streams
File "livestreamer\plugin\plugin.py", line 233, in streams
File "livestreamer\plugins\livestream.py", line 98, in _get_streams
AttributeError: 'NoneType' object has no attribute 'startswith'

@intact
Copy link
Contributor

intact commented Sep 2, 2016

You can try #1277

@Junior1544
Copy link

Yea, @intact is right... I use livestreamer with a livestream.com live stream all the time, and #1277 worked perfectly for me!

hls still doesn't work right, but the normal way works great for me and I use it on a raspberry pi...

Good luck!

@Spiral-King
Copy link
Author

Thanks for your feedback guy. I only use livestreamer to capture this one link. I'm not a programmer or coder so I don't know what do with what you linked you gave me. I went to this link from the link you sent me and copied the code to notepad and saved it as "livestream.py" and put it in "C:\Program Files (x86)\Livestreamer\plugins". However it didn't seem to do a anything since I'm getting the same exact error as above.

@intact
Copy link
Contributor

intact commented Sep 6, 2016

You need this version

@scottbernstein-zz
Copy link

The problem is that on the Windows version of livestreamer you need to install the compiled version of livestream.py -- which will be titled "livestream.pyc".

Unfortunately since you say you are a non-programmer, this may be difficult for you, but this explains how to compile a .py file to a .pyc file:

http://effbot.org/pyfaq/how-do-i-create-a-pyc-file.htm

How do I create a .pyc file? - effbot.orghttp://effbot.org/pyfaq/how-do-i-create-a-pyc-file.htm
effbot.org
Python automatically compiles your script to compiled code, so called byte code, before running it. When a module is imported for the first time, or when the source ...

If I had recompiled this module myself, I would offer to email it to you, but I haven't.

Poke me if you're still in trouble after giving an honest attempt at it and if you catch me in a good mood, I'll just do it for you and email it to you. [😊]

As a technical person, I don't need (or use) the livestreamer plugin, I just look at the source of the page and find the m3u8 URL myself. Regardless I've found that the livestream plugin cuts out when the file hits exactly 2GB. When I reported this as a bug, I was (correctly) told that actually the server just stops sending the stream after it hits 2GB, so it's not a bug in livestreamer. That said, if you use the HLS stream endpoint, the same problem doesn't occur. So I manually force it to use the HLS source.

Scott


From: Spiral-King notifications@github.com
Sent: Tuesday, September 6, 2016 5:03:04 PM
To: chrippa/livestreamer
Subject: Re: [chrippa/livestreamer] Livestream.com URL Not Working Anymore (#1465)

Thanks for your feedback guy. I only use livestreamer to capture this one link. I'm not a programmer or coder so I don't know what do with what you linked you gave me. I went to this linkhttps://github.com//pull/1277/commits/1c56fb27598f57a03a7a408fc606a1a8dce61607 from the link you sent me and copied the code to notepad and saved it as "livestream.py" and put it in "C:\Program Files (x86)\Livestreamer\plugins". However it didn't seem to do a anything since I'm getting the same exact error as above.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1465#issuecomment-245090580, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1uzhphGTFFzjH5XQWip2sKjgY7srks5qndUIgaJpZM4Jzqvu.

@Spiral-King
Copy link
Author

Spiral-King commented Sep 7, 2016

Thanks for your feedback guys. I tried my best to understand what was being said in the link you sent me Scott but all the links on the page are dead! Scott, how do I private message you? I can give you my email.

@scottbernstein-zz
Copy link

@Spiral-King are you still stuck? If so, I will post a download link here for you.

@Spiral-King
Copy link
Author

Yes I am. I was trying to private message or poke you but don't know how. Honestly I just created an account on here for this one issue. Thanks a lot of your help in advance. I can give you my email if you can tell me how to message you.

@scottbernstein-zz
Copy link

OK, please grab it from here as soon as you are able:

https://drive.google.com/file/d/0B_MUY9V7tRe7UWdhQnM3SUxZalk/view?usp=sharing

Also please let me know once you've grabbed it so I can remove [😊]


From: Spiral-King notifications@github.com
Sent: Wednesday, September 21, 2016 11:43:10 PM
To: chrippa/livestreamer
Cc: scottbernstein; Comment
Subject: Re: [chrippa/livestreamer] Livestream.com URL Not Working Anymore (#1465)

Yes I am. I was trying to private message or poke you but don't know how. Honestly I just created an account on here for this one issue. Thanks a lot of your help in advance. I can give you my email if you can tell me how to message you.


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1465#issuecomment-248803476, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1vv6IL1k9wwExWKdkycNivmkvhMKks5qsflOgaJpZM4Jzqvu.

@Spiral-King
Copy link
Author

Spiral-King commented Sep 22, 2016

Okay I downloaded it. Thank you. However I'm not sure what directory I am suppose to put it in. I put it in every folder that has files ending in ".pyc" and I still get the same error. My default install directory is "C:\Program Files (x86)\Livestreamer". Only one directory asked me to overwrite and existing file with the same name and I hit "Yes'.

@scottbernstein-zz
Copy link

It goes in:
C:\Program Files (x86)\livestreamer\livestreamer-1.12.2-py2.7.egg\livestreamer\plugins


From: Spiral-King notifications@github.com
Sent: Thursday, September 22, 2016 10:08:07 AM
To: chrippa/livestreamer
Cc: scottbernstein; Comment
Subject: Re: [chrippa/livestreamer] Livestream.com URL Not Working Anymore (#1465)

Okay I downloaded it. Thank you. However I'm not sure what directory I am suppose to put it in. I put it in every folder that has files ending in ".pyc" and I still get the same error. My default install directory is "C:\Program Files (x86)\Livestreamer".

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1465#issuecomment-248913866, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1gJNYDUdQd0hl2dYbVrJO0FsvvU8ks5qsovHgaJpZM4Jzqvu.

@Spiral-King
Copy link
Author

1

I put it in there and I still get this message. I really think it has to do with something Livestreamer.com changed.... Just guessing though.

@scottbernstein-zz
Copy link

I can confirm that I am seeing the same error on this particular stream with the updated version.


From: Spiral-King notifications@github.com
Sent: Thursday, September 22, 2016 12:10:37 PM
To: chrippa/livestreamer
Cc: scottbernstein; Comment
Subject: Re: [chrippa/livestreamer] Livestream.com URL Not Working Anymore (#1465)

[1]https://cloud.githubusercontent.com/assets/21953329/18756301/67d613a6-80bd-11e6-9b5b-01526b1fbeae.jpg

I put it in there and I still get this message. I really think it has to do with something Livestreamer.com changed.... Just guessing though.

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1465#issuecomment-248950119, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1glRX5YrLGTcEN6OfaIppG7OHCC9ks5qsqh9gaJpZM4Jzqvu.

@intact
Copy link
Contributor

intact commented Sep 22, 2016

Thats old plugin, you need "new" version. :)

Delete livestream.pyc, livestream.py and download https://raw.githubusercontent.com/intact/livestreamer/c653539e1cc2ac185916e7680aff33558feef5f7/src/livestreamer/plugins/livestream.py

@Spiral-King
Copy link
Author

OMG it worked! Finally after 21 days! Thank you @intact so much! @scottbernstein also thank you for trying to help me out. None of you had to do this but you did and I'm very grateful for both of you! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants