VideoHelp Forum
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 38 of 38
Thread
  1. Originally Posted by boss100 View Post
    both two codes work for a few second then the stream stops.
    any idea what could be wrong.
    for the first i don't know why it stops

    you can try this but i'm not sure (need f4mTester addon)

    Code:
    <item>
    <title>kurdistan24-tv</title> 
    <link>plugin://plugin.video.f4mTester/?streamtype=HLS&amp;url=$doregex[URLEncodedLink]</link>
    
    <regex>
    <name>URLEncodedLink</name>
    <expres>$pyFunction:urllib.quote_plus('$doregex[get-m3u8-referer]')</expres>
    <page></page>
    <cookieJar></cookieJar>
    </regex>
    
    <regex>
    <name>get-m3u8-referer</name>
    <expres><![CDATA[#$pyFunction
    def GetLSProData(page_data,Cookie_Jar,m):
     import requests
     import re
    
     headers = {'User-Agent': 'python-requests/2.9.1','Referer': 'http://karwan.tv/kurdistan24-tv.html'}
     source = requests.get('http://karwan.tv/live/kurdistan24-tv/kurdistan24-tv.php', headers=headers)
     streamfn = re.findall('file:.*?\n.*?file: (.*?)\(', source.text)[0]
    
     formula1 = re.search(r'function ' + streamfn + '.*\n.*\[(.*?)\].join.*?\+ (.*?).join.*?ById\("(.*?)"', source.text)
    
     par1 = formula1.group(1).replace('\"', '').replace(',', '').replace('\\/', '/')
     
     prepar2 = re.findall('var ' + formula1.group(2) + '.*?\[(".*?)\]', source.text)[0]
     par2 = prepar2.replace('\"', '').replace(',', '').replace('\\/', '/')
     par3 = re.findall('id=' + formula1.group(3) + '>(.*?)<', source.text)[0]
     finalm3u8= par1 + par2 +par3
    
     m3u8_referer_agent = par1 + par2 + par3 + '|Referer=http://p.jwpcdn.com/6/12/jwplayer.flash.swf&User-Agent=python-requests/2.9.1'
    
     return m3u8_referer_agent
    
    ]]></expres>
    <page></page>
    </regex>
    </item>


    for the second it's because it was high stream and need premium account so with low stream it works


    Code:
    <item>
    <title>https://www.filmon.com/channel/rotana-classic</title>
    <link>$doregex[get-rtmp]</link>
    
    <regex>
    <name>get-rtmp</name>
    <expres><![CDATA[#$pyFunction
    def GetLSProData(page_data,Cookie_Jar,m):
    
     import requests
     import re
    
     pageUrl='https://www.filmon.com/channel/rotana-classic'
     headers = {'User-Agent': 'python-requests/2.9.0'}
     source = requests.get(pageUrl, headers=headers)
     cookie1 = source.cookies['PHPSESSID']
     cookie2 = source.cookies['ftv_token']
     cookie = {'PHPSESSID': cookie1, 'ftv_token': cookie2, 'ftv_defq': 'hd', 'flash-player-type': 'rtmp'}
     headers = {'User-agent': 'Mozilla/5.0', 'X-Requested-With': 'XMLHttpRequest'}
     r2 = requests.post("http://www.filmon.com/ajax/getChannelInfo", headers = headers, data={'channel_id' : '2609'}, cookies=cookie)
     url = re.findall('low","url":"(.*?)"', r2.text)[0]
     cleanurl = url.replace('\\/','/')
     rtmp = re.findall('(rtmp.*)\?', cleanurl)[0]
     app = re.findall('(live/.*)', cleanurl)[0]
    
     final = rtmp + ' app=' + app + ' swfUrl=' + 'http://www.filmon.com/tv/modules/FilmOnTV/files/flashapp/filmon/FilmonPlayer.swf' + ' pageUrl=' + 'https://www.filmon.com/channel/rotana-classic' + ' playpath=' + '2609.low.stream' + ' live=1'
    
     return final
    
    ]]></expres>
    <page></page>
    </regex>
    </item>
    Quote Quote  
  2. thanks second one works now. but first still has problems stream will work for a few second. without f4mtester stream will stop but not freeze. with f4mtester the stream will freeze with picture.
    Quote Quote  
  3. i will post my request on tvaddons.org hopefully someone could figure this out.

    thanks again, i really appreciate the help
    Quote Quote  
  4. Originally Posted by boss100 View Post
    i will post my request on tvaddons.org hopefully someone could figure this out.

    thanks again, i really appreciate the help
    if you want it's possible with python code or php code run the stream trough livestreamer i wrote a python code that run livestreamer and the srteam doesn't stop
    so without kodi
    Quote Quote  
  5. the problem is i want the stream to be played on my minix z64 box not on my pc. is there any chance to let this stream work in kodi with any other way.
    Quote Quote  
  6. Hello

    I am trying to get channels from:
    http://www.afromotion.tv/afrotv/all

    Such as TFM.

    However, the m3u links are protected with WMSAUTH=.....which make the m3u link expire after a couple of minutes. I have been reading this thread about the regex function that can automatically fetch the new WMSAUTH=... and make the link non expirable. I tried playing the stream in LIVE STREAM PRO with no success.

    <item>
    <title>TFM</title>
    <link>$doregex[get-M3U8]|User-Agent=Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0</link>
    <regex>
    <name>get-M3U8</name>
    <expres>file:"(.*?)"</expres>
    <page>http://www.afromotion.tv/afrotv/watch/O</page>
    </regex>
    </item>

    Someone please help!

    Thanks in advance
    Quote Quote  
  7. Hi. I'm new to this forum and to Kodi Livestreampro. I'd like to get the playable link for http://sarisaristreaming.blogspot.com/2016/05/anc-live.html?m=1 . Thanks in advance
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!