diff --git a/channels.json b/channels.json index 5bc41217..ebd7b5c9 100644 --- a/channels.json +++ b/channels.json @@ -29,6 +29,7 @@ "guardaserieclick": "https://www.guardaserie.fit", "hd4me": "https://hd4me.net", "ilgeniodellostreaming": "https://ilgeniodellostreaming.gy", + "ilgeniodellostreaming_cam": "https://ilgeniodellostreaming.cam", "italiaserie": "https://italiaserie.org", "mondoserietv": "https://mondoserietv.com", "netfreex": "https://www.netfreex.fun", diff --git a/channels/ilgeniodellostreaming_cam.json b/channels/ilgeniodellostreaming_cam.json new file mode 100644 index 00000000..f51f9627 --- /dev/null +++ b/channels/ilgeniodellostreaming_cam.json @@ -0,0 +1,10 @@ +{ + "id": "ilgeniodellostreaming_cam", + "name": "IlGenioDelloStreaming CAM", + "active": true, + "language": ["ita"], + "thumbnail": "ilgeniodellostreaming.png", + "banner": "ilgeniodellostreaming.png", + "categories": ["movie"], + "settings": [] +} diff --git a/channels/ilgeniodellostreaming_cam.py b/channels/ilgeniodellostreaming_cam.py new file mode 100644 index 00000000..8c8d6015 --- /dev/null +++ b/channels/ilgeniodellostreaming_cam.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------ +# Canale per ilgeniodellostreaming_cam +# ------------------------------------------------------------ + + +from core import support +from core.support import log +from core.item import Item +from platformcode import config + +host = config.get_channel_url() +headers = [['Referer', host]] + +@support.menu +def mainlist(item): + film = ['/film/', + ('In Sala', ['', 'peliculas', 'sala']), + ('Generi',['', 'genres', 'genres']), + ('Per Lettera',['/catalog/all', 'genres', 'az']), + ('Anni',['', 'genres', 'year'])] + + return locals() + + +@support.scrape +def peliculas(item): + if item.args == 'sala': + patronBlock = r'insala(?P.*?)
' + patron = r']+>[^>]+>[^>]+>[^>]+>[^>]+>\s*(?P[^<]+)[^>]+>[^>]+>(?P[^<]+)[^>]+>[^>]+>[^>]+>[^>]+>(?P[^<]+)[^>]+>[^>]+>[^>]+>(?P<year>\d{4})' + elif item.args == 'az': + patron = r'<img src="(?P<thumb>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+><a href="(?P<url>[^"]+)[^>]+>(?P<title>[^<]+)<[^>]+>[^>]+>[^>]+>.*?<span class="labelimdb">(?P<rating>[^>]+)<' + else: + patron = r'<img src="(?P<thumb>[^"]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>\s*(?P<rating>[^<]+)[^>]+>[^>]+>(?P<quality>[^<]+)[^>]+>[^>]+>[^>]+>[^>]+><a href="(?P<url>[^"]+)">(?P<title>[^<]+)[^>]+>[^>]+>[^>]+>(?P<year>\d{4})[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>\s*(?P<plot>[^<]+)<[^>]+>' + + patronNext = 'href="([^>]+)">ยป' + + return locals() + + +@support.scrape +def genres(item): + action='peliculas' + if item.args == 'genres': + patronBlock = r'<div class="sidemenu">\s*<h2>Genere</h2>(?P<block>.*?)</ul' + elif item.args == 'year': + item.args = 'genres' + patronBlock = r'<div class="sidemenu">\s*<h2>Anno di uscita</h2>(?P<block>.*?)</ul' + elif item.args == 'az': + patronBlock = r'<div class="movies-letter">(?P<block>.*?)<div class="clearfix">' + + patronMenu = r'<a(?:.+?)?href="(?P<url>.*?)"[ ]?>(?P<title>.*?)<\/a>' + + return locals() + +def search(item, text): + log(text) + text = text.replace(' ', '+') + item.url = host + "/search/" + text + try: + return peliculas(item) + except: + import sys + for line in sys.exc_info(): + log("%s" % line) + + return [] + +def newest(categoria): + log(categoria) + itemlist = [] + item = Item() + + if categoria == 'peliculas': + item.contentType = 'movie' + item.url = host + '/film/' + try: + item.action = 'peliculas' + itemlist = peliculas(item) + + except: + import sys + for line in sys.exc_info(): + log("{0}".format(line)) + return [] + + return itemlist + + +def findvideos(item): + log() + return support.server(item) \ No newline at end of file