Help for Regex Help for Regex - Page 53 | Kodi Forums
Page 53 of 53 FirstFirst ... 343515253
Results 521 to 530 of 530

Thread: Help for Regex

  1. #521
    Quote Originally Posted by papaya View Post
    super andrian is back?
    who is super andrian?


  2. #522
    Junior Member
    Join Date
    Aug 2017
    Posts
    19
    @aylak

    please no public links. Use the [Code] for Hide

  3. #523
    Quote Originally Posted by captainhardlock View Post
    Please, can someone help me for this?

    Code:
    <item>
    <title>Sp0r75tream365</title>
    <link>rtmpe://93.189.62.10/xlive app=xlive playpath=raw:XXXXXXX conn=S:client conn=S:3.1.3.31 conn=S:en conn=O:1 conn=NB:disAllowScriptAccess:0 timeout=15 live=1 pageUrl=hxxp://sportstream-365.com/</link>
    </item>
    Streaming starts good, but fall down suddendly after 2-3 seconds.

    I think i should pass 'swfhash' and 'swfsize' parameters into the tag links but latest Kodi versions are not compliant with those.
    Sorry for the trouble again. Could be possible to solve this link?

    Or find a different solution for

    Code:
    hxxp://sportstream365.com
    Thanks

  4. #524
    Addon Developer gujal's Avatar
    Join Date
    Dec 2013
    Posts
    133
    Quote Originally Posted by captainhardlock View Post
    Sorry for the trouble again. Could be possible to solve this link?

    Or find a different solution for

    Code:
    hxxp://sportstream365.com
    Thanks
    RTMP support in Kodi 17 above is poor as it does not support all the features added by KSV.
    There was one patched inputstream.rtmp version for windows available which could be used for ss365, but not available for any other platform. Can't do anything about it
    Kodi 17.6 Windows | Android

  5. #525
    Quote Originally Posted by gujal View Post
    RTMP support in Kodi 17 above is poor as it does not support all the features added by KSV.
    There was one patched inputstream.rtmp version for windows available which could be used for ss365, but not available for any other platform. Can't do anything about it
    Hi gujal

    Thanks a lot for the answer.

    Could you suggest me, in PM too, where can i find the patched inputstream.rtmp version?

  6. #526
    Junior Member
    Join Date
    Apr 2018
    Posts
    15
    i have try this code to play live youtube. but not able to play.. do i need to setup anything on youtube addon also?

    Quote Originally Posted by streamwatcher2013 View Post
    Welcome back @jujuuj. I don't know youtube plugin will pick the higher stream resolution? But here the one will pick the higher resolution if the stream has it

    Code:
    <item>
    <title>KTN Kenya NEWS</title>
    <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
    <regex>
    <name>getUrl</name>
    <expres><=!=[=C=D=A=T=A=[#$pyFunction
    import re,requests
    def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
      url='https://www.youtube.com/watch?v='+re.findall('feature=c4-live-promo".*?watch\?v=(.*?)".*?LIVE',requests.get('https://www.youtube.com/channel/UCkWr5PLM8hp8M4WNIkjpKsQ').content.decode('ascii','ignore'))[0]
      source=requests.get(url).content.decode('ascii','ignore').replace('\\u0026','&').replace('\\','');source=requests.get(re.findall('hlsvp":"(.*?)"',source)[0]).content.decode('ascii','ignore').replace('\\u0026','&').replace('\\','')
      if '1080' in source:
        return re.findall('x1080.*\n(.*)',source)[0]+'|User-Agent=iPad'
      elif '720' in source:
        return re.findall('x720.*\n(.*)',source)[0]+'|User-Agent=iPad'
      elif '480' in source:
        return re.findall('x480.*\n(.*)',source)[0]+'|User-Agent=iPad'
    ]=]=></expres>
    <page></page>
    </regex>
    <thumbnail>https://yt3.ggpht.com/-4c3BpnVtuLw/AAAAAAAAAAI/AAAAAAAAAAA/VTedIif8Pyc/s288-mo-c-c0xffffffff-rj-k-no/photo.jpg</thumbnail>
    </item>

  7. #527
    Senior Member streamwatcher2013's Avatar
    Join Date
    Oct 2013
    Location
    USA
    Posts
    125
    Quote Originally Posted by papaya View Post
    i have try this code to play live youtube. but not able to play.. do i need to setup anything on youtube addon also?
    Just use this one with minor modified

    Code:
    <item>
    <title>KTN Kenya NEWS</title>
    <link>$doregex[getUrl]</link>
    <regex>
    <name>getUrl</name>
    <expres><![CDATA[#$pyFunction
    import re,requests
    def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
      url='https://www.youtube.com/watch?v='+re.findall('feature=c4-live-promo".*?watch\?v=(.*?)"',requests.get('https://www.youtube.com/channel/UCkWr5PLM8hp8M4WNIkjpKsQ').content.decode('ascii','ignore'))[0]
      source=requests.get(url).content.decode('ascii','ignore').replace('\\u0026','&').replace('\\','');source=requests.get(re.findall('hlsvp":"(.*?)"',source)[0]).content.decode('ascii','ignore').replace('\\u0026','&').replace('\\','')
      if '1080' in source:
        return re.findall('x1080.*\n(.*)',source)[0]+'|User-Agent=iPad'
      elif '720' in source:
        return re.findall('x720.*\n(.*)',source)[0]+'|User-Agent=iPad'
      elif '480' in source:
        return re.findall('x480.*\n(.*)',source)[0]+'|User-Agent=iPad'
    ]]></expres>
    <page></page>
    </regex>
    <thumbnail>https://yt3.ggpht.com/-4c3BpnVtuLw/AAAAAAAAAAI/AAAAAAAAAAA/VTedIif8Pyc/s288-mo-c-c0xffffffff-rj-k-no/photo.jpg</thumbnail>
    </item>
    If you think my help is valuable, please donate to TV Addons. Your contribution is greatly appreciated.

  8. #528
    Junior Member
    Join Date
    Feb 2016
    Posts
    12
    Hi,
    please help to fix this code for captchas.

    Code:
    <item>
    <title>bs.to | single server</title>
    <link>$doregex[makelist]</link>
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
       <title>[COLOR yellow][makelist.param1][/COLOR]</title>
       <link>$doregex[selectserie]</link>
       <thumbnail>https://bs.to/public/img/header.png</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import requests,re,urllib
    import sys
    reload(sys)
    sys.setdefaultencoding("utf-8")
    def GetLSProData(page_data, Cookie_Jar, m):
      source = re.findall('id="seriesContainer">(?s)(.*?)<script',page_data)[0]
      return re.findall('strong>(.*?)</strong>(?s)(.*?)</ul',source)
    ]]></expres>
    <page>https://bs.to/serie-alphabet</page>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <cookieJar></cookieJar>
    <Accept>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</Accept>
    <Connection>keep-alive</Connection>
    </regex>
    <regex>
    <name>selectserie</name>
    <listrepeat><![CDATA[
       <title>[COLOR yellow][selectserie.param2][/COLOR]</title>
       <link>$doregex[selectseason]</link>
       <thumbnail>https://bs.to/public/img/header.png</thumbnail>
    ]]></listrepeat>
    <expres>href="(.*?)".title="(.*?)"</expres>
    <page>[makelist.param2]</page>
    </regex>
    
    <regex>
    <name>getcover</name>
    <expres>src="(.*/cover.*?)"</expres>
    <page>https://bs.to/[selectserie.param1]</page>
    <referer>https://bs.to/serie-alphabet</referer>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <cookieJar></cookieJar>
    </regex>
    
    <regex>
    <name>selectseason</name>
    <listrepeat><![CDATA[
       <title>[COLOR yellow][selectserie.param2][/COLOR] - [COLOR dodgerblue]Staffel [selectseason.param2][/COLOR]</title>
       <link>$doregex[selectsession]</link>
       <thumbnail>https://bs.to$doregex[getcover]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import requests,re,urllib
    def GetLSProData(page_data, Cookie_Jar, m):
      source = re.findall('id="seasons">(?s)(.*?)</ul',page_data)[0]
      return re.findall('href="(.*?\/(\d+))"',source)
    ]]></expres>
    <page>https://bs.to/[selectserie.param1]</page>
    <referer>https://bs.to/serie-alphabet</referer>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <cookieJar></cookieJar>
    </regex>
    
    <regex>
    <name>selectsession</name>
    <listrepeat><![CDATA[
       <title>[COLOR yellow][selectsession.param1][/COLOR] - [COLOR dodgerblue]Folge [selectsession.param2][/COLOR]</title>
       <link>$doregex[playvideo]</link>
       <thumbnail>https://bs.to$doregex[getcover]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import requests,re,urllib
    def GetLSProData(page_data, Cookie_Jar, m):
      source = re.findall('class="episodes">(?s)(.*?)</table',page_data)[0]
      return re.findall('title="(.*?)">(\d+)<[\w\W\s]*?href="(.*?)">(?:Vivo)<',source)    # change FlashX to whatever server you want youwatch, openload, vivo,....
    ]]></expres>
    <page>https://bs.to/[selectseason.param1]</page>
    <referer>https://bs.to/serie-alphabet</referer>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <cookieJar></cookieJar>
    <Accept>*/*</Accept>
    </regex>
    
    <regex>
    <name>getUrl</name>
    <expres>href="(.*?)".*?class="hoster-player"</expres>
    <page>https://bs.to/[selectsession.param3]</page>
    <cookieJar></cookieJar>
    <agent>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</agent>
    <Accept>*/*</Accept>
    <referer>https://bs.to/serie-alphabet</referer>
    <!-- <noredirect>true</noredirect> -->
    <includeheaders/>
    </regex>
    
     <regex>
     <name>playvideo</name>
    <expres><![CDATA[#$pyFunction
    import urlresolver
    def GetLSProData(page_data,Cookie_Jar,m):
    	url = '$doregex[getUrl]'
    	streamLink = urlresolver.resolve(url)
    	return streamLink
    ]]></expres>
     <page></page>
    <cookieJar></cookieJar>
    <agent>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</agent>
    <Referer></Referer>
    <Accept>*/*</Accept>
    </regex>
    
    </item>

  9. #529
    Junior Member
    Join Date
    Nov 2017
    Posts
    20
    thank you to help me, I tried to write this regex, but it wrong. some one can tell me where i wrong please.

    <item>
    <Title>regex futbolibre</title>
    <link>$doregex[getDecodedCode]|referer=hxxp://futbollibre.online/cdn-cgi/apps/head/_8TcguhGAY1pkXXQrzoa_JPjxIk.js</link>
    <regex>
    <name>getDecodedCode</name>
    <expres>$pyFunction:base64.b64decode($doregex[getEncodedCode])</expres>
    <page></page>
    </regex>
    <regex>
    <name>getEncodedCode</name>
    <expres>var futbollibre_0x4e65.*'(.*?)'</expres>
    <page>hxxp://futbollibre.online/espn-2/</page>
    <referer>hxxp://futbollibre.online/espn-2/embed.html</referer>
    <agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</agent>
    <cookieJar></cookieJar>
    </regex>
    <thumbnail></thumbnail>
    </item>

  10. #530
    Junior Member
    Join Date
    May 2018
    Posts
    1
    Help regex for this page h88p://allcalidad.com/tag/2018/

Page 53 of 53 FirstFirst ... 343515253

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •