ripristino la versione esistente
This commit is contained in:
+10
-21
@@ -17,9 +17,8 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from specials import autoplay
|
from specials import autoplay, filtertools
|
||||||
from core import support
|
from core import scrapertoolsV2, httptools, servertools, tmdb, support
|
||||||
from core import scrapertoolsV2, httptools, servertools, tmdb
|
|
||||||
from core.item import Item
|
from core.item import Item
|
||||||
from platformcode import logger, config
|
from platformcode import logger, config
|
||||||
|
|
||||||
@@ -27,8 +26,8 @@ from platformcode import logger, config
|
|||||||
host = "https://eurostreaming.cafe/"
|
host = "https://eurostreaming.cafe/"
|
||||||
headers = ['Referer', host]
|
headers = ['Referer', host]
|
||||||
|
|
||||||
##IDIOMAS = {'Italiano': 'IT'}
|
IDIOMAS = {'Italiano': 'IT'}
|
||||||
##list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
list_servers = ['verystream', 'wstream', 'speedvideo', 'flashx', 'nowvideo', 'streamango', 'deltabit', 'openload']
|
list_servers = ['verystream', 'wstream', 'speedvideo', 'flashx', 'nowvideo', 'streamango', 'deltabit', 'openload']
|
||||||
list_quality = ['default']
|
list_quality = ['default']
|
||||||
|
|
||||||
@@ -76,7 +75,6 @@ def episodios(item):
|
|||||||
|
|
||||||
# Carica la pagina
|
# Carica la pagina
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
|
|
||||||
#========
|
#========
|
||||||
if 'clicca qui per aprire' in data.lower():
|
if 'clicca qui per aprire' in data.lower():
|
||||||
item.url = scrapertoolsV2.find_single_match(data, '"go_to":"(.*?)"')
|
item.url = scrapertoolsV2.find_single_match(data, '"go_to":"(.*?)"')
|
||||||
@@ -89,7 +87,6 @@ def episodios(item):
|
|||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
#=========
|
#=========
|
||||||
|
|
||||||
## data = scrapertoolsV2.decodeHtmlentities(data)
|
|
||||||
matches = scrapertoolsV2.find_multiple_matches(data,
|
matches = scrapertoolsV2.find_multiple_matches(data,
|
||||||
r'<span class="su-spoiler-icon"><\/span>(.*?)</div></div>')
|
r'<span class="su-spoiler-icon"><\/span>(.*?)</div></div>')
|
||||||
for match in matches:
|
for match in matches:
|
||||||
@@ -99,12 +96,12 @@ def episodios(item):
|
|||||||
logger.info("blocks log: %s" % ( blocks ))
|
logger.info("blocks log: %s" % ( blocks ))
|
||||||
for block in blocks:
|
for block in blocks:
|
||||||
season_n, episode_n = scrapertoolsV2.find_single_match(block, r'(\d+)(?:×|×)(\d+)')
|
season_n, episode_n = scrapertoolsV2.find_single_match(block, r'(\d+)(?:×|×)(\d+)')
|
||||||
titolo = scrapertoolsV2.find_single_match(block, r'[&#;]\d+[ ]([a-zA-Z0-9,’;&#.\s]+)[ ]?[^<]')
|
titolo = scrapertoolsV2.find_single_match(block, r'[&#;]\d+[ ]([a-zA-Z0-9;&#.\s]+)[ ]?[^<>]')
|
||||||
logger.info("block log: %s" % ( block ))
|
logger.info("block log: %s" % ( block ))
|
||||||
|
|
||||||
titolo = re.sub(r'×|×', "x", titolo).replace("’","'")
|
titolo = re.sub(r'×|×', "x", titolo).replace("’","'")
|
||||||
## item.infoLabels['season'] = season_n # permette di vedere il plot della stagione e...
|
item.infoLabels['season'] = season_n # permette di vedere il plot della stagione e...
|
||||||
## item.infoLabels['episode'] = episode_n # permette di vedere il plot della puntata e...
|
item.infoLabels['episode'] = episode_n # permette di vedere il plot della puntata e...
|
||||||
|
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
@@ -112,21 +109,13 @@ def episodios(item):
|
|||||||
contentType=item.contentType,
|
contentType=item.contentType,
|
||||||
title="[B]" + season_n + "x" + episode_n + " " + titolo + "[/B] " + season_lang,
|
title="[B]" + season_n + "x" + episode_n + " " + titolo + "[/B] " + season_lang,
|
||||||
fulltitle=item.title, # Titolo nel video
|
fulltitle=item.title, # Titolo nel video
|
||||||
show=titolo + " : " + season_n + "x" + episode_n, # sottotitoletto nel video
|
show=titolo + ":" + season_n + "x" + episode_n, # sottotitoletto nel video
|
||||||
url=block,
|
url=block,
|
||||||
extra=item.extra,
|
extra=item.extra,
|
||||||
thumbnail=item.thumbnail,
|
thumbnail=item.thumbnail,
|
||||||
infoLabels=item.infoLabels,
|
infoLabels=item.infoLabels
|
||||||
language = season_lang,
|
|
||||||
contentEpisodeTitle = titolo,
|
|
||||||
contentSeason = season_n, # permette di vedere il plot della stagione e...
|
|
||||||
contentEpisodeNumber = episode_n # permette di vedere il plot della puntata e...
|
|
||||||
))
|
))
|
||||||
|
|
||||||
## itemlist = support.scrape(item, patron_block='', patron=patron, listGroups=listGroups,
|
|
||||||
## patronNext=patronNext,
|
|
||||||
## action='episodios')
|
|
||||||
|
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
|
|
||||||
support.videolibrary(itemlist, item)
|
support.videolibrary(itemlist, item)
|
||||||
|
|||||||
Reference in New Issue
Block a user