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
ilive.to / streamlive.to plugin broken #739
Comments
Hi all, little update, there's an official kodi-addon from streamlive.to under http://142.4.216.60/ which is also written in python, seems to have a nice library to fetch token, channels etc, maybe this is usefull for some snakewranglers here ;). |
Found this in sportsdevil hopefully it can help with ilive. #item_info_name=title item_info_name=pageUrl item_info_name=req item_info_name=token item_info_name=rtmp item_info_name=app item_info_name=url |
I played a channel and it output this |
Here is solution. Log in on with Your user name and password and save cookies. Then get e.g. http://m.streamlive.to/view/68967 using saved cookies and cut out from there stream MRL with command: grep -Po "<video .* src="\K[^\"]+" |
Actually logging in not needed. So, solution is very simple. |
Logging in is now needed to access m.streamlive.to I've been trying to use a Python script with the Requests library to automate logging in and then scraping the MRL but I can't get the log in script to work let alone then figure out how to use the cookies to keep scraping - can you help potantate? |
On Wed, Oct 21, 2015 at 01:02:57AM -0700, privatesam wrote:
Neither logging in, nor m.streamlive.to not needed any more for now.
As above, You don't need logging in anymore.
But cookies still required.
Here in attachment is my bash script running by cgi via http. ffplay http://your_web_server/cgi/streamlive?pattern=HBO&categories=Entertainment,Movies' You may decide that it has redundant functionality, because it uses You can skip categories list and channel pattern and play exact Also You can see there simple captcha handling. It may become a And finally xml parser used to get available channels. #!/bin/bash #set -x -v NAME="Your_login_name" SEARCH="http://www.streamlive.to/api/live.xml" QUERY_STRING=$( [ "$categories" != "${categories/,/}" ] && if [ -z "$pattern" ] && [ -z "$channel" ]; then #wget -U "" -qO - \ --post-data "username=$NAME&password=$PASSWORD&submit=Login&accessed_by=web" \--keep-session-cookies \--save-cookies $COOKIES $LOGIN > /dev/nullTOKEN=$( stream () { } if [ -n "$channel" ]; then
fi if [ -n "$LOCATION" ]; then rm $COOKIES |
vstavrinov Thanks so much for this! Going to start playing with this script now and try and get it working. Really appreciate you taking the time to post back. |
vstavrinov almost got this working but just struggling with this error: line 146: rtmpdump: command not found The script is scraping and getting the MRL and the rmtp address but regardless of if I try and run ffplay or vlc the stream won't play. Once I've got the MRL and a token can I plug this data direct into ffplay/vlc to get the stream running? |
Do you have rtmpdump installed and added to you path? |
Oops! Nope - I thought it came with ffplay. Just installed now and now the script kicks out a different error: WARNING: You haven't specified an output file (-o filename), using stdout (thanks for helping out here skulblakka) |
On Wed, Oct 21, 2015 at 09:01:06AM -0700, privatesam wrote:
Yes, You should install rtmpdump first as well as other utilities,
Yes, but it is limited in time, because the MRL contains Vladimir Stavrinov |
On Wed, Oct 21, 2015 at 09:20:57AM -0700, privatesam wrote:
You are probably using ffmpeg instead of ffplay. But with http You can use any player. Vladimir Stavrinov |
Solved some bits and pieces that were wrong with my install (php etc). Now the script almost works. I had to change line #55 grep -Po "'file': '\K[^']+" this line was originally hashed but my channel identification using just wouldn't work without this. Now it seems to grab all the information it needs but rtmpdump is still struggling to get anything streaming down. The error always returns:
I'll post the full script I'm using below and I'm really grateful for any help. Also to note - the script occasionally gets beaten by the captcha - I noticed something went wrong a few times with the question "type the walking dead in the box" and "100 + 100" sum. Here is my script if you want me to run it with a few more 'echo's thrown in for debugging let me know:
|
Can anyone get the rtmp for this link http://www.newzphobia.com/2013/09/get-latest-views-and-news-from-hln-live-stream/ |
privatesam, first of all, if You want to get my script working, You should not change anything inside. When you get it working, then You can try to change something. Second, this is CGI script, and as such, it designed for http server only. You should configure Your server for CGI. Then You can run it this way: ffplay http://localhost/cgi/streamlive?channel=57804 Though You can run it from command line for debugging purpose only, for example this way: QUERY_STRING='pattern=CNN&show=1' ./streamlive If You want to use it from command line for streaming, You should remove http headers inside script and pipe stream to player: QUERY_STRING='channel=57804' ./streamlive | ffplay - Again: don't spend Your time for command line, but do configure Your server instead. |
Hi sir can you please help me on getting the rtmp for this link http://www.newzphobia.com/2013/09/get-latest-views-and-news-from-hln-live-stream/ So i can play it in vlc thanks! |
Thanks for the help vstavrinov I'll sort out my cgi-bin today and test the script using http as per your instructions. |
On Thu, Oct 22, 2015 at 01:12:44PM -0700, expandables2 wrote:
I've sniffed the traffic and saw, that it should look like this: rtmp://77.92.76.182/live/HLN202?id=48122&pk=d99c3b0f12a1fce42362a3fecd25cae3d7d2c4d02824755413f969f49c3b1953 swfUrl=http://www.janjuaplayer.com/resources/scripts/eplayer.swf pageUrl=http://www.janjuaplayer.com/embedplayer/HLN202/1/600/400 live=1 But it is protected: You see long id there, that is unique and Vladimir Stavrinov |
No, this id don't changed between requests. So there are some other problem. May be token required. Or something else. So we need more deep investigation. |
vstavrinov I have my web server up and running but apache2 is now kicking out this error:
When I run It looks like the cookies string is being cut? |
This means there are no empty line after http header. This done with echo command. Most likely You broke the script in some way. Check this line: echo -e "Content-Type: video/flv\n" |
Thanks vstavrinov - I got it working. Just used your script from scratch and took out anything I did - you were right. Thank you for your help. |
Great! We spent time and few messages to convince You do not touch the script. This is help You thanks for. And it is not technical issue. But this is common rule: before modifying any script, get it working first for You, if it is working for others. |
On Thu, Oct 22, 2015 at 01:12:44PM -0700, expandables2 wrote:
Here is cgi script, scraping video from this site in attachment. As You see, it takes only one parameter URL, but You can add debug=1 for Vladimir Stavrinov#!/bin/bash PLAYER="http://www.janjuaplayer.com/resources/scripts/eplayer.swf" QUERY_STRING=$(
PAGE="$(curl -s $URL)" FLASHVARS="$( eval "${FLASHVARS//&/ }" echo -e "Content-Type: video/flv\n" |
Hi vstavrinov . Just wanted to ask a quick question - no worries if you haven't got time to take a look but the Walking Dead captcha keeps kicking out this error (this is from my apache log). Don't want to start editing the script to fix this if you know how:
|
On Mon, Oct 26, 2015 at 03:03:03AM -0700, privatesam wrote:
This may occur when QUESTION variable is empty, but this should not Vladimir Stavrinov |
On Mon, Oct 26, 2015 at 01:22:07PM +0300, Vladimir Stavrinov wrote:
Yes, this is true - chaptcha gets essential changes. But as I see, it Vladimir Stavrinov |
On Mon, Oct 26, 2015 at 01:33:49PM +0300, Vladimir Stavrinov wrote:
It is amazing: with new changes our script still working in most Vladimir Stavrinov |
Yes its not a strong captcha and also I've noticed you can simply keep requesting the page and it'll provide a new captcha that the script can use. |
On Mon, Oct 26, 2015 at 01:33:49PM +0300, Vladimir Stavrinov wrote:
Done. The only changes we need is to add single symbol in regex: --- /opt/cgi/streamlive 2015-10-26 14:13:04.817826959 +0300
Vladimir Stavrinov |
On Mon, Oct 26, 2015 at 04:11:09AM -0700, privatesam wrote:
That is because I've wrote good regex: it catches answer after colon. Vladimir Stavrinov |
I have managed to parse any channel and play it via Roku, though it took many hours of testing and changing things around. As of now pretty much have it all being done in the box thru Brightscript. Had also done alot with php. My question is has any body figured out how the xs token string is generated? Would like to figure that one out. |
Hi guys. Bash script for streamlive.to does not seem to be working correctly, although it seems to be a minor issue. Does anyone have an updated script or livestreamer plugin for this? Edit: Solution was to remove the following lines: |
Hi,
the plugin for streamlive.to is broken since a few weeks. The problem seems to be that the website that the plugin uses (http://www.mobileonline.tv/index.php) does no longer gives valid links for the channels; but the channels themself on streamlive.to are working in the browser.
Any chance someone could adapt the plugin to work directly with streamlive.to instead of mobileonline.tv?
The text was updated successfully, but these errors were encountered: