SerieHD host impostato dinamicamente
This commit is contained in:
+13
-2
@@ -4,12 +4,22 @@
|
|||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
from core import support
|
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()
|
||||||
|
host = ""
|
||||||
|
headers = ""
|
||||||
|
|
||||||
|
def findhost():
|
||||||
|
data= support.httptools.downloadpage('https://seriehd.nuovo.link/').data
|
||||||
|
global host, headers
|
||||||
|
host = support.scrapertoolsV2.find_single_match(data, r'<div class="elementor-button-wrapper"> <a href="([^"]+)"')
|
||||||
|
headers = [['Referer', host]]
|
||||||
|
|
||||||
IDIOMAS = {'Italiano': 'IT'}
|
IDIOMAS = {'Italiano': 'IT'}
|
||||||
list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
@@ -23,6 +33,7 @@ headers = [['Referer', host]]
|
|||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
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']),]
|
||||||
|
|||||||
Reference in New Issue
Block a user