Fix SerieHD
This commit is contained in:
+12
-14
@@ -8,18 +8,19 @@ from core import scrapertoolsV2, httptools, support
|
|||||||
from core.item import Item
|
from core.item import Item
|
||||||
|
|
||||||
|
|
||||||
__channel__ = "seriehd"
|
__channel__ = 'seriehd'
|
||||||
# host = support.config.get_channel_url(__channel__)
|
# host = support.config.get_channel_url(__channel__)
|
||||||
|
|
||||||
#impostati dinamicamente da findhost()
|
#impostati dinamicamente da findhost()
|
||||||
host = ""
|
host = ''
|
||||||
headers = ""
|
headers = ''
|
||||||
|
|
||||||
def findhost():
|
def findhost():
|
||||||
data= support.httptools.downloadpage('https://seriehd.nuovo.link/').data
|
data= httptools.downloadpage('https://seriehd.nuovo.link/').data
|
||||||
global host, headers
|
global host, headers
|
||||||
host = support.scrapertoolsV2.find_single_match(data, r'<div class="elementor-button-wrapper"> <a href="([^"]+)"')
|
host = scrapertoolsV2.find_single_match(data, r'<div class="elementor-button-wrapper"> <a href="([^"]+)"')
|
||||||
headers = [['Referer', host]]
|
headers = [['Referer', host]]
|
||||||
|
return host
|
||||||
|
|
||||||
IDIOMAS = {'Italiano': 'IT'}
|
IDIOMAS = {'Italiano': 'IT'}
|
||||||
list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
@@ -35,16 +36,16 @@ headers = [['Referer', host]]
|
|||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
findhost()
|
findhost()
|
||||||
tvshow = [('Genere', ['', 'genre']),
|
tvshow = [('Genere', ['', 'genre']),
|
||||||
('Americane', ['/serie-tv-streaming/serie-tv-americane', 'peliculas']),
|
('Americane', ['serie-tv-streaming/serie-tv-americane', 'peliculas']),
|
||||||
('Italiane', ['/serie-tv-streaming/serie-tv-italiane', 'peliculas']),]
|
('Italiane', ['serie-tv-streaming/serie-tv-italiane', 'peliculas']),]
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
def search(item, texto):
|
def search(item, texto):
|
||||||
support.log(item)
|
|
||||||
support.log(texto)
|
support.log(texto)
|
||||||
|
|
||||||
# item.contentType = 'tvshow'
|
# item.contentType = 'tvshow'
|
||||||
item.url = host + "/?s=" + texto
|
item.url = findhost() + "/?s=" + texto
|
||||||
try:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
|
|
||||||
@@ -62,12 +63,9 @@ def newest(categoria):
|
|||||||
item = support.Item()
|
item = support.Item()
|
||||||
try:
|
try:
|
||||||
if categoria == "series":
|
if categoria == "series":
|
||||||
item.url = host
|
item.url = findhost()
|
||||||
itemlist = peliculas(item)
|
itemlist = peliculas(item)
|
||||||
|
|
||||||
if config.get_localized_string(30992) in itemlist[-1].title:
|
|
||||||
itemlist.pop()
|
|
||||||
|
|
||||||
# Continua la ricerca in caso di errore
|
# Continua la ricerca in caso di errore
|
||||||
except:
|
except:
|
||||||
import sys
|
import sys
|
||||||
@@ -83,7 +81,7 @@ def genre(item):
|
|||||||
patronMenu = '<a href="(?P<url>[^"]+)">(?P<title>[^<]+)</a>'
|
patronMenu = '<a href="(?P<url>[^"]+)">(?P<title>[^<]+)</a>'
|
||||||
blacklist = ['Serie TV','Serie TV Americane','Serie TV Italiane','altadefinizione']
|
blacklist = ['Serie TV','Serie TV Americane','Serie TV Italiane','altadefinizione']
|
||||||
patronBlock = '<ul class="sub-menu">(?P<block>.*)</ul>'
|
patronBlock = '<ul class="sub-menu">(?P<block>.*)</ul>'
|
||||||
|
action = 'peliculas'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
|
|||||||
+1
-1
@@ -360,7 +360,7 @@ def scrape(func):
|
|||||||
# if (item.contentType == "tvshow" and (action != "findvideos" and action != "play")) \
|
# if (item.contentType == "tvshow" and (action != "findvideos" and action != "play")) \
|
||||||
# or (item.contentType == "episode" and action != "play") \
|
# or (item.contentType == "episode" and action != "play") \
|
||||||
# or (item.contentType == "movie" and action != "play") :
|
# or (item.contentType == "movie" and action != "play") :
|
||||||
if action != 'play':
|
if action != 'play' and 'patronMenu' not in args:
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
# else: # Si perde item show :(
|
# else: # Si perde item show :(
|
||||||
# for it in itemlist:
|
# for it in itemlist:
|
||||||
|
|||||||
Reference in New Issue
Block a user