diff --git a/channels.json b/channels.json index 8857fcb1..1817f8bd 100644 --- a/channels.json +++ b/channels.json @@ -12,6 +12,7 @@ "cinemalibero": "https://cinemalibero.cafe", "cinetecadibologna": "http://cinestore.cinetecadibologna.it", "discoveryplus": "https://www.discoveryplus.com", + "dinostreaming": "https://dinostreaming.me/", "dreamsub": "https://www.animeworld.so", "eurostreaming": "https://eurostreaming.money", "eurostreaming_actor": "https://eurostreaming.futbol", diff --git a/channels/dinostreaming.json b/channels/dinostreaming.json new file mode 100644 index 00000000..0f36e8c9 --- /dev/null +++ b/channels/dinostreaming.json @@ -0,0 +1,11 @@ +{ + "id": "dinostreaming", + "name": "DinoStreaming", + "language": ["ita"], + "active": true, + "thumbnail": "dinostreaming.png", + "banner": "dinostreaming.png", + "categories": ["movie"], + "settings": [], + "not_active": ["include_in_newest"] +} diff --git a/channels/dinostreaming.py b/channels/dinostreaming.py new file mode 100644 index 00000000..3343b9a8 --- /dev/null +++ b/channels/dinostreaming.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------ +# Canale per Dinostreaming +# by ilmich +# ------------------------------------------------------------ + +from core import httptools, support +from core.item import Item +from platformcode import logger + +host = support.config.get_channel_url() +headers = [['Referer', host]] + +@support.menu +def mainlist(item): + menu = [('Film',['/sfoglia', 'peliculas']), + ] + search = '' + return locals() + + +@support.scrape +def peliculas(item): + if not item.args == 'search': # pagination not works + if not item.nextpage: + item.page = 1 + else: + item.page = item.nextpage + + if not item.parent_url: + item.parent_url = item.url + + item.nextpage = item.page + 1 + nextPageUrl = "{}/page/{}".format(item.parent_url, item.nextpage) + + resp = httptools.downloadpage(nextPageUrl, only_headers = True) + if (resp.code > 399): # no more elements + nextPageUrl = '' + + patron = r'