LSP Regex & Makelist Discussion.

Maxfernandes96

New member
Nov 23, 2020
12
0
1
hxxps: //live-sports-stream.net/
Ayuda por favor
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Try this:

LSP XML:
<item>
<title>https://live-sports-stream.net/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold] Channel [makelist.param1][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re, requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://live-sports-stream.net/schedule/',headers={'user-agent':'Mozilla/5.0','referer':'https://live-sports-stream.net/','accept':'*/*'}).content.decode('ascii','ignore')
  return re.findall('Channel\s*(\d+)[\w\W]+?<iframe\s*src="([^"]+)',re.findall('<body>(?s)(.*?)id="json_stuff',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('[makelist.param2]',headers={'user-agent':'Mozilla/5.0','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'}).content
  elink=re.findall('getElementById.+?src="([^"]+)',source)[0]
  source=requests.get(elink,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param2]','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'}).content
  return re.findall('Clappr.Player[\w\W]+?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=https://lowend.xyz&referer='+elink
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Maxfernandes96

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
updates version to show the game and time

LSP XML:
<item>
<title>https://live-sports-stream.net/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold] Channel [makelist.param1][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re, requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://live-sports-stream.net/schedule/',headers={'user-agent':'Mozilla/5.0','referer':'https://live-sports-stream.net/','accept':'*/*'}).content.decode('ascii','ignore')
  return re.findall('Channel\s*(\d+)(?s)(.*?)iframe\s*src="([^"]+)',re.findall('<body>(?s)(.*?)id="json_stuff',source)[0])
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>([makelist2.param1]) - [COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[(\d+:\d+).+?-\s*([^-]+)\s*#]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('[makelist.param3]',headers={'user-agent':'Mozilla/5.0','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'}).content
  elink=re.findall('getElementById.+?src="([^"]+)',source)[0]
  source=requests.get(elink,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param3]','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'}).content
  return re.findall('Clappr.Player[\w\W]+?(?:source|src|file):\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&origin=https://lowend.xyz&referer='+elink
]]></expres>
<page></page>
</regex>
</item>
 

Maxfernandes96

New member
Nov 23, 2020
12
0
1
<item>
<title>[COLOR lightgreen]live-sports [/COLOR]</title>
<thumbnail>https: //live-sports-stream.net/ /images/logo.png</thumbnail>
<link>$doregex[lista]</link>
<regex>
<name>lista</name>
<listrepeat><![CDATA[
<title>[lista.param2]</title>
<thumbnail>http://blackaddon.com/gray/img/acestream.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[acestream:\/\/(.*?)">(.*?)<]]><expres>
<page>https: //live-sports-stream.net/ /en/?q=$doregex[search]</page>
<referer>https: //live-sports-stream.net/ </referer>
<connection>keep-alive</connection>
<accept>*/*</accept>
<X-Req>XMLHttpRequest</X-Req>
<cookieJar></cookieJar>
</regex>

<regex>
<name>search</name>
<expres><![CDATA[#$pyFunction
import xbmc
import xbmcaddon
import xbmcgui
def GetLSProData(page_data,Cookie_Jar,m):
dialog = xbmcgui.Dialog()
d = dialog.input('Search: example: LIGA', type=xbmcgui.INPUT_ALPHANUM).replace(" ", "+")
return d
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>

</item>

AYUDA POR FAVOR CON EL REGEX GRACIAS
 

skyhigh

Member
Jan 11, 2015
62
1
8
Could one of the regex masters please take a stab at this place please, lots of tv series, the links are easy enough to get but a working regex of the site would be great if you could make 1 please and thanks

h***s://c.cloudflaredeletedourdomainandnowitslong.xyz/
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Try this:

LSP XML:
<item>
<title>https://c.cloudflaredeletedourdomainandnowitslong.xyz/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[href="(.*?)">(\w[^\/<]+)]]></expres>
<page>https://c.cloudflaredeletedourdomainandnowitslong.xyz/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist2.param2]</title>
  <link>https://c.cloudflaredeletedourdomainandnowitslong.xyz/[makelist.param1][makelist2.param1]|user-agent=ipad</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('</h1>(?s)(.*)',page_data)[0].replace('amp;','')
  return re.findall('href="(.*?)">(\w[^\.<]+)',list)
]]></expres>
<page>https://c.cloudflaredeletedourdomainandnowitslong.xyz/[makelist.param1]</page>
</regex>
</item>
 
  • Like
Reactions: skyhigh

skyhigh

Member
Jan 11, 2015
62
1
8
Streamwatcher , Well that didnt last long, they changed there name. I tried just to replace the name part but thats not enough

h**ps://nambla.xyz/
 

Catmantx

Member
Nov 2, 2020
67
3
8
Hello @streamwatcher2013, sorry to bother you again.
Something changed...again on youtube.
Getting the lists fine but error when you try o play it.
XML:
<item>
<title>Sky News - Playlists</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=urllib.urlopen('https://www.youtube.com/c/SkyNews/playlists').read().replace('\u0026','&')
  return re.findall('{"gridPlaylistRenderer":{"playlistId":"([^"]+)[\w\W]+?{"thumbnails":.{"url":"([^\?]+)[\w\W]+?"title":{"runs":.{"text":"([^"]+)',list)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR cyan]([makelist2.param2]) [COLOR gold][makelist2.param1][/COLOR]</title>
  <info>[COLOR dodgerblue]Thời lượng [makelist2.param2][/COLOR]</info>
  <urlsolve>https://www.youtube.com/watch?v=[makelist2.param3]</urlsolve>
  <thumbnail>https://i.ytimg.com/vi/[makelist2.param3]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar, m):
  page_data=urllib.urlopen('https://www.youtube.com/playlist?list=[makelist.param1]').read()
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\u0026','&').replace('\\','')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)"}',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return zip(title,duration,YTid)
]]></expres>
<page></page>
</regex>
</item>
PLEASE, pretty please take a look when you have a chance.
You made 3 regex, for LIVE, for playlist and for channel.
None of them want to play a video anymore.

Thank you for all your work.
 

Catmantx

Member
Nov 2, 2020
67
3
8
A friend pointed it out to change:
<urlsolve>https://www.youtube.com/watch?v=[makelist2.param3]</urlsolve>
with
<utube>[makelist2.param3]</utube>

and works just perfect.

How to correct this one that is looking for the LIVE?

XML:
<item>
<title>[COLOR yellow][B]SKY News[/B][/COLOR][COLOR red][B]  [YT][/B][/COLOR]</title>
<urlsolve>https://www.youtube.com/watch?v=$doregex[getUrl]</urlsolve>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  data=urllib.urlopen('https://www.youtube.com/c/SkyNews/featured').read().replace('\u0026','&')
  return re.findall('"title":"Home"[\w\W]+?/([^/]+).hqdefault_live',data)[0]
]]></expres>
<page></page>
</regex>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
139
2
18
Hi.Can I get help here & tk
Code:
hxxps://canale.live/player-tv/737876121/?id=62
 

m5Germany

Active member
Mar 20, 2014
310
98
28
@undpnd tqucbo,
Try this:
LSP XML:
<item>
<title>canale.live | id=62</title>
<thumbnail></thumbnail>
<fanart></fanart>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://canale.live/</link>
<regex>
<name>m5</name>
<expres><![CDATA[r.*?"([^"]+)";]]></expres>
<page>$doregex[1]</page>
</regex>
<regex>
<name>1</name>
<expres><![CDATA[f="(.*?id=62)]]></expres>
<page>https://canale.live/</page>
</regex>
</item>
Enjoy,
m5
 
  • Like
Reactions: undpnd tqucbo

m5Germany

Active member
Mar 20, 2014
310
98
28
Here's a makelist:
LSP XML:
<item>
<title>canale.live | makelist</title>
<link>$doregex[m5Get]</link>
<thumbnail>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-SHOWLOGO-289x200.png</thumbnail>
<fanart>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-VIDEOPLAYERTHUMBNAIL-692x390.jpg</fanart>
<regex>
<name>m5Get</name>
<listrepeat><![CDATA[
<title>[m5Get.param3]</title>
<thumbnail>[m5Get.param1]</thumbnail>
<fanart>https://img.tfc.tv/xcms/categoryimages/6006/TFCtv-VIDEOPLAYERTHUMBNAIL-692x390.jpg</fanart>
<link>$doregex[m5Server]|User-Agent=Mozilla/5.0&amp;Referer=https://canale.live/</link>   
]]></listrepeat>
<expres>(?s)img\s*src="([^"]+).*?href="([^"]+).*?">([^<]+)</expres>
<page>https://canale.live/</page>
</regex>
<regex>
<name>m5Server</name>
<expres>$pyFunction:'$doregex[m5]' if not '$doregex[m5]'=='' else '$doregex[bmw]'</expres>
<page></page>
</regex>
<regex>
<name>m5</name>
<expres><![CDATA[r.*?"([^"]+)";]]></expres>
<page>[m5Get.param2]</page>
</regex>
<regex>
<name>bmw</name>
<expres><![CDATA[r.*?"(h[^"]+)"\s*t\w]]></expres>
<page>[m5Get.param2]</page>
</regex>
</item>
Enjoy,
m5
 

faustino

New member
Sep 1, 2020
21
0
1
it looks like it now uses some kind of token

https://multicanais.com/sportv-online-hd-gratis/


Is there any way to work in kodi?
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Greetings, Does this Code work?
LSP XML:
<item>
<title>Bugatti Veyron 16.4 1001 HP vs BMW M5 E34</title>
<fanart>https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/screen-shot-2018-07-13-at-1-52-33-pm-1531504374.png</fanart>
<thumbnail>https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/screen-shot-2018-07-13-at-1-52-33-pm-1531504374.png</thumbnail>
<utube>eLz2aYRD6sQ</utube>
</item>
Thanks,
m5
 

Catmantx

Member
Nov 2, 2020
67
3
8
Hello, can this be done...including the "search" too?
Code:
stream.directmoviedl.com
.
Sorry for the abuse. :)

Thank you.
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
Try this:

LSP XML:
<item>
<title>https://stream.directmoviedl.com/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>$pyFunction:('[COLOR dodgerblue]([makelist.param3])  [COLOR gold][makelist.param2][/COLOR]').replace('-',' ')</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  murl='https://stream.directmoviedl.com/recent.php?page={}';headers={'user-agent':'Mozilla/5.0','accept':'*/*'}
  data=[];gtitle=[]
  for pn in range(1,10):
    source=requests.get(murl.format(pn),headers=headers).content
    list=re.findall('"recent.php"(?s)(.*?)footer',source)[0]
    data +=re.findall('(?s)class="thumb".+?href="([^"]+).\s*title="(.*?)(?:-|.)((?:20|19)[^-\s"]+).+?src="([^"]+)',list)
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  if '<video' in page_data:
    return re.findall('<video[\w\W]+?src="([^"]+)',page_data)[0]
  else:
    link=re.findall('<textarea.+?src="([^"]+)',page_data)[0]
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://stream.directmoviedl.com/[makelist.param1]','accept':'*/*'}).content
    return re.findall('<video[\w\W]+?src="([^"]+)',source)[0]
]]></expres>
<page>https://stream.directmoviedl.com/[makelist.param1]</page>
<referer>https://stream.directmoviedl.com/recent.php</referer>
</regex>
</item>
 
  • Like
Reactions: Catmantx

tnico

New member
May 29, 2015
20
0
1
Need help for this. please.
huups://www.telesud.com/
 

m5Germany

Active member
Mar 20, 2014
310
98
28
@tnico,
This was Coded already. Post: #1,124 Page 57. Additionally, if you have DailyMotion plugin you can use this:
LSP XML:
<item>
<title>https://www.telesud.com</title>
<thumbnail>https://www.telesud.com/og-image.jpg</thumbnail>
<fanart>https://gade.tv/wp-content/uploads/2020/07/Telesud.jpg</fanart>
<dmlive>$doregex[m5]</dmlive>
<regex>
<name>m5</name>
<expres>src=".*video\/([^?]+)</expres>
<page>https://www.telesud.com</page>
</regex>
</item>
Enjoy,
m5
 
  • Like
Reactions: tnico

Beezlo

Member
Mar 17, 2016
33
0
6
Hi Streamwatcher

this youtube regex doesnt work more, can you please fix again...

XML:
<item>
<title>[COLOR orangered]C[COLOR white]UKUR *[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]&#9818; [makelist.param1] [COLOR cyan]([makelist.param2])[/COLOR]</title>
  <info>Thời lượng [makelist.param2]</info>
  <urlsolve>https://www.youtube.com/watch?v=[makelist.param3]</urlsolve>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param3]/hqdefault.jpg</thumbnail><fanart>https://yt3.ggpht.com/Gp1vjeWqBOsL3s4He_i34LZtHwcULTTjDdrEZmh0lDJOe5HoGRMgorPCJwKsnqdKTdav_Hyb2g=w2120-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  page_data=urllib.urlopen('https://www.youtube.com/playlist?list=PLytu9wIdhRyQiSyS0p6PSsxYKKhk__d3I').read()
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\u0026','&').replace('\\','')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)"}',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return zip(title,duration,YTid)
]]></expres>
<page></page>
</regex>
<thumbnail>http://aslininsureti.com/wp-content/uploads/2017/10/yama%C3%A7-ko%C3%A7oval%C4%B1-aras-bulut-iynemli-%C3%A7ukur-1c.jpg</thumbnail><fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart></item>

Thanks in Advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
962
434
63
USA
It is working fine here with Kodi 18.x and

LSP XML:
<item>
<title>[COLOR orangered]C[COLOR white]UKUR *[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]&#9818; [makelist.param1] [COLOR cyan]([makelist.param2])[/COLOR]</title>
  <info>Duration [makelist.param2]</info>
<!--  <urlsolve>https://www.youtube.com/watch?v=[makelist.param3]</urlsolve>-->  <!-- will not play under Kodi 17.x. It needs the module "kodi_six" enable on Kodi 18.x -->
  <utube>[makelist.param3]</utube>   <!-- This will use youtube plugin -->
  <thumbnail>https://i.ytimg.com/vi/[makelist.param3]/hqdefault.jpg</thumbnail><fanart>https://yt3.ggpht.com/Gp1vjeWqBOsL3s4He_i34LZtHwcULTTjDdrEZmh0lDJOe5HoGRMgorPCJwKsnqdKTdav_Hyb2g=w2120-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  page_data=urllib.urlopen('https://www.youtube.com/playlist?list=PLytu9wIdhRyQiSyS0p6PSsxYKKhk__d3I').read()
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\u0026','&').replace('\\','')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)"}',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return zip(title,duration,YTid)
]]></expres>
<page></page>
</regex>
<thumbnail>http://aslininsureti.com/wp-content/uploads/2017/10/yama%C3%A7-ko%C3%A7oval%C4%B1-aras-bulut-iynemli-%C3%A7ukur-1c.jpg</thumbnail><fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart></item>
</item>
 
  • Like
Reactions: udomrat

tungbeng95

Member
Oct 25, 2018
386
13
18
Can someone help me this site.
Code:
https://www.fox.com.tr/canli-yayin
 

m5Germany

Active member
Mar 20, 2014
310
98
28
LSP XML:
<item>
<title>https://www.fox.com.tr/canli-yayin</title>
<fanart>https://foxtv-static2.ercdn.net/images/playerDefaulPoster.jpg</fanart>
<thumbnail>https://foxtv-static2.ercdn.net/images/playerDefaulPoster.jpg</thumbnail>
<link>$doregex[m5]|User-Agent=Mozilla/5.0&amp;Referer=https://www.fox.com.tr/</link>
<regex>
<name>m5</name>
<expres>$pyFunction:'$doregex[BMW]'.replace('&','&amp;')</expres>
<page></page>
</regex>
<regex>
<name>BMW</name>
<expres>\?\s'([^']+)</expres>
<page>https://www.fox.com.tr/canli-yayin</page>
</regex>
</item>
Enjoy,
m
 

m5Germany

Active member
Mar 20, 2014
310
98
28
Place:
https://www.fox.com.tr/canli-yayin
Into a RegEx Tester, Enter Match Pattern of:
\?\s'([^']+)
Results equals
https://foxtv.daioncdn.net/foxtv/foxtv.m3u8?ce=3&app=24e7a2e2-9156-4c02-a4fb-2bc599ffaf77&st=UHHz8AKI6rBoCmMmlozj2Q&e=1615551920

Now since there are "&" in m3u8 you need to replace that with "&amp;" for the Code to work in LSP.
Since I do not write Python you have to use a $pyFunction
$pyFunction:'$doregex[BMW]'.replace('&','&amp;')

So take rsults from BMW and place it in $doregex[BMW]
Which is the page results from: <name>BMW</name>
Now that you have the m3u8, have replaced the "&"
Place that final value in $doregex[m5]

That's it. Then use same concept to test other Codes already solved in this thread.

Enjoy,
m5
 
  • Like
Reactions: tungbeng95

udomrat

New member
Nov 10, 2016
20
5
3
thailand
Hi.guru
How to fix all playlist?
Code:
<item>
<title>[COLOR red]● YOUTUBE ●[/COLOR][COLOR orange]● Zee Music Company Playlists ●[/COLOR]</title>
<thumbnail>https://yt3.ggpht.com/a-/AAuE7mCeGajv_E4DH54EIu6c1Rm3AkCv4HgdW2Ow3g=s288-mo-c-c0xffffffff-rj-k-no</thumbnail>
<fanart></fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=urllib.urlopen('https://www.youtube.com/user/zeemusiccompany/playlists').read().replace('\u0026','&')
  return re.findall('{"gridPlaylistRenderer":{"playlistId":"([^"]+)[\w\W]+?{"thumbnails":.{"url":"([^\?]+)[\w\W]+?"title":{"runs":.{"text":"([^"]+)',list)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR cyan]([makelist2.param2]) [COLOR gold][makelist2.param1][/COLOR]</title>
  <info>[COLOR dodgerblue]Thời lượng [makelist2.param2][/COLOR]</info>
  <utube>[makelist2.param3]</utube>
  <thumbnail>https://i.ytimg.com/vi/[makelist2.param3]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar, m):
  page_data=urllib.urlopen('https://www.youtube.com/playlist?list=[makelist.param1]').read()
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\u0026','&').replace('\\','')
  YTid=re.findall('"playlistVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)"}',jdata)
  duration=re.findall('"playlistVideoRenderer":{"videoId":[\w\W]+?},"simpleText":"([^"]+)',jdata)
  return zip(title,duration,YTid)
]]></expres>
<page></page>
</regex>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5