fix: specials/news.py
problema con voce "Successivo"
This commit is contained in:
+13
-14
@@ -7,8 +7,7 @@
|
|||||||
from core import scrapertoolsV2, httptools, 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()
|
# impostati dinamicamente da findhost()
|
||||||
@@ -22,11 +21,13 @@ def findhost():
|
|||||||
headers = [['Referer', host]]
|
headers = [['Referer', host]]
|
||||||
return host
|
return host
|
||||||
|
|
||||||
|
findhost()
|
||||||
|
|
||||||
list_servers = ['verystream', 'openload', 'streamango', 'thevideome']
|
list_servers = ['verystream', 'openload', 'streamango', 'thevideome']
|
||||||
list_quality = ['1080p', '720p', '480p', '360']
|
list_quality = ['1080p', '720p', '480p', '360']
|
||||||
|
|
||||||
checklinks = support.config.get_setting('checklinks', __channel__)
|
##checklinks = support.config.get_setting('checklinks', __channel__)
|
||||||
checklinks_number = support.config.get_setting('checklinks_number', __channel__)
|
##checklinks_number = support.config.get_setting('checklinks_number', __channel__)
|
||||||
|
|
||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
@@ -40,9 +41,9 @@ def mainlist(item):
|
|||||||
|
|
||||||
def search(item, texto):
|
def search(item, texto):
|
||||||
support.log(texto)
|
support.log(texto)
|
||||||
|
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
item.url = findhost() + "/?s=" + texto
|
item.url = host + "/?s=" + texto
|
||||||
try:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
|
|
||||||
@@ -57,12 +58,13 @@ def search(item, texto):
|
|||||||
def newest(categoria):
|
def newest(categoria):
|
||||||
support.log(categoria)
|
support.log(categoria)
|
||||||
itemlist = []
|
itemlist = []
|
||||||
item = support.Item()
|
item = support.Item()
|
||||||
try:
|
try:
|
||||||
if categoria == "series":
|
if categoria == "series":
|
||||||
item.url = findhost()
|
item.url = host
|
||||||
|
item.contentType = 'tvshow'
|
||||||
itemlist = peliculas(item)
|
itemlist = peliculas(item)
|
||||||
|
itemlist.pop()
|
||||||
# Continua la ricerca in caso di errore
|
# Continua la ricerca in caso di errore
|
||||||
except:
|
except:
|
||||||
import sys
|
import sys
|
||||||
@@ -94,7 +96,7 @@ def peliculas(item):
|
|||||||
def episodios(item):
|
def episodios(item):
|
||||||
data =''
|
data =''
|
||||||
url = support.match(item, patronBlock=r'<iframe width=".+?" height=".+?" src="([^"]+)" allowfullscreen frameborder="0">')[1]
|
url = support.match(item, patronBlock=r'<iframe width=".+?" height=".+?" src="([^"]+)" allowfullscreen frameborder="0">')[1]
|
||||||
seasons = support.match(item, r'<a href="([^"]+)">(\d+)<', r'<h3>STAGIONE</h3><ul>(.*?)</ul>', headers, url)[0]
|
seasons = support.match(item, r'<a href="([^"]+)">(\d+)<', r'<h3>STAGIONE</h3><ul>(.*?)</ul>', headers, url)[0]
|
||||||
for season_url, season in seasons:
|
for season_url, season in seasons:
|
||||||
season_url = support.urlparse.urljoin(url, season_url)
|
season_url = support.urlparse.urljoin(url, season_url)
|
||||||
episodes = support.match(item, r'<a href="([^"]+)">(\d+)<', '<h3>EPISODIO</h3><ul>(.*?)</ul>', headers, season_url)[0]
|
episodes = support.match(item, r'<a href="([^"]+)">(\d+)<', '<h3>EPISODIO</h3><ul>(.*?)</ul>', headers, season_url)[0]
|
||||||
@@ -110,7 +112,4 @@ def episodios(item):
|
|||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
support.log()
|
support.log()
|
||||||
return support.hdpass_get_servers(item)
|
return support.hdpass_get_servers(item)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user