Film SubITA
(.*?)Ultime Richieste Inserite
(.*?)Nelle Sale
(.*?)Ultimi Film Inseriti
(.*?)Serie TV
(.*?)'):
- logger.info("[mondolunatico2.py] top_imdb")
- itemlist = []
-
- minpage = 20
- p = 1
- if '{}' in item.url:
- item.url, p = item.url.split('{}')
- p = int(p)
-
- data = httptools.downloadpage(item.url, headers=headers).data
-
- block = scrapertools.find_single_match(data, regex)
-
- patron = r" i: continue
- if i >= p * minpage: break
- scrapedtitle = scrapertools.decodeHtmlentities(scrapedtitle)
- scrapedtitle = re.sub(r'[0-9]{4}', "", scrapedtitle)
- scrapedthumbnail = scrapedthumbnail.replace ("-90x135","").replace("/w92/", "/w600_and_h900_bestv2/")
- itemlist.append(
- Item(channel=__channel__,
- action="findvideos" if "movie" in contentType else "episodios",
- contentType=item.contentType,
- contentTitle=scrapedtitle,
- title=scrapedtitle,
- fulltitle=scrapedtitle,
- url=scrapedurl,
- show=scrapedtitle,
- thumbnail=scrapedthumbnail,
- args=item.args))
-
- if len(matches) >= p * minpage:
- thumbnail = thumb(itemlist=[])
- scrapedurl = item.url + '{}' + str(p + 1)
- itemlist.append(
- Item(channel=__channel__,
- contentType=item.contentType,
- action="top_imdb",
- title="[COLOR blue][B]Successivo >[/B][/COLOR]",
- thumbnail=thumbnail,
- url=scrapedurl))
-
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
-
- return itemlist
-
-# ---------------------------------------------------------------------------------------------------------------------------------------------
-def top_serie(item):
- return top_imdb(item, contentType='episode', regex=r'TVShows
(.*?)')
-# ---------------------------------------------------------------------------------------------------------------------------------------------
def search(item, texto):
- logger.info("[mondolunatico2.py] " + item.url + " search " + texto)
+ support.log('s-> '+texto)
+
item.url = host + "/?s=" + texto
try:
return peliculas(item)
-
except:
import sys
for line in sys.exc_info():
logger.error("%s" % line)
return []
-# ---------------------------------------------------------------------------------------------------------------------------------------------
-
-def peliculas(item):
- logger.info("[mondolunatico2.py] peliculas")
- itemlist = []
-
- data = httptools.downloadpage(item.url, headers=headers).data
-
- patron = r''\
+ '(?P.*?)'
+ patron = r'
.+?)[ ]?(?:\d+)?)?" /> '\
+ '.+?(?:.+?(?P\d+)?)
(?: '\
+ '(\d+)(?:–|â|-\d+)?)?'
+
+ def itemHook(item):
+ support.log("ITEMHOOK PRIMA: ", item)
+ if 'film' in item.url:
+ item.action = 'findvideos'
+ item.contentType = 'movie'
+ item.infoLabels['mediatype'] = 'movie'
else:
- contentType = 'episode'
- support.menu(itemlist, title, 'peliculas', url,contentType=contentType)
+ item.action = 'episodios'
+ item.contentType = 'tvshow'
+ item.infoLabels['mediatype'] = 'tvshow'
+ support.log("ITEMHOOK DOPO: ", item)
- return itemlist
+ return item
+
+ elif item.extra == 'tvshow' or item.contentType == 'tvshow':
+ # SEZIONE Serie TV- Anime!
+ action = 'episodios'
+
+ if 'anime' in item.url:
+ patronBlock = r'Lista Cartoni Animati e Anime
(?P.*?)'
+ patron = r'.+?'
+
+ else:
+ if item.args == 'hd':
+ patronBlock = r'Lista Serie Tv in AltaDefinizione
(?P.*?)'\
+ ''
+ patron = r'.+?'
+
+ elif item.args == 'doc':
+ patronBlock = r'Lista Documentari
(?P.*?)'
+ patron = r'.+?'
+
+ else:
+ patronBlock = r'(?P.*?)'
+ patron = r'[^>]+>.+?src="(?P[^"]+)" alt="[^"]+"'\
+ '.+?href="(?P[^"]+)">[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[ ]'\
+ '(?P\d+.\d+|\d+)<[^>]+>[^>]+>(?P[^"]+)
[ ]?'\
+ '(?:(?P\d+|\-\d+))?<'
+ else:
+ # SEZIONE FILM
+ action = 'findvideos'
+ pagination = 24
+
+ if not item.args:
+ patron = r'href="(?P[^"]+)"[^>]+>(?P.*?)[ ]?(?P\d+)?'\
+ '(?: Streaming | MD iSTANCE )?<'
+ patronBlock = r'Lista dei film disponibili in streaming e anche in download\.'\
+ '(?P.*?)'
+
+ elif item.args == 'latest':
+ patronBlock = r'Ultimi film aggiunti
(?P.*?)'
+ patron = r'(?: )?[ ]?'\
+ '(?P.*?)[ ]?(?:HD)?[ ]?(?P\d+)?'\
+ '(?: | HD | Streaming | MD(?: iSTANCE)? )? '
+
+ patronNext = r''
+
+## debug = True
+ return locals()
+
+@support.scrape
+def episodios(item):
+ support.log()
+
+ action = 'findvideos'
+ patronBlock = r'
i: continue
- if i >= p * minpage: break
- scrapedtitle = scrapertools.decodeHtmlentities(scrapedtitle)
- scrapedtitle = re.sub(r'[0-9]{4}', "", scrapedtitle)
- scrapedthumbnail = scrapedthumbnail.replace ("-90x135","").replace("/w92/", "/w600_and_h900_bestv2/")
- itemlist.append(
- Item(channel=__channel__,
- action="findvideos" if "movie" in contentType else "episodios",
- contentType=item.contentType,
- contentTitle=scrapedtitle,
- title=scrapedtitle,
- fulltitle=scrapedtitle,
- url=scrapedurl,
- show=scrapedtitle,
- thumbnail=scrapedthumbnail,
- args=item.args))
-
- if len(matches) >= p * minpage:
- thumbnail = thumb(itemlist=[])
- scrapedurl = item.url + '{}' + str(p + 1)
- itemlist.append(
- Item(channel=__channel__,
- contentType=item.contentType,
- action="top_imdb",
- title="[COLOR blue][B]Successivo >[/B][/COLOR]",
- thumbnail=thumbnail,
- url=scrapedurl))
-
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
-
- return itemlist
-
-# ---------------------------------------------------------------------------------------------------------------------------------------------
-def top_serie(item):
- return top_imdb(item, contentType='episode', regex=r'
TVShows
(.*?)')
-# ---------------------------------------------------------------------------------------------------------------------------------------------
def search(item, texto):
- logger.info("[mondolunatico2.py] " + item.url + " search " + texto)
+ support.log('s-> '+texto)
+
item.url = host + "/?s=" + texto
try:
return peliculas(item)
-
except:
import sys
for line in sys.exc_info():
logger.error("%s" % line)
return []
-# ---------------------------------------------------------------------------------------------------------------------------------------------
-
-def peliculas(item):
- logger.info("[mondolunatico2.py] peliculas")
- itemlist = []
-
- data = httptools.downloadpage(item.url, headers=headers).data
-
- patron = r'
'\
+ '(?P.*?)
'
+ patron = r'
.+?)[ ]?(?:\d+)?)?" /> '\
+ '.+?(?:.+?(?P
(?: '\
+ '(\d+)(?:–|â|-\d+)?)?'
+
+ def itemHook(item):
+ support.log("ITEMHOOK PRIMA: ", item)
+ if 'film' in item.url:
+ item.action = 'findvideos'
+ item.contentType = 'movie'
+ item.infoLabels['mediatype'] = 'movie'
else:
- contentType = 'episode'
- support.menu(itemlist, title, 'peliculas', url,contentType=contentType)
+ item.action = 'episodios'
+ item.contentType = 'tvshow'
+ item.infoLabels['mediatype'] = 'tvshow'
+ support.log("ITEMHOOK DOPO: ", item)
- return itemlist
+ return item
+
+ elif item.extra == 'tvshow' or item.contentType == 'tvshow':
+ # SEZIONE Serie TV- Anime!
+ action = 'episodios'
+
+ if 'anime' in item.url:
+ patronBlock = r'.*?)
(?:.+?(?P\d+)?)
(?: '\
+ '(\d+)(?:–|â|-\d+)?)?Lista Cartoni Animati e Anime
(?P'
+ patron = r'.+?'
+
+ else:
+ if item.args == 'hd':
+ patronBlock = r'.*?)'\
+ '
Lista Serie Tv in AltaDefinizione
(?P'
+ patron = r'.+?'
+
+ elif item.args == 'doc':
+ patronBlock = r'.*?)
Lista Documentari
(?P'
+ patron = r'.+?'
+
+ else:
+ patronBlock = r'
(?P.*?)
'
+ patron = r'
[^>]+>.+?src="(?P[^"]+)" alt="[^"]+"'\
+ '.+?href="(?P[^"]+)">[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[ ]'\
+ '(?P\d+.\d+|\d+)<[^>]+>[^>]+>(?P
[ ]?'\
+ '(?:(?P\d+|\-\d+))?<'
+ else:
+ # SEZIONE FILM
+ action = 'findvideos'
+ pagination = 24
+
+ if not item.args:
+ patron = r'href="(?P[^"]+)"[^>]+>(?P.*?)[ ]?(?P\d+)?'\
+ '(?: Streaming | MD iSTANCE )?<'
+ patronBlock = r'Lista dei film disponibili in streaming e anche in download\.'\
+ '(?P.*?)
(?P[^"]+)
[ ]?'\
+ '(?:(?P'
+
+ elif item.args == 'latest':
+ patronBlock = r'.*?)
Ultimi film aggiunti
(?P'
+ patron = r'(?: )?[ ]?'\
+ '(?P.*?)[ ]?(?:HD)?[ ]?(?P\d+)?'\
+ '(?: | HD | Streaming | MD(?: iSTANCE)? )? '
+
+ patronNext = r'
'
+
+## debug = True
+ return locals()
+
+@support.scrape
+def episodios(item):
+ support.log()
+
+ action = 'findvideos'
+ patronBlock = r'