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


need help for ustreamix.com

Go down

need help for ustreamix.com Empty need help for ustreamix.com

Post by vbprofi on Thu 14 Mar - 18:02

Hello experts,
have someone an idea, what the problem is?
channels are listed well, but can't play.
Code:

<item>
<title>ustreamix</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]</title>
<link>http:$doregex[play]</link>
<thumbnail>NA</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
import HTMLParser
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 parser = HTMLParser.HTMLParser()
 s = re.sub("(&.+?;)", lambda m: parser.unescape(m.group()), page_data)
 items = re.findall('<a.*?href="(.*?)".*?">(.*?)<', re.findall('<h3>Channel Listing</h3>(?s).*?">Green</font> = Live / OK</p>', s)[0])
 mylist = ['Germ', 'de', 'zdf', 'ard', 'kabel', 'pro'] #['RTL', 'RTL', 'Sat1', '3Sat']
 chs = []
 for title, url in items:
  if any([x.lower() in title.lower() for x in mylist]):
  title = '00' + title
  else:
  title = '99' + title
  chs.append((title, url))
 myorder = []
 for title, url in sorted(chs):
  myorder.append((title[2:], url))
 return myorder
]]></expres>
<page>https://ssl.ustreamix.com/</page>
<Referer>https://ssl.ustreamix.com/</Referer>
<agent>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3</agent>
<cookieJar></cookieJar>
</regex>

<regex>
<name>play</name>
<expres><![CDATA[og:video:secure_url.*?content="(.*?)"]]></expres>
<page>https://ssl.ustreamix.com[makelist.param1]</page>
<Referer>https://ssl.ustreamix.com/</Referer>
<agent>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3</agent>
<cookieJar></cookieJar>
</regex>
</item>

vbprofi

Messages : 90
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by skyhigh on Thu 14 Mar - 20:58

if you have the latest sportdevil installed JX uploaded today, just call his addon, he did the work all ready, credit to him

EDIT:

check pastebin below.


Last edited by skyhigh on Thu 14 Mar - 22:56; edited 3 times in total

skyhigh

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

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by vbprofi on Thu 14 Mar - 22:14

your example don't work. please tell how I can use your example with my code.

vbprofi

Messages : 90
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by skyhigh on Thu 14 Mar - 22:41

It works just fine, I just tried it, just install the latest sportdevil and call his addon in L$P for the full ustreamix list with the code I posted..something to use while some1 does a regex for ya..

just a sec I will do a pastebin 4 u, the forum dosent post the code right..

Code:
https://pastebin.com/raw/gP6U8B0K

Proof:

need help for ustreamix.com 99

need help for ustreamix.com 100

skyhigh

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

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by vbprofi on Fri 15 Mar - 0:45

don't work.
I have Version 2018.01.18 where I get newest from?

Edit / Update:
I have deleted old version and install newest from mega.... your code is working well... but I need only streams from germany or bring that on top. you can show for example on my code. have you an idea, how that can realize?

vbprofi

Messages : 90
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by skyhigh on Fri 15 Mar - 11:14

German only, here's a start, only way I no is to make an xml this way, takes a while but will work, or like I said, wait for an expert.

Code:
https://pastebin.com/eaRQh2nH

skyhigh

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

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

Post by vbprofi on Sun 17 Mar - 9:10

thank you very much!
I have combined your code with the code in my first posting.
that is working well. here the working finished code.:
Code:

https://pastebin.com/raw/R5zycF20

vbprofi

Messages : 90
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

need help for ustreamix.com Empty Re: need help for ustreamix.com

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