Aggiunto Il Corsaro Nero
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
"guardaserie_stream": "https://guardaserie.store",
|
"guardaserie_stream": "https://guardaserie.store",
|
||||||
"guardaserieclick": "https://www.guardaserie.productions",
|
"guardaserieclick": "https://www.guardaserie.productions",
|
||||||
"hd4me": "https://hd4me.net",
|
"hd4me": "https://hd4me.net",
|
||||||
|
"ilcorsaronero": "https://ilcorsaronero.xyz",
|
||||||
"ilgeniodellostreaming": "https://ilgeniodellostreaming.pl",
|
"ilgeniodellostreaming": "https://ilgeniodellostreaming.pl",
|
||||||
"italiaserie": "https://italiaserie.org",
|
"italiaserie": "https://italiaserie.org",
|
||||||
"mondoserietv": "https://mondoserietv.com",
|
"mondoserietv": "https://mondoserietv.com",
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"id": "ilcorsaronero",
|
||||||
|
"name": "ilCorSaRoNeRo",
|
||||||
|
"active": true,
|
||||||
|
"adult": false,
|
||||||
|
"language": ["ita"],
|
||||||
|
"thumbnail": "ilcorsaronero.png",
|
||||||
|
"banner": "ilcorsaronero.png",
|
||||||
|
"categories": ["movie", "tvshow", "music", "torrent"],
|
||||||
|
"not_active": ["include_in_newest"],
|
||||||
|
"settings": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Canale per ilcorsaronero
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
|
from core import support
|
||||||
|
|
||||||
|
host = support.config.get_channel_url()
|
||||||
|
# host = 'https://ilcorsaronero.xyz'
|
||||||
|
headers = [['Referer', host]]
|
||||||
|
|
||||||
|
list_servers = ['torrent']
|
||||||
|
list_quality = ['default']
|
||||||
|
|
||||||
|
@support.menu
|
||||||
|
def mainlist(item):
|
||||||
|
|
||||||
|
menu = [
|
||||||
|
('Film BDRiP', ['/categoria.php?active=0&category=1&order=data&by=DESC&page=', 'peliculas', 0, 'movie']),
|
||||||
|
('Film DVD', ['/categoria.php?active=0&category=20&order=data&by=DESC&page=', 'peliculas', 0, 'movie']),
|
||||||
|
('Film Screener', ['/categoria.php?active=0&category=19&order=data&by=DESC&page=', 'peliculas', 0, 'movie']),
|
||||||
|
('Serie TV', ['/categoria.php?active=0&category=15&order=data&by=DES&page=', 'peliculas', 0 , 'tvshow']),
|
||||||
|
('Anime', ['/categoria.php?active=0&category=5&order=data&by=DESC&page=', 'peliculas', 0, 'anime']),
|
||||||
|
('Musica', ['/categoria.php?active=0&category=2&order=data&by=DESC&page=', 'peliculas', 0, 'music']),
|
||||||
|
('Audiolibri {musica}', ['/categoria.php?active=0&category=18&order=data&by=DESC&page=', 'peliculas', 0, 'music']),
|
||||||
|
('Altro {film}', ['/categoria.php?active=0&category=4&order=data&by=DESC&page=', 'peliculas', 0]),
|
||||||
|
('Cerca... submenu', ['/argh.php?search=', 'search', '', 'search'])
|
||||||
|
]
|
||||||
|
|
||||||
|
return locals()
|
||||||
|
|
||||||
|
@support.scrape
|
||||||
|
def peliculas(item):
|
||||||
|
item.url += str(item.args)
|
||||||
|
patron = r'>(?P<quality>[^"<]+)</td> <TD[^>]+><A class="tab" HREF="(?P<url>[^"]+)"\s*>(?P<title>[^<]+)<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<size>[^<]+)<[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>(?P<seed>[^<]+)'
|
||||||
|
def itemHook(item):
|
||||||
|
item.title = item.title.replace('.',' ')
|
||||||
|
item.thumbnail = support.thumb(thumb=item.contentType + '.png')
|
||||||
|
return item
|
||||||
|
def itemlistHook(itemlist):
|
||||||
|
itemlist.append(
|
||||||
|
support.Item(channel=item.channel,
|
||||||
|
action = item.action,
|
||||||
|
contentType=item.contentType,
|
||||||
|
title=support.typo(support.config.get_localized_string(30992), 'color kod bold'),
|
||||||
|
url=item.url,
|
||||||
|
args=item.args + 1,
|
||||||
|
thumbnail=support.thumb()))
|
||||||
|
return itemlist
|
||||||
|
return locals()
|
||||||
|
|
||||||
|
def search(item, text):
|
||||||
|
support.log(item, text)
|
||||||
|
|
||||||
|
itemlist = []
|
||||||
|
item.url += text
|
||||||
|
try:
|
||||||
|
return peliculas(item)
|
||||||
|
# Cattura la eccezione così non interrompe la ricerca globle se il canale si rompe!
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
support.logger.error("search except: %s" % line)
|
||||||
|
return []
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
support.log(categoria)
|
||||||
|
|
||||||
|
itemlist = []
|
||||||
|
item = Item()
|
||||||
|
try:
|
||||||
|
if categoria == "peliculas":
|
||||||
|
item.url = host
|
||||||
|
item.action = "peliculas"
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
if itemlist[-1].action == "peliculas":
|
||||||
|
itemlist.pop()
|
||||||
|
# Continua la ricerca in caso di errore
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
def findvideos(item):
|
||||||
|
return support.server(item, support.match(item.url, patron=r'"(magnet[^"]+)').match)
|
||||||
+1
-1
@@ -100,7 +100,7 @@ def getchanneltypes(view="thumb_"):
|
|||||||
logger.info()
|
logger.info()
|
||||||
|
|
||||||
# Lista de categorias
|
# Lista de categorias
|
||||||
channel_types = ["movie", "tvshow", "anime", "documentary", "vos", "direct", "live", "music"] # , "torrent"
|
channel_types = ["movie", "tvshow", "anime", "documentary", "vos", "direct", "live", "torrent", "music"]
|
||||||
|
|
||||||
if config.get_setting("adult_mode") != 0:
|
if config.get_setting("adult_mode") != 0:
|
||||||
channel_types.append("adult")
|
channel_types.append("adult")
|
||||||
|
|||||||
+3
-1
@@ -179,7 +179,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
matches = scrapertools.find_multiple_matches_groups(block, patron)
|
matches = scrapertools.find_multiple_matches_groups(block, patron)
|
||||||
log('MATCHES =', matches)
|
log('MATCHES =', matches)
|
||||||
|
|
||||||
known_keys = ['url', 'title', 'title2', 'season', 'episode', 'thumb', 'quality', 'year', 'plot', 'duration', 'genere', 'rating', 'type', 'lang', 'other']
|
known_keys = ['url', 'title', 'title2', 'season', 'episode', 'thumb', 'quality', 'year', 'plot', 'duration', 'genere', 'rating', 'type', 'lang', 'other', 'size', 'seed']
|
||||||
# Legenda known_keys per i groups nei patron
|
# Legenda known_keys per i groups nei patron
|
||||||
# known_keys = ['url', 'title', 'title2', 'season', 'episode', 'thumb', 'quality',
|
# known_keys = ['url', 'title', 'title2', 'season', 'episode', 'thumb', 'quality',
|
||||||
# 'year', 'plot', 'duration', 'genere', 'rating', 'type', 'lang']
|
# 'year', 'plot', 'duration', 'genere', 'rating', 'type', 'lang']
|
||||||
@@ -246,6 +246,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
longtitle = title + (s if title and title2 else '') + title2
|
longtitle = title + (s if title and title2 else '') + title2
|
||||||
longtitle = typo(longtitle, 'bold')
|
longtitle = typo(longtitle, 'bold')
|
||||||
longtitle += typo(quality, '_ [] color kod') if quality else ''
|
longtitle += typo(quality, '_ [] color kod') if quality else ''
|
||||||
|
longtitle += typo(scraped['size'], '_ [] color kod') if scraped['size'] else ''
|
||||||
|
longtitle += typo(scraped['seed']+ ' SEEDS', '_ [] color kod') if scraped['seed'] else ''
|
||||||
|
|
||||||
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user