TOOLSP
"
WELCOME !

Please ! USE [CODE] tags for your LINKS and CODE.

Favor usar balisas [CODE] para sus vínculos y código.

Merci d'utiliser les balises [CODE] pour vos liens et code.


[code]http://Thank.you[/code]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
FRIENDS / PARTNERS

TVaddon's  community

créer un forum


Please give me the code

Go down

Please give me the code Empty Please give me the code

Post by skyhigh on Tue 12 Mar - 22:54

Can one of you regex experts please give me the code for the live feed cams...please, please, please..

Code:
https://www.bigbrothercanada.ca/live-feeds/

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by Goldonx on Wed 13 Mar - 17:28

Here:

Code:
<item>
<title>Bigbrothercanada Feed</title>
<link>$doregex[list]</link>
<regex>
<name>list</name>
<listrepeat><![CDATA[
   <title>[B][list.param3][/B]</title>  
   <link>$doregex[url]</link>
   <thumbnail>[list.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  item=re.findall('(?s)class="feed-thumbnails-wrapper(.+?)class="feeds-disclaimer"',page_data)[0]
  return re.findall('(?s)href="([^"]+).+?src="([^"]+).+?span.+?>\s*(.+?)\s*<',item)
]]></expres>
<page>https://www.bigbrothercanada.ca/live-feeds/</page>
<agent>Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36</agent>
</regex>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  ua='Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'
  m3u8_info=re.findall('iframe src="([^\?]+)',page_data)[0].replace('/player','/stream_info').replace('http://livestream.com','http://player-api.new.livestream.com')
  source=requests.get(m3u8_info,headers={'User-Agent': ua,'Referer':'https://livestream.com/'},verify=False).text
  return re.findall('secure_m3u8_url":"([^"]+)',source)[0]+'|User-Agent='+ua+'Referer=https://livestream.com/'
]]></expres>
<page>https://www.bigbrothercanada.ca[list.param1]</page>
<referer>https://www.bigbrothercanada.ca/live-feeds/</referer>
<agent>Mozilla/5.0 (Windows NT 10; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36</agent>
</regex>
</item>

Goldonx

Messages : 41
Date d'inscription : 2018-02-11

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by skyhigh on Wed 13 Mar - 20:56

Thanks so much Goldonx, but no joy though, tried this in leia, and krypton, the feeds are live on the site..

Here's a share for BB Canada, live Global links and Live Feeds will be geo locked to Canadian I.P, the replay section will need you to have the youtube addon installed..

Code:
<item>
<title>[COLOR white][B]BIG BROTHER[COLOR red] CANADA[/B][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][COLOR red][/COLOR]</title>
<link>ignore</link>
<externallink>https://pastebin.com/raw/nTLDGRGk</externallink>
<page></page>
<thumbnail>https://shawetcanada.files.wordpress.com/2019/02/big-brother-s-7-.jpg</thumbnail>
<fanart>https://www.mapsgirl.ca/wp-content/uploads/2015/05/big-brother-canada-season-3.jpg</fanart>
</item>


Last edited by skyhigh on Wed 13 Mar - 22:33; edited 1 time in total

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by skyhigh on Wed 13 Mar - 22:25

Here a code snippet from the log if this tells you anything..

Code:
2019-03-13 17:19:33.601 T:15164   ERROR: Traceback (most recent call last):
2019-03-13 17:19:33.601 T:15164   ERROR:   File "C:\Users\*****\AppData\Roaming\Kodi\addons\plugin.video.live.streamspro\default.py", line 1921, in doEvalFunction
2019-03-13 17:19:33.602 T:15164   ERROR:     ret_val=LSProdynamicCode.GetLSProData(page_data,Cookie_Jar,m)
2019-03-13 17:19:33.602 T:15164   ERROR:   File "C:\Users\*****\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.live.streamspro\LSProdynamicCode1.py", line 8, in GetLSProData
2019-03-13 17:19:33.602 T:15164   ERROR:     return re.findall('secure_m3u8_url":"([^"]+)',source)[0]+'|User-Agent='+ua+'Referer=https://livestream.com/'
2019-03-13 17:19:33.602 T:15164   ERROR: IndexError: list index out of range
2019-03-13 17:19:33.602 T:15164   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                            - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                           Error Type: <type 'exceptions.TypeError'>
                                           Error Contents: 'NoneType' object is not iterable
                                           Traceback (most recent call last):
                                             File "C:\Users\*****\AppData\Roaming\Kodi\addons\plugin.video.live.streamspro\default.py", line 3227, in <module>
                                               url,setresolved = getRegexParsed(regexs, url)
                                           TypeError: 'NoneType' object is not iterable
                                           -->End of Python script error report<--
2019-03-13 17:19:33.658 T:13332   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.live.streamspro/?url=%24doregex%5Burl%5D&mode=17&regexs=%7Bu%27url%27%3A%20%7B%27expres%27%3A%20u%27%23%24pyFunction%5Cr%5Cndef%20GetLSProData%28page_data%2CCookie_Jar%2Cm%29%3A%5Cr%5Cn%20%20import%20re%2Crequests%5Cr%5Cn%20%20ua%3D%5C%27Mozilla/5.0%20%28Windows%20NT%2010%3B%20Win64%3B%20x64%29%20AppleWebKit/537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome/72.0.3626.121%20Safari/537.36%5C%27%5Cr%5Cn%20%20m3u8_info%3Dre.findall%28%5C%27iframe%20src%3D%22%28%5B%5E%5C%5C%3F%5D%2B%29%5C%27%2Cpage_data%29%5B0%5D.replace%28%5C%27/player%5C%27%2C%5C%27/stream_info%5C%27%29.replace%28%5C%27http%3A//livestream.com%5C%27%2C%5C%27http%3A//player-api.new.livestream.com%5C%27%29%5Cr%5Cn%20%20source%3Drequests.get%28m3u8_info%2Cheaders%3D%7B%5C%27User-Agent%5C%27%3A%20ua%2C%5C%27Referer%5C%27%3A%5C%27https%3A//livestream.com/%5C%27%7D%2Cverify%3DFalse%29.text%5Cr%5Cn%20%20return%20re.findall%28%5C%27secure_m3u8_url%22%3A%22%28%5B%5E%22%5D%2B%29%5C%27%2Csource%29%5B0%5D%2B%5C%27%7CUser-Agent%3D%5C%27%2Bua%2B%5C%27Referer%3Dhttps%3A//livestream.com/%5C%27%5Cr%5Cn%27%2C%20%27referer%27%3A%20u%27https%3A//www.bigbrothercanada.ca/live-feeds/%27%2C%20%27name%27%3A%20u%27url%27%2C%20%27agent%27%3A%20u%27Mozilla/5.0%20%28Windows%20NT%2010%3B%20Win64%3B%20x64%29%20AppleWebKit/537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome/72.0.3626.121%20Safari/537.36%27%2C%20%27page%27%3A%20u%27https%3A//www.bigbrothercanada.ca/live-feeds/1/%27%7D%7D&iconimage=https%3A%2F%2Fprd7.assets.bigbrothercanada.ca%2Flivestreams%2Ffeed1.jpg]

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by Goldonx on Wed 13 Mar - 23:35

Are you not in Canada? Live Feeds are geo blocked, this is the reason of the errors in the log. I used VPN with canadian Ip to test. With Krypton and Leia it's hard to start but it is working with jarvis with python 2.7 it starts quickly

Goldonx

Messages : 41
Date d'inscription : 2018-02-11

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by skyhigh on Wed 13 Mar - 23:38

yeah I'm Canadian, My VPN is off and for sure have a Canadian IP, im gonna reboot the pc and see if that changes anything, but i tried it on the sheild 2 and it was no dice..Im watchin the global link in the share and its geo locked to Canada so IP not an issue

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by skyhigh on Thu 14 Mar - 0:02

Yeah this is weird lol, I have always enjoyed your code over the years, and 4sure you no your $hit..I have a Canadian IP, tried 2.8.4, 2.8.5, tried on Leia, Krypton, inputstream adaptive on, rtmp on...so Im at loss, anyways I just appreciate you doing a regex up for me.. I can always just use the bbaddon and use jsonrpc to grab his links..thanks again G, feeds are off atm but I will keep trying to figure it out lol..

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by Goldonx on Thu 14 Mar - 10:37

Through your pastebin link, I have analyzed better I understood the reason for the error. The code tags, here, have changed a part of the regex code I wrote. Now I write it on pastebin and you can get it from there
Code:
https://pastebin.com/raw/YdDGV2t0

Goldonx

Messages : 41
Date d'inscription : 2018-02-11

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by skyhigh on Thu 14 Mar - 16:44

Ah...yes that happened at the other place...thanks...i will check it out after work..thanks again

EDIT: yup all good Smile

skyhigh

Messages : 67
Date d'inscription : 2017-06-07

View user profile

Back to top Go down

Please give me the code Empty Re: Please give me the code

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum