fix casacinemaInfo
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"animetubeita": "http://www.animetubeita.com",
|
"animetubeita": "http://www.animetubeita.com",
|
||||||
"animeworld": "https://www1.animeworld.tv",
|
"animeworld": "https://www1.animeworld.tv",
|
||||||
"casacinema": "https://www.casacinema.cloud",
|
"casacinema": "https://www.casacinema.cloud",
|
||||||
"casacinemainfo": "https://casacinema.kim",
|
"casacinemaInfo": "https://casacinema.space",
|
||||||
"cb01anime": "https://www.cineblog01.ink",
|
"cb01anime": "https://www.cineblog01.ink",
|
||||||
"cinemalibero": "https://www.cinemalibero.live",
|
"cinemalibero": "https://www.cinemalibero.live",
|
||||||
"cinetecadibologna" : "http://cinestore.cinetecadibologna.it",
|
"cinetecadibologna" : "http://cinestore.cinetecadibologna.it",
|
||||||
|
|||||||
@@ -23,14 +23,14 @@ from core import scrapertools, httptools
|
|||||||
from core.item import Item
|
from core.item import Item
|
||||||
|
|
||||||
|
|
||||||
def findhost():
|
# def findhost():
|
||||||
data = httptools.downloadpage('https://casacinema.nuovo.link').data
|
# data = httptools.downloadpage('https://casacinema.nuovo.link').data
|
||||||
host = scrapertools.find_single_match(data, r'<div class="elementor-widget-container"><div class="elementor-button-wrapper"> <a href="([^"]+)"')
|
# host = scrapertools.find_single_match(data, r'<div class="elementor-widget-container"><div class="elementor-button-wrapper"> <a href="([^"]+)"')
|
||||||
if host.endswith('/'):
|
# if host.endswith('/'):
|
||||||
host = host[:-1]
|
# host = host[:-1]
|
||||||
return host
|
# return host
|
||||||
|
|
||||||
host = support.config.get_channel_url(findhost)
|
host = support.config.get_channel_url()
|
||||||
headers = [['Referer', host]]
|
headers = [['Referer', host]]
|
||||||
|
|
||||||
list_servers = ['supervideo', 'streamcherry','rapidvideo', 'streamango', 'openload']
|
list_servers = ['supervideo', 'streamcherry','rapidvideo', 'streamango', 'openload']
|
||||||
@@ -67,7 +67,7 @@ def peliculas(item):
|
|||||||
patronNext = '<a href="([^"]+)"\s+?><i class="glyphicon glyphicon-chevron-right"'
|
patronNext = '<a href="([^"]+)"\s+?><i class="glyphicon glyphicon-chevron-right"'
|
||||||
|
|
||||||
#support.regexDbg(item, patronBlock, headers)
|
#support.regexDbg(item, patronBlock, headers)
|
||||||
#debug = True
|
# debug = True
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -251,7 +251,7 @@ def downloadpage(url, **opt):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
load_cookies()
|
load_cookies()
|
||||||
if urlparse.urlparse(url).netloc in ['www.guardaserie.media']:
|
if urlparse.urlparse(url).netloc in ['www.guardaserie.media', 'casacinema.space']:
|
||||||
from lib import cloudscraper
|
from lib import cloudscraper
|
||||||
session = cloudscraper.create_scraper()
|
session = cloudscraper.create_scraper()
|
||||||
elif opt.get('session', False):
|
elif opt.get('session', False):
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ def render_items(itemlist, parent_item):
|
|||||||
|
|
||||||
# Recorremos el itemlist
|
# Recorremos el itemlist
|
||||||
for item in itemlist:
|
for item in itemlist:
|
||||||
logger.debug(item)
|
# logger.debug(item)
|
||||||
# Si el item no contiene categoria, le ponemos la del item padre
|
# Si el item no contiene categoria, le ponemos la del item padre
|
||||||
if item.category == "":
|
if item.category == "":
|
||||||
item.category = parent_item.category
|
item.category = parent_item.category
|
||||||
|
|||||||
Reference in New Issue
Block a user