<item>
<title>[COLOR yellow]TUDN[/COLOR][COLOR red][B] [YT][/B][/COLOR] [US only]</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
source=urllib.urlopen('https://www.youtube.com/c/TUDNUSA/playlists').read()
return re.findall('"gridPlaylistRenderer":{"playlistId":"([^"]+).+?"thumbnails":.{"url":"([^\?]+).+?"title":{"runs":.{"text":"([^"]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist2.param1] [COLOR cyan]([makelist2.param2])[/COLOR]</title>
<info>[makelist2.param3]</info>
<urlsolve>https://www.youtube.com/watch?v=[makelist2.param4]</urlsolve>
<thumbnail>https://i.ytimg.com/vi/[makelist2.param4]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar, m):#streamwatcher2013
count=1;pn=1;jdata=[]
while pn <= int(count):
source=requests.get('https://www.youtube.com/list_ajax?style=json&action_get_list=1&list=[makelist.param1]&index='+str(pn),headers={'user-agent':'Mozilla/5.0'}).json()
jdata +=source.get('video');pn +=1
channels=[]
for j in jdata:
title=j.get('title')
vid=j.get('encrypted_id')
inf=j.get('description')
length=j.get('duration')
channels.append((title,length,inf,vid))
return channels
]]></expres>
<page></page>
</regex>
<thumbnail>https://yt3.ggpht.com/a/AATXAJy0sIkIpXR0saqRlzXwrseDY9FXGqNDj8-5i365VGQ=s88-c-k-c0x00ffffff-no-rj</thumbnail>
</item>