diff --git a/channels/filmontv.json b/channels/filmontv.json new file mode 100644 index 00000000..70a0ad29 --- /dev/null +++ b/channels/filmontv.json @@ -0,0 +1,12 @@ +{ + "id": "filmontv", + "name": "Film in tv", + "language": ["ita"], + "active": false, + "adult": false, + "thumbnail": null, + "banner": null, + "categories": [], + "settings": [], + "channel": false +} \ No newline at end of file diff --git a/channels/filmontv.py b/channels/filmontv.py new file mode 100644 index 00000000..46ade803 --- /dev/null +++ b/channels/filmontv.py @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------ +# Canale film in tv +# Ringraziamo Icarus crew +# ------------------------------------------------------------ + +import re +import urllib + +from channels import support +from core import httptools, scrapertools, tmdb +from core.item import Item +from platformcode import logger + +host = "https://www.comingsoon.it" + +TIMEOUT_TOTAL = 60 + + +def mainlist(item): + logger.info(" mainlist") + itemlist = [Item(channel=item.channel, + title=support.typo("IN ONDA ADESSO bold color kod"), + action="tvoggi", + url="%s/filmtv/" % host, + thumbnail=""), + Item(channel=item.channel, + title="Mattina", + action="tvoggi", + url="%s/filmtv/oggi/mattina/" % host, + thumbnail=""), + Item(channel=item.channel, + title="Pomeriggio", + action="tvoggi", + url="%s/filmtv/oggi/pomeriggio/" % host, + thumbnail=""), + Item(channel=item.channel, + title="Sera", + action="tvoggi", + url="%s/filmtv/oggi/sera/" % host, + thumbnail=""), + Item(channel=item.channel, + title="Notte", + action="tvoggi", + url="%s/filmtv/oggi/notte/" % host, + thumbnail="")] + + return itemlist + + +def tvoggi(item): + logger.info("filmontv tvoggi") + itemlist = [] + + # Carica la pagina + data = httptools.downloadpage(item.url).data + + # Estrae i contenuti + patron = r'