Fix Dreamsub (VVVID)
This commit is contained in:
+31
-20
@@ -110,6 +110,7 @@ def episodios(item):
|
|||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
support.log()
|
support.log()
|
||||||
|
# support.dbg()
|
||||||
|
|
||||||
matches = support.match(item, patron=r'href="([^"]+)"', patronBlock=r'<div style="white-space: (.*?)<div id="main-content"')
|
matches = support.match(item, patron=r'href="([^"]+)"', patronBlock=r'<div style="white-space: (.*?)<div id="main-content"')
|
||||||
|
|
||||||
@@ -118,27 +119,37 @@ def findvideos(item):
|
|||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
return episodios(item)
|
return episodios(item)
|
||||||
|
|
||||||
# matches.matches.sort()
|
if 'vvvvid' in matches.data:
|
||||||
support.log('VIDEO')
|
|
||||||
for url in matches.matches:
|
|
||||||
lang = url.split('/')[-2]
|
|
||||||
if 'ita' in lang.lower():
|
|
||||||
language = 'ITA'
|
|
||||||
if 'sub' in lang.lower():
|
|
||||||
language = 'Sub-' + language
|
|
||||||
quality = url.split('/')[-1]
|
|
||||||
|
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
support.Item(channel=item.channel,
|
support.Item(channel=item.channel,
|
||||||
action="play",
|
action="play",
|
||||||
contentType=item.contentType,
|
contentType=item.contentType,
|
||||||
title=language,
|
title='vvvid',
|
||||||
url=url,
|
url=support.match(matches.data, patron=r'(http://www.vvvvid[^"]+)').match,
|
||||||
contentLanguage = language,
|
server='vvvvid',
|
||||||
quality = quality,
|
))
|
||||||
order = quality.replace('p','').zfill(4),
|
else:
|
||||||
server='directo',
|
# matches.matches.sort()
|
||||||
))
|
support.log('VIDEO')
|
||||||
|
for url in matches.matches:
|
||||||
|
lang = url.split('/')[-2]
|
||||||
|
if 'ita' in lang.lower():
|
||||||
|
language = 'ITA'
|
||||||
|
if 'sub' in lang.lower():
|
||||||
|
language = 'Sub-' + language
|
||||||
|
quality = url.split('/')[-1]
|
||||||
|
|
||||||
|
itemlist.append(
|
||||||
|
support.Item(channel=item.channel,
|
||||||
|
action="play",
|
||||||
|
contentType=item.contentType,
|
||||||
|
title=language,
|
||||||
|
url=url,
|
||||||
|
contentLanguage = language,
|
||||||
|
quality = quality,
|
||||||
|
order = quality.replace('p','').zfill(4),
|
||||||
|
server='directo',
|
||||||
|
))
|
||||||
|
|
||||||
itemlist.sort(key=lambda x: (x.title, x.order), reverse=False)
|
itemlist.sort(key=lambda x: (x.title, x.order), reverse=False)
|
||||||
return support.server(item, itemlist=itemlist)
|
return support.server(item, itemlist=itemlist)
|
||||||
Reference in New Issue
Block a user