fix autoplay in cb01 and a little change on support and autoplay
This commit is contained in:
+10
-32
@@ -25,7 +25,7 @@ def findhost():
|
|||||||
IDIOMAS = {'Italiano': 'IT'}
|
IDIOMAS = {'Italiano': 'IT'}
|
||||||
list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
list_servers = ['verystream', 'openload', 'streamango', 'wstream']
|
list_servers = ['verystream', 'openload', 'streamango', 'wstream']
|
||||||
list_quality = ['HD', 'default']
|
list_quality = ['HD', 'SD', 'default']
|
||||||
|
|
||||||
checklinks = config.get_setting('checklinks', 'cineblog01')
|
checklinks = config.get_setting('checklinks', 'cineblog01')
|
||||||
checklinks_number = config.get_setting('checklinks_number', 'cineblog01')
|
checklinks_number = config.get_setting('checklinks_number', 'cineblog01')
|
||||||
@@ -33,7 +33,7 @@ checklinks_number = config.get_setting('checklinks_number', 'cineblog01')
|
|||||||
# esclusione degli articoli 'di servizio'
|
# esclusione degli articoli 'di servizio'
|
||||||
blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ',
|
blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ',
|
||||||
'Aggiornamento Quotidiano Serie TV', 'OSCAR 2019 ▶ CB01.UNO: Vota il tuo film preferito! 🎬',
|
'Aggiornamento Quotidiano Serie TV', 'OSCAR 2019 ▶ CB01.UNO: Vota il tuo film preferito! 🎬',
|
||||||
'Openload: la situazione. Benvenuto Verystream']
|
'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?']
|
||||||
|
|
||||||
|
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
@@ -230,11 +230,10 @@ def findvideos(item):
|
|||||||
matches = re.compile(patron, re.DOTALL).findall(streaming)
|
matches = re.compile(patron, re.DOTALL).findall(streaming)
|
||||||
for scrapedurl, scrapedtitle in matches:
|
for scrapedurl, scrapedtitle in matches:
|
||||||
logger.debug("##### findvideos %s ## %s ## %s ##" % (desc_txt, scrapedurl, scrapedtitle))
|
logger.debug("##### findvideos %s ## %s ## %s ##" % (desc_txt, scrapedurl, scrapedtitle))
|
||||||
title = "[COLOR " + color + "]" + desc_txt + ":[/COLOR] " + item.fulltitle + " [COLOR grey]" + QualityStr + "[/COLOR] [COLOR blue][" + scrapedtitle + "][/COLOR]"
|
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
action="play",
|
action="play",
|
||||||
title=title,
|
title=scrapedtitle,
|
||||||
url=scrapedurl,
|
url=scrapedurl,
|
||||||
server=scrapedtitle,
|
server=scrapedtitle,
|
||||||
fulltitle=item.fulltitle,
|
fulltitle=item.fulltitle,
|
||||||
@@ -265,37 +264,18 @@ def findvideos(item):
|
|||||||
# Estrae i contenuti - Streaming HD
|
# Estrae i contenuti - Streaming HD
|
||||||
load_links(itemlist, '<strong>Streaming HD[^<]+</strong>(.*?)<tableclass=cbtable height=30>', "yellow", "Streaming HD", "HD")
|
load_links(itemlist, '<strong>Streaming HD[^<]+</strong>(.*?)<tableclass=cbtable height=30>', "yellow", "Streaming HD", "HD")
|
||||||
|
|
||||||
autoplay.start(itemlist, item)
|
|
||||||
|
|
||||||
# Estrae i contenuti - Streaming 3D
|
# Estrae i contenuti - Streaming 3D
|
||||||
load_links(itemlist, '<strong>Streaming 3D[^<]+</strong>(.*?)<tableclass=cbtable height=30>', "pink", "Streaming 3D")
|
load_links(itemlist, '<strong>Streaming 3D[^<]+</strong>(.*?)<tableclass=cbtable height=30>', "pink", "Streaming 3D")
|
||||||
|
|
||||||
|
support.videolibrary(itemlist, item)
|
||||||
|
return support.server(item, itemlist=itemlist)
|
||||||
|
|
||||||
# Estrae i contenuti - Download
|
# Estrae i contenuti - Download
|
||||||
# load_links(itemlist, '<strong>Download:</strong>(.*?)<tableclass=cbtable height=30>', "aqua", "Download")
|
# load_links(itemlist, '<strong>Download:</strong>(.*?)<tableclass=cbtable height=30>', "aqua", "Download")
|
||||||
|
|
||||||
# Estrae i contenuti - Download HD
|
# Estrae i contenuti - Download HD
|
||||||
# load_links(itemlist, '<strong>Download HD[^<]+</strong>(.*?)<tableclass=cbtable width=100% height=20>', "azure", "Download HD")
|
# load_links(itemlist, '<strong>Download HD[^<]+</strong>(.*?)<tableclass=cbtable width=100% height=20>', "azure", "Download HD")
|
||||||
|
|
||||||
if len(itemlist) == 0:
|
|
||||||
itemlist = servertools.find_video_items(item=item)
|
|
||||||
|
|
||||||
# Requerido para Filtrar enlaces
|
|
||||||
|
|
||||||
if checklinks:
|
|
||||||
itemlist = servertools.check_list_links(itemlist, checklinks_number)
|
|
||||||
|
|
||||||
# Requerido para FilterTools
|
|
||||||
|
|
||||||
# itemlist = filtertools.get_links(itemlist, item, list_language)
|
|
||||||
|
|
||||||
# Requerido para AutoPlay
|
|
||||||
|
|
||||||
autoplay.start(itemlist, item)
|
|
||||||
|
|
||||||
support.videolibrary(itemlist, item)
|
|
||||||
|
|
||||||
return itemlist
|
|
||||||
|
|
||||||
|
|
||||||
def findvid_serie(item):
|
def findvid_serie(item):
|
||||||
def load_vid_series(html, item, itemlist, blktxt):
|
def load_vid_series(html, item, itemlist, blktxt):
|
||||||
@@ -306,11 +286,11 @@ def findvid_serie(item):
|
|||||||
for match in matches:
|
for match in matches:
|
||||||
scrapedurl = match.group(1)
|
scrapedurl = match.group(1)
|
||||||
scrapedtitle = match.group(2)
|
scrapedtitle = match.group(2)
|
||||||
title = item.title + " [COLOR blue][" + scrapedtitle + "][/COLOR]"
|
# title = item.title + " [COLOR blue][" + scrapedtitle + "][/COLOR]"
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
action="play",
|
action="play",
|
||||||
title=title,
|
title=scrapedtitle,
|
||||||
url=scrapedurl,
|
url=scrapedurl,
|
||||||
server=scrapedtitle,
|
server=scrapedtitle,
|
||||||
fulltitle=item.fulltitle,
|
fulltitle=item.fulltitle,
|
||||||
@@ -354,9 +334,7 @@ def findvid_serie(item):
|
|||||||
else:
|
else:
|
||||||
load_vid_series(data[lnkblkp[i]:lnkblkp[i + 1]], item, itemlist, lnkblk[i])
|
load_vid_series(data[lnkblkp[i]:lnkblkp[i + 1]], item, itemlist, lnkblk[i])
|
||||||
|
|
||||||
autoplay.start(itemlist, item)
|
return support.server(item, itemlist=itemlist)
|
||||||
|
|
||||||
return itemlist
|
|
||||||
|
|
||||||
|
|
||||||
def play(item):
|
def play(item):
|
||||||
@@ -390,4 +368,4 @@ def play(item):
|
|||||||
else:
|
else:
|
||||||
data = support.swzz_get_url(item)
|
data = support.swzz_get_url(item)
|
||||||
|
|
||||||
return support.server(item, data, headers)
|
return servertools.find_video_items(data=data)
|
||||||
|
|||||||
+4
-3
@@ -492,15 +492,16 @@ def nextPage(itemlist, item, data, patron, function_level=1):
|
|||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
def server(item, data='', headers='', AutoPlay=True, CheckLinks=True):
|
def server(item, data='', itemlist='', headers='', AutoPlay=True, CheckLinks=True):
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
data = httptools.downloadpage(item.url, headers=headers).data
|
data = httptools.downloadpage(item.url, headers=headers).data
|
||||||
|
|
||||||
itemlist = servertools.find_video_items(data=str(data))
|
if not itemlist:
|
||||||
|
itemlist = servertools.find_video_items(data=str(data))
|
||||||
|
|
||||||
for videoitem in itemlist:
|
for videoitem in itemlist:
|
||||||
videoitem.title = "".join([item.title, ' ', typo(videoitem.title, 'color kod []')])
|
videoitem.title = "".join([item.title, ' ', typo(videoitem.title, 'color kod []'), typo(videoitem.quality, 'color kod []') if videoitem.quality else ""])
|
||||||
videoitem.fulltitle = item.fulltitle
|
videoitem.fulltitle = item.fulltitle
|
||||||
videoitem.show = item.show
|
videoitem.show = item.show
|
||||||
videoitem.thumbnail = item.thumbnail
|
videoitem.thumbnail = item.thumbnail
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ def start(itemlist, item):
|
|||||||
# 2: Solo servidores
|
# 2: Solo servidores
|
||||||
# 3: Solo calidades
|
# 3: Solo calidades
|
||||||
# 4: No ordenar
|
# 4: No ordenar
|
||||||
if (settings_node['custom_servers'] and settings_node['custom_quality']):
|
if (settings_node['custom_servers'] and settings_node['custom_quality']) or get_setting('autoplay'):
|
||||||
priority = settings_node['priority'] # 0: Servidores y calidades o 1: Calidades y servidores
|
priority = settings_node['priority'] # 0: Servidores y calidades o 1: Calidades y servidores
|
||||||
elif settings_node['custom_servers']:
|
elif settings_node['custom_servers']:
|
||||||
priority = 2 # Solo servidores
|
priority = 2 # Solo servidores
|
||||||
|
|||||||
Reference in New Issue
Block a user