From 9e493fb526a297c87ac8d514427fd7cf1695de4c Mon Sep 17 00:00:00 2001 From: paezner Date: Sat, 24 Nov 2018 02:19:19 +0100 Subject: [PATCH] Correcciones y nuevos --- plugin.video.alfa/channels/LIKUOO.py | 2 - plugin.video.alfa/channels/TXXX.json | 16 +++ plugin.video.alfa/channels/TXXX.py | 135 ++++++++++++++++++ plugin.video.alfa/channels/absoluporn.py | 1 - plugin.video.alfa/channels/alsoporn.py | 2 - plugin.video.alfa/channels/analdin.py | 3 - plugin.video.alfa/channels/bravoporn.py | 1 - plugin.video.alfa/channels/cliphunter.py | 2 - plugin.video.alfa/channels/coomelonitas.py | 3 - plugin.video.alfa/channels/eroticage.py | 7 +- plugin.video.alfa/channels/fapality.py | 4 - plugin.video.alfa/channels/fetishshrine.py | 1 - plugin.video.alfa/channels/filmoviXXX.py | 15 +- plugin.video.alfa/channels/freeporn.py | 1 - plugin.video.alfa/channels/freepornstreams.py | 27 ++-- plugin.video.alfa/channels/hclips.py | 1 - plugin.video.alfa/channels/hdzog.py | 1 - plugin.video.alfa/channels/hellporno.py | 1 - plugin.video.alfa/channels/hotmovs.py | 3 +- plugin.video.alfa/channels/javlin.py | 5 +- plugin.video.alfa/channels/justporn.py | 3 - plugin.video.alfa/channels/mporno.py | 13 -- plugin.video.alfa/channels/muchoporno.py | 1 - plugin.video.alfa/channels/pandamovie.py | 2 - .../channels/peliculaseroticas.py | 2 +- plugin.video.alfa/channels/perfectgirls.py | 2 - plugin.video.alfa/channels/porn300.py | 6 +- plugin.video.alfa/channels/porneq.py | 2 - plugin.video.alfa/channels/pornhub.py | 50 ++----- plugin.video.alfa/channels/qwertty.py | 5 +- plugin.video.alfa/channels/redtube.py | 2 - plugin.video.alfa/channels/sexgalaxy.py | 3 - plugin.video.alfa/channels/sexofilm.py | 7 +- plugin.video.alfa/channels/sunporno.py | 1 - plugin.video.alfa/channels/tabooshare.py | 5 - plugin.video.alfa/channels/tnaflix.json | 16 +++ plugin.video.alfa/channels/tnaflix.py | 116 +++++++++++++++ plugin.video.alfa/channels/tryboobs.json | 16 +++ plugin.video.alfa/channels/tryboobs.py | 104 ++++++++++++++ plugin.video.alfa/channels/videosXYZ.json | 16 +++ plugin.video.alfa/channels/videosXYZ.py | 72 ++++++++++ plugin.video.alfa/channels/vintagetube.json | 16 +++ plugin.video.alfa/channels/vintagetube.py | 95 ++++++++++++ plugin.video.alfa/channels/vintagexxxsex.json | 16 +++ plugin.video.alfa/channels/vintagexxxsex.py | 101 +++++++++++++ plugin.video.alfa/channels/vporn.json | 16 +++ plugin.video.alfa/channels/vporn.py | 109 ++++++++++++++ plugin.video.alfa/channels/watchpornfree.json | 16 +++ plugin.video.alfa/channels/watchpornfree.py | 75 ++++++++++ .../channels/webpeliculasporno.json | 16 +++ .../channels/webpeliculasporno.py | 74 ++++++++++ plugin.video.alfa/channels/woodrocket.json | 16 +++ plugin.video.alfa/channels/woodrocket.py | 75 ++++++++++ plugin.video.alfa/channels/xozilla.json | 16 +++ plugin.video.alfa/channels/xozilla.py | 107 ++++++++++++++ plugin.video.alfa/channels/xtapes.json | 16 +++ plugin.video.alfa/channels/xtapes.py | 121 ++++++++++++++++ plugin.video.alfa/channels/xxxparodyhd.json | 16 +++ plugin.video.alfa/channels/xxxparodyhd.py | 74 ++++++++++ plugin.video.alfa/channels/xxxstreams.json | 16 +++ plugin.video.alfa/channels/xxxstreams.py | 94 ++++++++++++ plugin.video.alfa/channels/youjizz.json | 16 +++ plugin.video.alfa/channels/youjizz.py | 88 ++++++++++++ plugin.video.alfa/channels/youporn.json | 16 +++ plugin.video.alfa/channels/youporn.py | 110 ++++++++++++++ plugin.video.alfa/channels/yuuk.json | 17 +++ plugin.video.alfa/channels/yuuk.py | 69 +++++++++ 67 files changed, 1940 insertions(+), 136 deletions(-) create mode 100644 plugin.video.alfa/channels/TXXX.json create mode 100644 plugin.video.alfa/channels/TXXX.py create mode 100644 plugin.video.alfa/channels/tnaflix.json create mode 100644 plugin.video.alfa/channels/tnaflix.py create mode 100644 plugin.video.alfa/channels/tryboobs.json create mode 100644 plugin.video.alfa/channels/tryboobs.py create mode 100644 plugin.video.alfa/channels/videosXYZ.json create mode 100644 plugin.video.alfa/channels/videosXYZ.py create mode 100644 plugin.video.alfa/channels/vintagetube.json create mode 100644 plugin.video.alfa/channels/vintagetube.py create mode 100644 plugin.video.alfa/channels/vintagexxxsex.json create mode 100644 plugin.video.alfa/channels/vintagexxxsex.py create mode 100644 plugin.video.alfa/channels/vporn.json create mode 100644 plugin.video.alfa/channels/vporn.py create mode 100644 plugin.video.alfa/channels/watchpornfree.json create mode 100644 plugin.video.alfa/channels/watchpornfree.py create mode 100644 plugin.video.alfa/channels/webpeliculasporno.json create mode 100644 plugin.video.alfa/channels/webpeliculasporno.py create mode 100644 plugin.video.alfa/channels/woodrocket.json create mode 100644 plugin.video.alfa/channels/woodrocket.py create mode 100644 plugin.video.alfa/channels/xozilla.json create mode 100644 plugin.video.alfa/channels/xozilla.py create mode 100644 plugin.video.alfa/channels/xtapes.json create mode 100644 plugin.video.alfa/channels/xtapes.py create mode 100644 plugin.video.alfa/channels/xxxparodyhd.json create mode 100644 plugin.video.alfa/channels/xxxparodyhd.py create mode 100644 plugin.video.alfa/channels/xxxstreams.json create mode 100644 plugin.video.alfa/channels/xxxstreams.py create mode 100644 plugin.video.alfa/channels/youjizz.json create mode 100644 plugin.video.alfa/channels/youjizz.py create mode 100644 plugin.video.alfa/channels/youporn.json create mode 100644 plugin.video.alfa/channels/youporn.py create mode 100644 plugin.video.alfa/channels/yuuk.json create mode 100644 plugin.video.alfa/channels/yuuk.py diff --git a/plugin.video.alfa/channels/LIKUOO.py b/plugin.video.alfa/channels/LIKUOO.py index a293fed5..20925e3c 100644 --- a/plugin.video.alfa/channels/LIKUOO.py +++ b/plugin.video.alfa/channels/LIKUOO.py @@ -42,7 +42,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
", "", data) patron = '
.*?", "", data) + patron = '
.*?(.*?)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedtitle,scrapedthumbnail,num in matches: + scrapedplot = "" + scrapedurl = host + scrapedurl + title = scrapedtitle + "[COLOR yellow] " + num + "[/COLOR]" + itemlist.append( Item(channel=item.channel, action="peliculas", title=title , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + next_page_url = scrapertools.find_single_match(data,'", "", data) + patron = 'data-video-id="\d+">.*?(.*?)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,scrapedtitle,time in matches: + contentTitle = scrapedtitle + title = "[COLOR yellow]" + time + " [/COLOR]" + scrapedtitle + thumbnail = scrapedthumbnail + plot = "" + year = "" + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=scrapedurl, thumbnail=thumbnail, plot=plot, contentTitle=contentTitle, infoLabels={'year':year} )) + next_page_url = scrapertools.find_single_match(data,'> 4 + b = (b & 15) << 4 | c >> 2 + e = (c & 3) << 6 | d + reto += chr(a) + if c != 64: reto += chr(b) + if d != 64: reto += chr(e) + + return urllib.unquote(reto) + diff --git a/plugin.video.alfa/channels/absoluporn.py b/plugin.video.alfa/channels/absoluporn.py index 31b7a1bf..cb79c516 100644 --- a/plugin.video.alfa/channels/absoluporn.py +++ b/plugin.video.alfa/channels/absoluporn.py @@ -47,7 +47,6 @@ def categorias(item): data = httptools.downloadpage(item.url).data patron = ' ([^"]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" diff --git a/plugin.video.alfa/channels/alsoporn.py b/plugin.video.alfa/channels/alsoporn.py index 3cbc2a9d..d388775b 100644 --- a/plugin.video.alfa/channels/alsoporn.py +++ b/plugin.video.alfa/channels/alsoporn.py @@ -43,7 +43,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
", "", data) patron = '
  • .*?([^"]+)([^"]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,cantidad,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -59,7 +58,6 @@ def categorias(item): patron = '.*?' patron += '([^' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle in matches: scrapedplot = "" scrapedurl = scrapedurl.replace("top", "new") diff --git a/plugin.video.alfa/channels/analdin.py b/plugin.video.alfa/channels/analdin.py index c5c2a66a..0eff8b13 100644 --- a/plugin.video.alfa/channels/analdin.py +++ b/plugin.video.alfa/channels/analdin.py @@ -45,7 +45,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
  • ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -66,7 +65,6 @@ def categorias(item): patron += 'src="([^"]+)".*?' patron += '
    ([^"]+)
    ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle,scrapedthumbnail,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" @@ -105,7 +103,6 @@ def play(item): data = httptools.downloadpage(item.url).data patron = 'video_url: \'([^\']+)\'' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl in matches: url = scrapedurl itemlist.append(item.clone(action="play", title=url, fulltitle = item.title, url=url)) diff --git a/plugin.video.alfa/channels/bravoporn.py b/plugin.video.alfa/channels/bravoporn.py index 64e25364..6d69dd60 100644 --- a/plugin.video.alfa/channels/bravoporn.py +++ b/plugin.video.alfa/channels/bravoporn.py @@ -44,7 +44,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?([^"]+)\s*(\d+) movies.*?' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" diff --git a/plugin.video.alfa/channels/cliphunter.py b/plugin.video.alfa/channels/cliphunter.py index a97e0b70..52ec1d56 100644 --- a/plugin.video.alfa/channels/cliphunter.py +++ b/plugin.video.alfa/channels/cliphunter.py @@ -44,7 +44,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    \s*.*?([^"]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle in matches: scrapedplot = "" scrapedurl = urlparse.urljoin(item.url,scrapedurl) + "/movies" @@ -63,7 +62,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle,scrapedthumbnail in matches: scrapedplot = "" scrapedtitle = scrapedtitle diff --git a/plugin.video.alfa/channels/coomelonitas.py b/plugin.video.alfa/channels/coomelonitas.py index e641ec02..8745600c 100644 --- a/plugin.video.alfa/channels/coomelonitas.py +++ b/plugin.video.alfa/channels/coomelonitas.py @@ -36,11 +36,8 @@ def search(item, texto): def categorias(item): itemlist = [] data = scrapertools.cache_page(item.url) - #data = scrapertools.get_match(data,'
    Categorías
    (.*?)') - #
  • ASIÁTICAS patron = '
  • ([^"]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" diff --git a/plugin.video.alfa/channels/eroticage.py b/plugin.video.alfa/channels/eroticage.py index 2949a4f8..a0c283c9 100644 --- a/plugin.video.alfa/channels/eroticage.py +++ b/plugin.video.alfa/channels/eroticage.py @@ -43,7 +43,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedtitle,scrapedurl in matches: scrapedplot = "" scrapedthumbnail = "" @@ -59,7 +58,6 @@ def categorias(item): data = scrapertools.get_match(data,'

    TAGS

    (.*?)
    (.*?)
    ') - patron = '", "", data) patron = '
    Nubiles-Porn
    0
  • - - patron = '", "", data) patron = '.*?([^"]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle,scrapedthumbnail,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" diff --git a/plugin.video.alfa/channels/filmoviXXX.py b/plugin.video.alfa/channels/filmoviXXX.py index 5bf7eb4c..44b952c4 100644 --- a/plugin.video.alfa/channels/filmoviXXX.py +++ b/plugin.video.alfa/channels/filmoviXXX.py @@ -27,10 +27,23 @@ def mainlist(item): thumbnail = scrapedthumbnail plot = "" year = "" - itemlist.append( Item(channel=item.channel, action="findvideos" , title=title , url=scrapedurl, thumbnail=thumbnail, plot=plot, contentTitle=contentTitle, infoLabels={'year':year} )) + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=scrapedurl, thumbnail=thumbnail, plot=plot, contentTitle=contentTitle, infoLabels={'year':year} )) next_page_url = scrapertools.find_single_match(data,'
  • .*?.*?
    ([^"]+)
    .*?
    (\d+)
    ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" diff --git a/plugin.video.alfa/channels/freepornstreams.py b/plugin.video.alfa/channels/freepornstreams.py index a6d5e464..c1cee64b 100644 --- a/plugin.video.alfa/channels/freepornstreams.py +++ b/plugin.video.alfa/channels/freepornstreams.py @@ -46,7 +46,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
  • (.*?)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -75,25 +73,26 @@ def peliculas(item): patron = '
    (.*?).*?') - # next_page = next_page[0] - #next_page = host + next_page - # itemlist.append( Item(channel=item.channel, action="peliculas", title=next_page , text_color="blue", url=next_page ) ) return itemlist + +def play(item): + logger.info() + data = scrapertools.cachePage(item.url) + itemlist = servertools.find_video_items(data=data) + for videoitem in itemlist: + videoitem.title = item.fulltitle + videoitem.fulltitle = item.fulltitle + videoitem.thumbnail = item.thumbnail + videochannel=item.channel + return itemlist + \ No newline at end of file diff --git a/plugin.video.alfa/channels/hclips.py b/plugin.video.alfa/channels/hclips.py index ce16f24f..b071e9c2 100644 --- a/plugin.video.alfa/channels/hclips.py +++ b/plugin.video.alfa/channels/hclips.py @@ -43,7 +43,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?src="([^"]+)".*?([^"]+).*?(.*?)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,vidnum in matches: scrapedplot = "" title = scrapedtitle + " \(" + vidnum + "\)" diff --git a/plugin.video.alfa/channels/hdzog.py b/plugin.video.alfa/channels/hdzog.py index 93d6e11b..9e3e7532 100644 --- a/plugin.video.alfa/channels/hdzog.py +++ b/plugin.video.alfa/channels/hdzog.py @@ -43,7 +43,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
  • .*?(\d+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,vidnum in matches: scrapedplot = "" title = scrapedtitle + " \(" + vidnum + "\)" diff --git a/plugin.video.alfa/channels/hellporno.py b/plugin.video.alfa/channels/hellporno.py index bad030cc..abc63bf4 100644 --- a/plugin.video.alfa/channels/hellporno.py +++ b/plugin.video.alfa/channels/hellporno.py @@ -41,7 +41,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?([^.*?(\d+) videos' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" diff --git a/plugin.video.alfa/channels/hotmovs.py b/plugin.video.alfa/channels/hotmovs.py index 9ff847eb..691de51a 100644 --- a/plugin.video.alfa/channels/hotmovs.py +++ b/plugin.video.alfa/channels/hotmovs.py @@ -45,7 +45,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?\s+([^"]+)\s+.*?
    ([^"]+)
    ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,cantidad,scrapedtitle in matches: scrapedplot = "" cantidad = cantidad.replace(" ", "") @@ -66,7 +65,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?([^"]+)
  • ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle,scrapedthumbnail,cantidad in matches: scrapedplot = "" cantidad = cantidad.replace(" ", "") @@ -100,6 +98,7 @@ def peliculas(item): itemlist.append( Item(channel=item.channel , action="peliculas" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) return itemlist + def play(item): logger.info() itemlist = [] diff --git a/plugin.video.alfa/channels/javlin.py b/plugin.video.alfa/channels/javlin.py index e70da654..562c102e 100644 --- a/plugin.video.alfa/channels/javlin.py +++ b/plugin.video.alfa/channels/javlin.py @@ -42,7 +42,6 @@ def categorias(item): data = httptools.downloadpage(item.url).data patron = '' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedtitle,scrapedurl,scrapedthumbnail,scrapedtime in matches: scrapedplot = "" scrapedtitle = "[COLOR yellow]" + (scrapedtime) + "[/COLOR] " + scrapedtitle @@ -62,7 +61,6 @@ def play(item): data = httptools.downloadpage(item.url).data patron = '"video-setup".*?file: "(.*?)",' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl in matches: scrapedurl = str(scrapedurl) itemlist.append(Item(channel=item.channel, action="play", title=item.title, fulltitle=item.fulltitle, url=scrapedurl, diff --git a/plugin.video.alfa/channels/pornhub.py b/plugin.video.alfa/channels/pornhub.py index 7f10160e..22699893 100755 --- a/plugin.video.alfa/channels/pornhub.py +++ b/plugin.video.alfa/channels/pornhub.py @@ -2,7 +2,6 @@ import re import urlparse - from core import httptools from core import scrapertools from core.item import Item @@ -38,27 +37,22 @@ def search(item, texto): def categorias(item): logger.info() itemlist = [] - - # Descarga la página data = httptools.downloadpage(item.url).data data = scrapertools.find_single_match(data, '
    (.*?)') - - # Extrae las categorias + + patron = '
  • (.*?)
    ') - - # Extrae las peliculas patron = '
  • ", "", data) patron = '
    .*?([^<]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle,scrapedthumbnail,duracion in matches: scrapedplot = "" title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle @@ -85,4 +83,5 @@ def play(item): scrapedurl = scrapedurl.replace("\/", "/") itemlist.append(Item(channel=item.channel, action="play", title=item.title, fulltitle=item.fulltitle, url=scrapedurl, thumbnail=item.thumbnail, plot=item.plot, show=item.title, server="directo", folder=False)) - return itemlist \ No newline at end of file + return itemlist + diff --git a/plugin.video.alfa/channels/redtube.py b/plugin.video.alfa/channels/redtube.py index 7cdf10c3..c26185df 100644 --- a/plugin.video.alfa/channels/redtube.py +++ b/plugin.video.alfa/channels/redtube.py @@ -42,7 +42,6 @@ def catalogo(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    \s+([^"]+)\s+Videos' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " [COLOR yellow]" + cantidad + "[/COLOR] " @@ -61,7 +60,6 @@ def categorias(item): data = re.sub(r"\n|\r|\t| |
    ", "", data) patron = '
    .*?\s+([^"]+) Videos' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedthumbnail,scrapedtitle,cantidad in matches: scrapedplot = "" scrapedtitle = scrapedtitle + " (" + cantidad + ")" diff --git a/plugin.video.alfa/channels/sexgalaxy.py b/plugin.video.alfa/channels/sexgalaxy.py index 44ad1113..0967ce96 100644 --- a/plugin.video.alfa/channels/sexgalaxy.py +++ b/plugin.video.alfa/channels/sexgalaxy.py @@ -42,7 +42,6 @@ def canales (item): data = scrapertools.get_match(data,'Top Networks(.*?)') patron = '
  • (.*?)
  • ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -59,7 +58,6 @@ def categorias(item): data = scrapertools.get_match(data,'More Categories(.*?)') patron = '
  • (.*?)
  • ' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -75,7 +73,6 @@ def peliculas(item): data = httptools.downloadpage(item.url).data patron = '
    .*?.*?(.*?)

    ') patron = '(.*?)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , folder=True) ) return itemlist @@ -60,7 +59,6 @@ def catalogo(item): data = scrapertools.get_match(data,'>Best Porn Studios(.*?)') patron = '(.*?)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , folder=True) ) return itemlist @@ -71,7 +69,6 @@ def anual(item): data = httptools.downloadpage(item.url).data patron = '

  • ([^<]+)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -85,16 +82,14 @@ def peliculas(item): data = httptools.downloadpage(item.url).data patron = '
  • (.*?)' matches = re.compile(patron,re.DOTALL).findall(data) - scrapertools.printMatches(matches) for scrapedurl,scrapedtitle in matches: scrapedplot = "" scrapedthumbnail = "" @@ -45,7 +42,6 @@ def peliculas(item): data = httptools.downloadpage(item.url).data patron = '
    .*?') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="catalogo" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def categorias(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = re.sub(r"\n|\r|\t| |
    ", "", data) + if item.title=="PornStars" : + data = scrapertools.get_match(data,' Hall Of Fame Pornstars(.*?)') + patron = '
    .*?(.*?)
    .*?([^"]+)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,cantidad,scrapedtitle in matches: + scrapedplot = "" + if item.title=="Categorias" : + scrapedthumbnail = "http:" + scrapedthumbnail + scrapedurl = urlparse.urljoin(item.url,scrapedurl) + if item.title=="PornStars" : + scrapedurl = urlparse.urljoin(item.url,scrapedurl) + "?section=videos" + scrapedtitle = scrapedtitle + " (" + cantidad + ")" + itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + next_page_url = scrapertools.find_single_match(data,'') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="categorias" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def peliculas(item): + logger.info() + itemlist = [] + data = scrapertools.cachePage(item.url) + data = re.sub(r"\n|\r|\t| |
    ", "", data) + patron = '
    ([^<]+)
    ' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,scrapedtitle,duracion in matches: + url = urlparse.urljoin(item.url,scrapedurl) + title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle + contentTitle = title + thumbnail = scrapedthumbnail + plot = "" + year = "" + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=url, thumbnail=thumbnail, plot=plot, contentTitle = contentTitle, infoLabels={'year':year} )) + next_page_url = scrapertools.find_single_match(data,'
    ') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="peliculas" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def play(item): + logger.info() + itemlist = [] + data = scrapertools.cachePage(item.url) + patron = '' + matches = scrapertools.find_multiple_matches(data, patron) + for url in matches: + itemlist.append(Item(channel=item.channel, action="play", title=item.title, fulltitle=item.fulltitle, url=url, + thumbnail=item.thumbnail, plot=item.plot, show=item.title, server="directo", folder=False)) + return itemlist + diff --git a/plugin.video.alfa/channels/tryboobs.json b/plugin.video.alfa/channels/tryboobs.json new file mode 100644 index 00000000..9fe3080f --- /dev/null +++ b/plugin.video.alfa/channels/tryboobs.json @@ -0,0 +1,16 @@ +{ + "id": "tryboobs", + "name": "tryboobs", + "active": true, + "adult": true, + "language": ["*"], + "thumbnail": "http://tb3.fuckandcdn.com/tb/tbstatic/v30/common/tryboobs/img/logo.png", + "banner": "", + "categories": [ + "adult" + ], + "settings": [ + + ] +} + diff --git a/plugin.video.alfa/channels/tryboobs.py b/plugin.video.alfa/channels/tryboobs.py new file mode 100644 index 00000000..3d94886a --- /dev/null +++ b/plugin.video.alfa/channels/tryboobs.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +#------------------------------------------------------------ +import urlparse,urllib2,urllib,re +import os, sys +from platformcode import config, logger +from core import scrapertools +from core.item import Item +from core import servertools +from core import httptools +from core import tmdb +from core import jsontools + +host = 'http://www.tryboobs.com' + +def mainlist(item): + logger.info() + itemlist = [] + itemlist.append( Item(channel=item.channel, title="Nuevas" , action="peliculas", url=host)) + itemlist.append( Item(channel=item.channel, title="Popular" , action="peliculas", url=host + "/most-popular/week/")) + itemlist.append( Item(channel=item.channel, title="Mejor Valorado" , action="peliculas", url=host + "/top-rated/week/")) + itemlist.append( Item(channel=item.channel, title="Modelos" , action="modelos", url=host + "/models/model-viewed/1/")) + itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "/categories/")) + itemlist.append( Item(channel=item.channel, title="Buscar", action="search")) + return itemlist + + +def search(item, texto): + logger.info() + texto = texto.replace(" ", "+") + item.url = host + "/search/?q=%s" % texto + try: + return peliculas(item) + except: + import sys + for line in sys.exc_info(): + logger.error("%s" % line) + return [] + + +def modelos(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = re.sub(r"\n|\r|\t| |
    ", "", data) + patron = '
    .*?src="([^"]+)".*?(\d+).*?([^"]+)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,cantidad,scrapedtitle in matches: + scrapedplot = "" + scrapedtitle = scrapedtitle + " (" + cantidad + ")" + itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + next_page_url = scrapertools.find_single_match(data,'
  • Next') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="modelos" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def categorias(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = re.sub(r"\n|\r|\t| |
    ", "", data) + patron = '.*?(\d+).*?([^"]+)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,cantidad,scrapedtitle in matches: + scrapedplot = "" + scrapedtitle = scrapedtitle + " (" + cantidad + ")" + itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + return itemlist + + +def peliculas(item): + logger.info() + itemlist = [] + data = scrapertools.cachePage(item.url) + data = re.sub(r"\n|\r|\t| |
    ", "", data) + patron = 'href="([^"]+)"\s*class="th-video.*?([^"]+).*?([^"]+)' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedthumbnail,duracion,scrapedtitle in matches: + url = scrapedurl + contentTitle = scrapedtitle + title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle + thumbnail = scrapedthumbnail + plot = "" + year = "" + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=url, thumbnail=thumbnail, plot=plot, contentTitle = contentTitle, infoLabels={'year':year} )) + next_page_url = scrapertools.find_single_match(data,'
  • Next') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="peliculas" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def play(item): + logger.info() + itemlist = [] + data = scrapertools.cachePage(item.url) + patron = '