diff --git a/plugin.video.alfa/channels/czechvideo.json b/plugin.video.alfa/channels/czechvideo.json new file mode 100644 index 00000000..08e4a26c --- /dev/null +++ b/plugin.video.alfa/channels/czechvideo.json @@ -0,0 +1,22 @@ +{ + "id": "czechvideo", + "name": "Czechvideo", + "active": true, + "adult": true, + "language": ["*"], + "thumbnail": "http://czechvideo.org/templates/Default/images/black75.png", + "banner": "", + "version": 1, + "changes": [ + { + "date": "23/08/2017", + "description": "Primera version" + } + ], + "categories": [ + "adult" + ], + "settings": [ + + ] +} diff --git a/plugin.video.alfa/channels/czechvideo.py b/plugin.video.alfa/channels/czechvideo.py new file mode 100644 index 00000000..84e0852b --- /dev/null +++ b/plugin.video.alfa/channels/czechvideo.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +#------------------------------------------------------------ + +import urlparse,urllib2,urllib,re +import os, sys +from core import jsontools as json +from core import scrapertools +from core import servertools +from core.item import Item +from platformcode import config, logger +from core import httptools +from core import tmdb + +host = 'http://czechvideo.org' + + +def mainlist(item): + logger.info() + itemlist = [] + itemlist.append( Item(channel=item.channel, title="Ultimos" , action="peliculas", url=host)) + itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host)) + itemlist.append( Item(channel=item.channel, title="Buscar", action="search")) + return itemlist + + +def search(item, texto): + logger.info() + texto = texto.replace(" ", "+") + item.url = host + "/tags/%s/" % texto + try: + return peliculas(item) + except: + import sys + for line in sys.exc_info(): + logger.error("%s" % line) + return [] + + +def categorias(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = scrapertools.get_match(data,'
') + patron = '