Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "altadefinizione01_club",
|
"id": "altadefinizione01_club",
|
||||||
"name": "Altadefinizione01 C",
|
"name": "Altadefinizione01 C",
|
||||||
"active": "enable",
|
"active": false,
|
||||||
"adult": false,
|
"adult": false,
|
||||||
"language": ["ita"],
|
"language": ["ita"],
|
||||||
"fanart": "https://www.altadefinizione01.vision/templates/Darktemplate/images/logo.png",
|
"fanart": "https://www.altadefinizione01.vision/templates/Darktemplate/images/logo.png",
|
||||||
@@ -11,14 +11,6 @@
|
|||||||
"movie"
|
"movie"
|
||||||
],
|
],
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
|
||||||
"id": "channel_host",
|
|
||||||
"type": "text",
|
|
||||||
"label": "Host del canale",
|
|
||||||
"default": "https://altadefinizione01.estate/",
|
|
||||||
"enabled": true,
|
|
||||||
"visible": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "modo_grafico",
|
"id": "modo_grafico",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
"active": true,
|
"active": true,
|
||||||
"adult": false,
|
"adult": false,
|
||||||
"language": ["ita"],
|
"language": ["ita"],
|
||||||
"thumbnail": "https://eurostreaming.cafe/wp-content/uploads/2017/08/logocafe.png",
|
"thumbnail": "eurostreaming.png",
|
||||||
"bannermenu": "https://eurostreaming.cafe/wp-content/uploads/2017/08/logocafe.png",
|
"banner": "eurostreaming.png",
|
||||||
"categories": ["tvshow","anime","vosi"],
|
"categories": ["tvshow","anime","vosi"],
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
|
|||||||
+19
-44
@@ -4,15 +4,12 @@
|
|||||||
# by Greko
|
# by Greko
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
"""
|
"""
|
||||||
Riscritto per poter usufruire del decoratore support.scrape
|
|
||||||
Problemi noti:
|
Problemi noti:
|
||||||
Alcune sezioni di anime-cartoni non vanno, alcune hanno solo la lista degli episodi, ma non hanno link
|
Alcune sezioni di anime-cartoni non vanno, alcune hanno solo la lista degli episodi, ma non hanno link,
|
||||||
altre cambiano la struttura
|
altre cambiano la struttura
|
||||||
"""
|
"""
|
||||||
|
import re
|
||||||
#import channelselector
|
from core import scrapertoolsV2, httptools, support
|
||||||
#from specials import autoplay#, filtertools
|
|
||||||
from core import scrapertoolsV2, httptools, support#, servertools, tmdb
|
|
||||||
from core.item import Item
|
from core.item import Item
|
||||||
from platformcode import logger, config
|
from platformcode import logger, config
|
||||||
|
|
||||||
@@ -23,82 +20,59 @@ headers = [['Referer', host]]
|
|||||||
list_servers = ['verystream', 'wstream', 'speedvideo', 'flashx', 'nowvideo', 'streamango', 'deltabit', 'openload']
|
list_servers = ['verystream', 'wstream', 'speedvideo', 'flashx', 'nowvideo', 'streamango', 'deltabit', 'openload']
|
||||||
list_quality = ['default']
|
list_quality = ['default']
|
||||||
|
|
||||||
checklinks = config.get_setting('checklinks', 'cineblog01')
|
|
||||||
checklinks_number = config.get_setting('checklinks_number', 'cineblog01')
|
|
||||||
|
|
||||||
IDIOMAS = {'Italiano': 'ITA', 'Sub-ITA':'vosi'}
|
IDIOMAS = {'Italiano': 'ITA', 'Sub-ITA':'vosi'}
|
||||||
list_language = IDIOMAS.values()
|
list_language = IDIOMAS.values()
|
||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
support.log()
|
support.log()
|
||||||
|
|
||||||
tvshow = [
|
tvshow = [
|
||||||
## ('tvshow', [ '', 'peliculas', '', 'tvshow']), # mettere sempre episode per serietv, anime!!
|
|
||||||
('Archivio ', ['/category/serie-tv-archive/', 'peliculas', '', 'tvshow']),
|
('Archivio ', ['/category/serie-tv-archive/', 'peliculas', '', 'tvshow']),
|
||||||
('Aggiornamenti ', ['/aggiornamento-episodi/', 'peliculas', True, 'tvshow'])
|
('Aggiornamenti ', ['/aggiornamento-episodi/', 'peliculas', True, 'tvshow'])
|
||||||
]
|
]
|
||||||
anime =[
|
anime = ['/category/anime-cartoni-animati/']
|
||||||
('Anime / Cartoni', ['/category/anime-cartoni-animati/','peliculas', '', 'tvshow'])
|
|
||||||
]
|
|
||||||
|
|
||||||
return locals()
|
return locals()
|
||||||
#### itemlist = filtertools.show_option(itemlist, item.channel, list_language, list_quality)
|
|
||||||
## # autoplay
|
|
||||||
## support.aplay(item, itemlist, list_servers, list_quality)
|
|
||||||
## # configurazione canale
|
|
||||||
## support.channel_config(item, itemlist)
|
|
||||||
##
|
|
||||||
## return itemlist
|
|
||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
## import web_pdb; web_pdb.set_trace()
|
|
||||||
support.log()
|
support.log()
|
||||||
|
action = 'episodios'
|
||||||
if item.args == True:
|
if item.args == True:
|
||||||
patron = r'<span class="serieTitle" style="font-size:20px">(?P<title>.*?).[^–]<a href="(?P<url>[^"]+)"'\
|
patron = r'<span class="serieTitle" style="font-size:20px">(?P<title>.*?).[^–]<a href="(?P<url>[^"]+)"'\
|
||||||
'\s+target="_blank">(?P<episode>\d+x\d+) (?P<title2>.*?)</a>'
|
'\s+target="_blank">(?P<episode>\d+x\d+) (?P<title2>.*?)</a>'
|
||||||
|
# permette di vedere episodio e titolo + titolo2 in novità
|
||||||
## # permette di vedere episodio e titolo + titolo2 in novità
|
def itemHook(item):
|
||||||
## def itemHook(item):
|
item.show = item.episode + item.title
|
||||||
## item.show = item.episode + item.title
|
return item
|
||||||
## return item
|
|
||||||
else:
|
else:
|
||||||
patron = r'<div class="post-thumb">.*?\s<img src="(?P<thumb>[^"]+)".*?>'\
|
patron = r'<div class="post-thumb">.*?\s<img src="(?P<thumb>[^"]+)".*?>'\
|
||||||
'<a href="(?P<url>[^"]+)".*?>(?P<title>.*?(?:\((?P<year>\d{4})\)|(\4\d{4}))?)<\/a><\/h2>'
|
'<a href="(?P<url>[^"]+)".*?>(?P<title>.*?(?:\((?P<year>\d{4})\)|(\4\d{4}))?)<\/a><\/h2>'
|
||||||
|
|
||||||
patronNext='a class="next page-numbers" href="?([^>"]+)">Avanti »</a>'
|
patronNext='a class="next page-numbers" href="?([^>"]+)">Avanti »</a>'
|
||||||
action='episodios'
|
|
||||||
|
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
## import web_pdb; web_pdb.set_trace()
|
|
||||||
support.log("episodios: %s" % item)
|
support.log("episodios: %s" % item)
|
||||||
itemlist = []
|
action = 'findvideos'
|
||||||
item.contentType = 'episode'
|
item.contentType = 'episode'
|
||||||
# Carica la pagina
|
# Carica la pagina
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url, headers=headers).data.replace("'", '"')
|
||||||
#========
|
#========
|
||||||
if 'clicca qui per aprire' in data.lower():
|
if 'clicca qui per aprire' in data.lower():
|
||||||
item.url = scrapertoolsV2.find_single_match(data, '"go_to":"([^"]+)"')
|
item.url = scrapertoolsV2.find_single_match(data, '"go_to":"([^"]+)"')
|
||||||
item.url = item.url.replace("\\","")
|
item.url = item.url.replace("\\","")
|
||||||
# Carica la pagina
|
# Carica la pagina
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url, headers=headers).data.replace("'", '"')
|
||||||
elif 'clicca qui</span>' in data.lower():
|
elif 'clicca qui</span>' in data.lower():
|
||||||
item.url = scrapertoolsV2.find_single_match(data, '<h2 style="text-align: center;"><a href="([^"]+)">')
|
item.url = scrapertoolsV2.find_single_match(data, '<h2 style="text-align: center;"><a href="([^"]+)">')
|
||||||
# Carica la pagina
|
# Carica la pagina
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url, headers=headers).data.replace("'", '"')
|
||||||
#=========
|
#=========
|
||||||
## patron = r'(?:<\/span>\w+ STAGIONE\s\d+ (?:\()?(?P<lang>ITA|SUB ITA)(?:\))?<\/div>'\
|
data = re.sub('\n|\t', ' ', data)
|
||||||
## '<div class="su-spoiler-content su-clearfix" style="display:none">|'\
|
patronBlock = r'(?P<block>STAGIONE\s\d+ (?:\()?(?P<lang>ITA|SUB ITA)(?:\))?<\/div>.*?)</div></div>'
|
||||||
## '(?:\s|\Wn)?(?:<strong>)?(?P<title>\d+&#.*?)(?:|–)?<a\s(?P<url>.*?)<\/a><br\s\/>)'
|
patron = r'(?:\s|\Wn)?(?:|<strong>)?(?P<episode>\d+&#\d+;\d+)(?:|</strong>) (?P<title>.*?)(?:|–)?<a\s(?P<url>.*?)<\/a><br\s\/>'
|
||||||
patron = r'(?:<\/span>\w+ STAGIONE\s\d+ (?:\()?(?P<lang>ITA|SUB ITA)(?:\))?<\/div>'\
|
|
||||||
'<div class="su-spoiler-content su-clearfix" style="display:none">|'\
|
|
||||||
'(?:\s|\Wn)?(?:|<strong>)?(?P<episode>\d+&#\d+;\d+)(?:|</strong>) '\
|
|
||||||
'(?P<title>.*?)(?:|–)?<a\s(?P<url>.*?)<\/a><br\s\/>)'
|
|
||||||
action = 'findvideos'
|
|
||||||
|
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@@ -112,6 +86,7 @@ def findvideos(item):
|
|||||||
def search(item, texto):
|
def search(item, texto):
|
||||||
support.log()
|
support.log()
|
||||||
item.url = "%s/?s=%s" % (host, texto)
|
item.url = "%s/?s=%s" % (host, texto)
|
||||||
|
item.contentType = 'tvshow'
|
||||||
try:
|
try:
|
||||||
return peliculas(item)
|
return peliculas(item)
|
||||||
# Continua la ricerca in caso di errore
|
# Continua la ricerca in caso di errore
|
||||||
@@ -126,7 +101,7 @@ def newest(categoria):
|
|||||||
support.log()
|
support.log()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
item = Item()
|
item = Item()
|
||||||
item.contentType = 'episode'
|
item.contentType = 'tvshow'
|
||||||
item.args = True
|
item.args = True
|
||||||
try:
|
try:
|
||||||
item.url = "%s/aggiornamento-episodi/" % host
|
item.url = "%s/aggiornamento-episodi/" % host
|
||||||
|
|||||||
+1
-1
@@ -166,7 +166,7 @@ def scrapeLang(scraped, lang, longtitle):
|
|||||||
|
|
||||||
def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, typeContentDict, typeActionDict, blacklist, search, pag, function):
|
def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, typeContentDict, typeActionDict, blacklist, search, pag, function):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
log("scrapeBlock qui", block, patron)
|
||||||
matches = scrapertoolsV2.find_multiple_matches_groups(block, patron)
|
matches = scrapertoolsV2.find_multiple_matches_groups(block, patron)
|
||||||
log('MATCHES =', matches)
|
log('MATCHES =', matches)
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
Reference in New Issue
Block a user