inizio fix streamingaltadefinizione e modifiche varie
This commit is contained in:
+5
-5
@@ -3,9 +3,9 @@
|
|||||||
"altadefinizione01_club": "https://www.altadefinizione01.cc",
|
"altadefinizione01_club": "https://www.altadefinizione01.cc",
|
||||||
"altadefinizione01_link": "http://altadefinizione01.town",
|
"altadefinizione01_link": "http://altadefinizione01.town",
|
||||||
"altadefinizioneclick": "https://altadefinizione.cloud",
|
"altadefinizioneclick": "https://altadefinizione.cloud",
|
||||||
"altadefinizionehd": "https://altadefinizionetv.best",
|
"altadefinizionehd": "https://altadefinizione.wtf",
|
||||||
"animeforce": "https://ww1.animeforce.org",
|
"animeforce": "https://ww1.animeforce.org",
|
||||||
"animeleggendari": "https://animepertutti.net",
|
"animeleggendari": "https://animepertutti.com",
|
||||||
"animespace": "http://www.animespace.tv",
|
"animespace": "http://www.animespace.tv",
|
||||||
"animestream": "https://www.animeworld.it",
|
"animestream": "https://www.animeworld.it",
|
||||||
"animesubita": "http://www.animesubita.org",
|
"animesubita": "http://www.animesubita.org",
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
"serietvonline": "https://serietvonline.tech",
|
"serietvonline": "https://serietvonline.tech",
|
||||||
"serietvsubita": "http://serietvsubita.xyz",
|
"serietvsubita": "http://serietvsubita.xyz",
|
||||||
"serietvu": "https://www.serietvu.club",
|
"serietvu": "https://www.serietvu.club",
|
||||||
"streamingaltadefinizione": "https://www.streamingaltadefinizione.me",
|
"streamingaltadefinizione": "https://www.popcornstream.best",
|
||||||
"streamtime": "https://t.me/s/StreamTime",
|
"streamtime": "https://t.me/s/StreamTime",
|
||||||
"tantifilm": "https://www.tantifilm.eu",
|
"tantifilm": "https://www.tantifilm.eu",
|
||||||
"toonitalia": "https://toonitalia.org",
|
"toonitalia": "https://toonitalia.org",
|
||||||
"vedohd": "https://vedohd.icu/",
|
"vedohd": "https://vedohd.video",
|
||||||
"vvvvid": "https://www.vvvvid.it"
|
"vvvvid": "https://www.vvvvid.it"
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,11 @@
|
|||||||
{
|
{
|
||||||
"id": "streamingaltadefinizione",
|
"id": "streamingaltadefinizione",
|
||||||
"name": "Streaming Altadefinizione",
|
"name": "Popcorn Stream",
|
||||||
"language": ["ita"],
|
"language": ["ita"],
|
||||||
"active": true,
|
"active": true,
|
||||||
"adult": false,
|
"adult": false,
|
||||||
"thumbnail": "https://www.streamingaltadefinizione.world/wp-content/uploads/2018/09/StreamingAltadefinizioneLogo.png",
|
"thumbnail": "https://www.popcornstream.best/wp-content/uploads/2019/09/PopLogo40.png",
|
||||||
|
"banner": "https://www.popcornstream.info/media/PopcornStream820x428.png",
|
||||||
"categories": ["movie","tvshow","anime"],
|
"categories": ["movie","tvshow","anime"],
|
||||||
"settings": [
|
"settings": []
|
||||||
{
|
|
||||||
"id": "include_in_global_search",
|
|
||||||
"type": "bool",
|
|
||||||
"label": "Includi in Ricerca Globale",
|
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"visible": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
from core import support
|
from core import support
|
||||||
from core.item import Item
|
from core.item import Item
|
||||||
from specials import autoplay
|
|
||||||
from platformcode import config
|
from platformcode import config
|
||||||
|
|
||||||
__channel__ = "streamingaltadefinizione"
|
__channel__ = "streamingaltadefinizione"
|
||||||
@@ -49,7 +48,8 @@ def generos(item):
|
|||||||
|
|
||||||
|
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
return support.dooplay_films(item)
|
support.dbg()
|
||||||
|
return support.dooplay_peliculas(item, True if "/genere/anime/" in item.url else False)
|
||||||
|
|
||||||
|
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
@@ -59,20 +59,16 @@ def episodios(item):
|
|||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
for link in support.dooplay_get_links(item, host):
|
for link in support.dooplay_get_links(item, host):
|
||||||
server = link['server'][:link['server'].find(".")]
|
if link['title'] != 'Guarda il trailer':
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
action="play",
|
action="play",
|
||||||
title=server + " [COLOR blue][" + link['title'] + "][/COLOR]",
|
url=link['url'],
|
||||||
url=link['url'],
|
fulltitle=item.fulltitle,
|
||||||
server=server,
|
thumbnail=item.thumbnail,
|
||||||
fulltitle=item.fulltitle,
|
show=item.show,
|
||||||
thumbnail=item.thumbnail,
|
quality=link['title'],
|
||||||
show=item.show,
|
contentType=item.contentType,
|
||||||
quality=link['title'],
|
folder=False))
|
||||||
contentType=item.contentType,
|
|
||||||
folder=False))
|
|
||||||
|
|
||||||
autoplay.start(itemlist, item)
|
return support.server(item, itemlist=itemlist)
|
||||||
|
|
||||||
return itemlist
|
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ def search(item, text):
|
|||||||
|
|
||||||
|
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
return support.dooplay_films(item, blacklist)
|
return support.dooplay_peliculas(item, blacklist)
|
||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
|
|||||||
+12
-10
@@ -340,10 +340,10 @@ def scrape(func):
|
|||||||
# IMPORTANT 'type' is a special key, to work need typeContentDict={} and typeActionDict={}
|
# IMPORTANT 'type' is a special key, to work need typeContentDict={} and typeActionDict={}
|
||||||
|
|
||||||
def wrapper(*args):
|
def wrapper(*args):
|
||||||
function = func.__name__
|
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
|
||||||
args = func(*args)
|
args = func(*args)
|
||||||
|
function = func.__name__ if not 'actLike' in args else args['actLike']
|
||||||
# log('STACK= ',inspect.stack()[1][3])
|
# log('STACK= ',inspect.stack()[1][3])
|
||||||
|
|
||||||
item = args['item']
|
item = args['item']
|
||||||
@@ -497,17 +497,15 @@ def dooplay_get_links(item, host):
|
|||||||
|
|
||||||
@scrape
|
@scrape
|
||||||
def dooplay_get_episodes(item):
|
def dooplay_get_episodes(item):
|
||||||
item.contentType = "episode"
|
|
||||||
patron = '<li class="mark-[0-9]+">.*?<img.*?(?:data-lazy-)?src="(?P<thumb>[^"]+).*?(?P<episode>[0-9]+ - [0-9]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+).*?(?P<year>[0-9]{4})'
|
patron = '<li class="mark-[0-9]+">.*?<img.*?(?:data-lazy-)?src="(?P<thumb>[^"]+).*?(?P<episode>[0-9]+ - [0-9]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+).*?(?P<year>[0-9]{4})'
|
||||||
|
actLike = 'episodios'
|
||||||
def itemlistHook(itemlist):
|
|
||||||
return videolibrary(itemlist, item, function='episodios')
|
|
||||||
|
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
@scrape
|
@scrape
|
||||||
def dooplay_films(item, blacklist=""):
|
def dooplay_peliculas(item, mixed=False, blacklist=""):
|
||||||
|
actLike = 'peliculas'
|
||||||
if item.args == 'searchPage':
|
if item.args == 'searchPage':
|
||||||
return dooplay_search_vars(item, blacklist)
|
return dooplay_search_vars(item, blacklist)
|
||||||
else:
|
else:
|
||||||
@@ -516,7 +514,7 @@ def dooplay_films(item, blacklist=""):
|
|||||||
patron = '<article id="post-[0-9]+" class="item movies">.*?<img src="(?!data)(?P<thumb>[^"]+)".*?<span class="quality">(?P<quality>[^<>]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a></h3>.*?(?:<span>[^<>]*(?P<year>[0-9]{4})</span>|</article>).*?(?:<span>(?P<duration>[0-9]+) min</span>|</article>).*?(?:<div class="texto">(?P<plot>[^<>]+)|</article>).*?(?:genres">(?P<genre>.*?)</div>|</article>)'
|
patron = '<article id="post-[0-9]+" class="item movies">.*?<img src="(?!data)(?P<thumb>[^"]+)".*?<span class="quality">(?P<quality>[^<>]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a></h3>.*?(?:<span>[^<>]*(?P<year>[0-9]{4})</span>|</article>).*?(?:<span>(?P<duration>[0-9]+) min</span>|</article>).*?(?:<div class="texto">(?P<plot>[^<>]+)|</article>).*?(?:genres">(?P<genre>.*?)</div>|</article>)'
|
||||||
else:
|
else:
|
||||||
action = 'episodios'
|
action = 'episodios'
|
||||||
patron = '<article id="post-[0-9]+" class="item tvshows">.*?<img src="(?!data)(?P<thumb>[^"]+)".*?(?:<span class="quality">(?P<quality>[^<>]+))?.*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a></h3>.*?(?:<span>(?P<year>[0-9]{4})</span>|</article>).*?(?:<div class="texto">(?P<plot>[^<>]+)|</article>).*?(?:genres">(?P<genre>.*?)</div>|</article>)'
|
patron = '<article id="post-[0-9]+" class="item ' + ('\w+' if mixed else 'tvshow') + '">.*?<img src="(?!data)(?P<thumb>[^"]+)".*?(?:<span class="quality">(?P<quality>[^<>]+))?.*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a></h3>.*?(?:<span>(?P<year>[0-9]{4})</span>|</article>).*?(?:<div class="texto">(?P<plot>[^<>]+)|</article>).*?(?:genres">(?P<genre>.*?)</div>|</article>)'
|
||||||
patronNext = '<div class="pagination">.*?class="current".*?<a href="([^"]+)".*?<div class="resppages">'
|
patronNext = '<div class="pagination">.*?class="current".*?<a href="([^"]+)".*?<div class="resppages">'
|
||||||
addVideolibrary = False
|
addVideolibrary = False
|
||||||
|
|
||||||
@@ -536,6 +534,7 @@ def dooplay_search_vars(item, blacklist):
|
|||||||
action = 'episodios'
|
action = 'episodios'
|
||||||
patron = '<div class="result-item">.*?<img src="(?P<thumb>[^"]+)".*?<span class="' + type + '">(?P<quality>[^<>]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a>.*?<span class="year">(?P<year>[0-9]{4}).*?<div class="contenido"><p>(?P<plot>[^<>]+)'
|
patron = '<div class="result-item">.*?<img src="(?P<thumb>[^"]+)".*?<span class="' + type + '">(?P<quality>[^<>]+).*?<a href="(?P<url>[^"]+)">(?P<title>[^<>]+)</a>.*?<span class="year">(?P<year>[0-9]{4}).*?<div class="contenido"><p>(?P<plot>[^<>]+)'
|
||||||
patronNext = '<a class="arrow_pag" href="([^"]+)"><i id="nextpagination"'
|
patronNext = '<a class="arrow_pag" href="([^"]+)"><i id="nextpagination"'
|
||||||
|
|
||||||
def fullItemlistHook(itemlist):
|
def fullItemlistHook(itemlist):
|
||||||
# se è una next page
|
# se è una next page
|
||||||
if itemlist[-1].title == typo(config.get_localized_string(30992), 'color kod bold'):
|
if itemlist[-1].title == typo(config.get_localized_string(30992), 'color kod bold'):
|
||||||
@@ -905,16 +904,19 @@ def pagination(itemlist, item, page, perpage, function_level=1):
|
|||||||
|
|
||||||
def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=True, down_load=True):
|
def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=True, down_load=True):
|
||||||
|
|
||||||
if not data:
|
if not (data and itemlist):
|
||||||
data = httptools.downloadpage(item.url, headers=headers, ignore_response_code=True).data
|
data = httptools.downloadpage(item.url, headers=headers, ignore_response_code=True).data
|
||||||
|
|
||||||
|
|
||||||
itemList = servertools.find_video_items(data=str(data))
|
itemList = servertools.find_video_items(data=str(data))
|
||||||
itemlist = itemlist + itemList
|
itemlist = itemlist + itemList
|
||||||
|
|
||||||
for videoitem in itemlist:
|
for videoitem in itemlist:
|
||||||
|
if not videoitem.server:
|
||||||
|
findS = servertools.findvideos(videoitem.url)[0]
|
||||||
|
videoitem.server = findS[2]
|
||||||
|
videoitem.title = findS[0]
|
||||||
item.title = item.contentTitle if config.get_localized_string(30161) in item.title else item.title
|
item.title = item.contentTitle if config.get_localized_string(30161) in item.title else item.title
|
||||||
videoitem.title = item.title + typo(videoitem.title, '_ color kod []') + (typo(videoitem.quality, '_ color kod []') if videoitem.quality else "")
|
videoitem.title = item.fulltitle + 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
|
||||||
|
|||||||
Reference in New Issue
Block a user