STAGIONE\s+\d+([^<>]+)').strip()
+
+ if seasons_n:
+ season = seasons_n
+
+ if not episode: continue
+
+ season = re.sub(r'–|–', "-", season)
+ itemlist.append(
+ Item(channel=item.channel,
+ action="findvideos",
+ contentType=item.contentType,
+ title="[B]" + episode + "[/B] " + season,
+ fulltitle=episode + " " + season,
+ show=episode + " " + season,
+ url=block,
+ extra=item.extra,
+ thumbnail=item.thumbnail,
+ infoLabels=item.infoLabels
+ ))
+
+ support.videolibrary(itemlist, item)
+
+ return itemlist
def findvideos(item):
@@ -177,7 +214,7 @@ def findvideos(item):
def load_links(itemlist, re_txt, color, desc_txt, quality=""):
streaming = scrapertoolsV2.find_single_match(data, re_txt).replace('"', '')
- support.log('STREAMING=',streaming)
+ support.log('STREAMING=', streaming)
patron = '| ]+>([^<]+)<'
matches = re.compile(patron, re.DOTALL).findall(streaming)
for scrapedurl, scrapedtitle in matches:
@@ -253,7 +290,7 @@ def findvid_serie(item):
def load_vid_series(html, item, itemlist, blktxt):
logger.info('HTML' + html)
patron = ']+>(.*?)'
- # Estrae i contenuti
+ # Estrae i contenuti
matches = re.compile(patron, re.DOTALL).finditer(html)
for match in matches:
scrapedurl = match.group(1)
@@ -310,6 +347,7 @@ def findvid_serie(item):
return itemlist
+
def play(item):
support.log()
itemlist = []
|