From aceb155d98383f3d2188151b09242499cb0e2bc6 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Fri, 30 Aug 2019 20:40:51 +0200 Subject: [PATCH 1/2] test --- platformcode/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformcode/updater.py b/platformcode/updater.py index 7dadc6be..277f5c56 100644 --- a/platformcode/updater.py +++ b/platformcode/updater.py @@ -17,7 +17,7 @@ addon = xbmcaddon.Addon('plugin.video.kod') _hdr_pat = re.compile("^@@ -(\d+),?(\d+)? \+(\d+),?(\d+)? @@.*") branch = 'stable' -user = 'kodiondemand' +user = 'mac12m99' repo = 'addon' addonDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + '/' maxPage = 5 # le api restituiscono 30 commit per volta, quindi se si è rimasti troppo indietro c'è bisogno di andare avanti con le pagine From a3c90d90d7eaaba0d736a7ae2fe81d7762148258 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Fri, 30 Aug 2019 20:47:43 +0200 Subject: [PATCH 2/2] KoD 0.5 KoD 0.5 -riscritti molti canali per cambiamenti nella struttura stessa di kod -altre robe carine --- .github/ISSUE_TEMPLATE/test-canale.md | 228 ++++++ addon.xml | 14 +- channels.json | 26 +- channels/LIKUOO.py | 35 +- channels/TXXX.py | 12 +- channels/absoluporn.py | 13 +- channels/alsoporn.py | 34 +- channels/altadefinizione01.py | 204 +++-- channels/altadefinizione01_club.json | 8 - channels/altadefinizione01_club.py | 154 ++-- channels/altadefinizione01_link.json | 21 +- channels/altadefinizione01_link.py | 115 ++- channels/altadefinizioneclick.py | 99 ++- channels/analdin.py | 14 +- channels/animeforce.json | 43 +- channels/animeforce.py | 541 ++----------- channels/animeleggendari.json | 69 +- channels/animeleggendari.py | 199 ++--- channels/animesaturn.json | 17 +- channels/animesaturn.py | 414 ++-------- channels/animesubita.json | 32 + channels/animesubita.py | 369 ++------- channels/animeworld.py | 273 ++----- channels/beeg.json | 14 + channels/beeg.py | 122 +++ channels/bravoporn.py | 11 +- channels/camwhoresbay.py | 15 +- channels/canalporno.py | 96 +-- channels/cat3plus.json | 4 +- channels/cat3plus.py | 5 +- channels/cineblog01.py | 209 ++--- channels/cinemalibero.py | 47 +- channels/cinetemagay.py | 3 +- channels/cliphunter.py | 17 +- channels/coomelonitas.py | 13 +- channels/cumlouder.py | 119 ++- channels/czechvideo.json | 2 +- channels/czechvideo.py | 12 +- channels/datoporn.py | 41 +- channels/eporner.py | 94 ++- channels/eroticage.py | 10 +- channels/erotik.json | 10 +- channels/erotik.py | 58 +- channels/eurostreaming.json | 14 +- channels/eurostreaming.py | 154 ++-- channels/fapality.json | 2 +- channels/fapality.py | 13 +- channels/fastsubita.py | 10 +- channels/fetishshrine.py | 11 +- channels/filmigratis.py | 4 +- channels/filmoviXXX.py | 12 +- channels/filmpertutti.json | 4 +- channels/foxtube.py | 47 +- channels/freeporn.py | 13 +- channels/freepornstreams.py | 76 +- channels/gotporn.json | 15 + channels/gotporn.py | 129 ++++ channels/guardaserieclick.py | 354 ++++----- channels/guardogratis.json | 4 +- channels/hclips.py | 12 +- channels/hdzog.py | 12 +- channels/hellporno.py | 15 +- channels/hentaiid.json | 6 +- channels/hentaiid.py | 33 +- channels/hotmovs.py | 12 +- channels/italiaserie.py | 2 +- channels/javtasty.py | 3 +- channels/javus.json | 8 - channels/javus.py | 1 - channels/javwhores.py | 20 +- channels/jizzbunker.py | 13 +- channels/justporn.py | 17 +- channels/kingsizetits.json | 15 + channels/kingsizetits.py | 95 +++ channels/mangovideo.json | 15 + channels/mangovideo.py | 109 +++ channels/mondolunatico2.py | 10 +- channels/mporno.py | 37 +- channels/muchoporno.py | 20 +- channels/nuvid.py | 6 +- channels/pandamovie.py | 45 +- channels/pelisxporno.json | 8 - channels/pelisxporno.py | 96 ++- channels/perfectgirls.py | 11 +- channels/playpornx.json | 8 - channels/playpornx.py | 92 ++- channels/porn300.py | 71 +- channels/pornboss.py | 64 +- channels/porndish.json | 15 + channels/porndish.py | 78 ++ channels/porneq.py | 18 +- channels/pornhive.py | 9 +- channels/pornhub.json | 10 +- channels/pornhub.py | 33 +- channels/pornohdmega.json | 15 + channels/pornohdmega.py | 108 +++ channels/pornrewind.py | 13 +- channels/porntrex.py | 76 +- channels/porntv.json | 15 + channels/porntv.py | 104 +++ channels/qwertty.json | 2 +- channels/qwertty.py | 92 +-- channels/redtube.py | 5 +- channels/seriehd.json | 53 +- channels/seriehd.py | 146 ++-- channels/serietvsubita.json | 8 - channels/serietvsubita.py | 21 +- channels/serietvu.py | 2 +- channels/serviporno.json | 10 +- channels/serviporno.py | 18 +- channels/sexgalaxy.py | 24 +- channels/sexkino.py | 4 - channels/sexofilm.py | 33 +- channels/shameless.json | 14 + channels/shameless.py | 95 +++ channels/siska.py | 21 +- channels/sleazemovies.json | 4 +- channels/sleazemovies.py | 3 +- channels/spankbang.py | 11 +- channels/spankwire.json | 2 +- channels/spankwire.py | 133 ++-- channels/streamingaltadefinizione.py | 32 +- channels/streamingporn.py | 26 +- channels/streamporno.py | 13 +- channels/streamtime.json | 53 ++ channels/streamtime.py | 141 ++++ channels/submityouflicks.json | 10 +- channels/submityouflicks.py | 4 +- channels/sunporno.py | 16 +- channels/sxyprn.json | 15 + channels/sxyprn.py | 99 +++ channels/thumbzilla.json | 2 +- channels/thumbzilla.py | 4 +- channels/titsbox.json | 15 + channels/titsbox.py | 71 ++ channels/tnaflix.py | 54 +- channels/toonitalia.json | 16 - channels/toonitalia.py | 384 ++-------- channels/tryboobs.py | 14 +- channels/tubedupe.py | 15 +- channels/tubehentai.json | 8 - channels/tubehentai.py | 76 +- channels/vedohd.py | 63 +- channels/videosXYZ.py | 11 +- channels/vidz7.py | 13 +- channels/vintagetube.py | 13 +- channels/vintagexxxsex.py | 13 +- channels/vivud.json | 15 + channels/vivud.py | 71 ++ channels/vporn.json | 2 +- channels/vporn.py | 29 +- channels/watchpornfree.json | 2 +- channels/watchpornfree.py | 30 +- channels/woodrocket.py | 21 +- channels/xhamster.py | 13 +- channels/xms.json | 2 +- channels/xms.py | 70 +- channels/xozilla.py | 17 +- channels/xtapes.json | 2 +- channels/xtapes.py | 38 +- channels/xvideos.json | 15 + channels/xvideos.py | 121 +++ channels/xxxdan.py | 12 +- channels/xxxfreeinhd.json | 2 +- channels/xxxfreeinhd.py | 53 +- channels/xxxparodyhd.py | 17 +- channels/xxxstreams.json | 2 +- channels/xxxstreams.py | 32 +- channels/yespornplease.py | 12 +- channels/youjizz.py | 18 +- channels/youporn.py | 13 +- channels/yuuk.py | 28 +- channels/zmovs.json | 15 + channelselector.py | 66 +- core/channeltools.py | 66 +- core/scrapertoolsV2.py | 5 + core/support.py | 719 +++++++++++++----- core/videolibrarytools.py | 12 +- default.py | 2 + default_channel_settings.json | 89 +++ platformcode/launcher.py | 16 +- platformcode/platformtools.py | 22 +- platformcode/updater.py | 9 +- resources/language/English/strings.po | 28 + resources/language/Italian/strings.po | 34 +- .../channels/banner/altadefinizione01link.png | Bin 0 -> 46752 bytes .../media/channels/banner/animeforce.png | Bin 0 -> 17034 bytes .../media/channels/banner/animesubita.png | Bin 0 -> 313424 bytes .../media/channels/banner/eurostreaming.png | Bin 0 -> 121220 bytes resources/media/channels/thumb/animeforce.png | Bin 0 -> 8377 bytes .../media/channels/thumb/animesubita.png | Bin 0 -> 205911 bytes .../media/channels/thumb/eurostreaming.png | Bin 0 -> 59902 bytes resources/settings.xml | 2 +- servers/debriders/realdebrid.py | 2 +- servers/netutv.py | 17 +- specials/autoplay.py | 16 +- specials/autorenumber.py | 6 +- specials/checkhost.py | 3 +- specials/downloads.py | 116 ++- specials/favorites.py | 2 +- specials/filtertools.py | 2 + specials/news.py | 4 +- specials/search.py | 3 +- specials/videolibrary.py | 26 +- 204 files changed, 5196 insertions(+), 4653 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/test-canale.md create mode 100755 channels/beeg.json create mode 100755 channels/beeg.py create mode 100755 channels/gotporn.json create mode 100755 channels/gotporn.py create mode 100755 channels/kingsizetits.json create mode 100755 channels/kingsizetits.py create mode 100755 channels/mangovideo.json create mode 100755 channels/mangovideo.py create mode 100755 channels/porndish.json create mode 100755 channels/porndish.py create mode 100755 channels/pornohdmega.json create mode 100755 channels/pornohdmega.py create mode 100755 channels/porntv.json create mode 100755 channels/porntv.py create mode 100755 channels/shameless.json create mode 100755 channels/shameless.py create mode 100644 channels/streamtime.json create mode 100644 channels/streamtime.py create mode 100755 channels/sxyprn.json create mode 100755 channels/sxyprn.py create mode 100755 channels/titsbox.json create mode 100755 channels/titsbox.py create mode 100755 channels/vivud.json create mode 100755 channels/vivud.py create mode 100755 channels/xvideos.json create mode 100755 channels/xvideos.py create mode 100755 channels/zmovs.json create mode 100644 default_channel_settings.json create mode 100644 resources/media/channels/banner/altadefinizione01link.png create mode 100644 resources/media/channels/banner/animeforce.png create mode 100644 resources/media/channels/banner/animesubita.png create mode 100644 resources/media/channels/banner/eurostreaming.png create mode 100644 resources/media/channels/thumb/animeforce.png create mode 100644 resources/media/channels/thumb/animesubita.png create mode 100644 resources/media/channels/thumb/eurostreaming.png mode change 100755 => 100644 specials/checkhost.py diff --git a/.github/ISSUE_TEMPLATE/test-canale.md b/.github/ISSUE_TEMPLATE/test-canale.md new file mode 100644 index 00000000..e00347dd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/test-canale.md @@ -0,0 +1,228 @@ +--- +name: Test Canale +about: Pagina per il test di un canale +title: '' +labels: Test Canale +assignees: '' + +--- + +Di ogni test mantieni la voce dell'esito e cancella le altre, dove occorre aggiungi informazioni. Specifica, dove possibile, il tipo di problema che incontri in quel test. +Se hai suggerimenti/consigli/dubbi sui test...Proponili e/o chiedi! + +*** + +Test N°.1: Lista Canali + +Cosa serve: il file .json + +1. Verifica del canale nelle sezioni indicate nel file .json, voce "categories". + +- [ ] Tutte +- [ ] Alcune - Indicare le sezioni dove manca il canale +- [ ] Nessuna - Voce Canale mancante nella lista. In questo caso non puoi continuare il test. + +2. Icone del canale [ ] + +- [ ] Presenti +- [ ] Non Presenti + +*** + +Test N°.2: Configura Canale + +1. Presenza della voce "Configura Canale" + +- [Si] +- [No] + +2. Voci presenti in Configura Canale + +a. Cerca Informazioni extra (Default: Attivo) + +- [Si] +- [No] + +b. Includi in Novità (Default: Attivo) + +- [Si] +- [No] + +c. Includi in Novità - Italiano (Default: Attivo) + +- [Si] +- [No] + +d. Includi in ricerca globale (Default: Attivo) + +- [Si] +- [No] + +e. Verifica se i link esistono (Default: Attivo) + +- [Si] +- [No] + +f. Numero de link da verificare (Default: 10) + +- [Si] +- [No] + +g. Mostra link in lingua (Default: Non filtrare) + +- [Si] +- [No] + +*** + +Test N°.3: Voci menu nella pagina del Canale + +1. Configurazione Autoplay + +- [Si] +- [No] + +2. Configurazione Canale + +- [Si] +- [No] + +*** + +Test N°.4: Confronto Sito - Pagina Canale + +Cosa serve: il file .py, consultare la def mainlist() + +Promemoria: +della mainlist la struttura è: + +( 'Voce menu1', ['/url/', etc, etc]) +( 'Voce menu2', ['', etc, etc]) +Dove url è una stringa aggiuntiva da aggiungere all'url principale, se in url appare '' allora corrisponde all'indirizzo principale del sito. + +Questo Test confronta i titoli che trovi accedendo alle voci di menu del canale con quello che vedi nella corrispettiva pagina del sito. + +- [Voce menu con problemi - Tipo di problema] ( copiare per tutte le voci che non hanno corrispondenza ) +Tipo di problema = mancano dei titoli, i titoli sono errati, ai titoli corrispondono locandine errate o altro + + +I test successivi sono divisi a seconda si tratta di film, serie tv o anime. +Cancella le sezioni non interessate dal canale. Verificale dalla voce "categories" del file .json. + +**Sezione FILM + +Test da effettuare mentre sei nella pagina dei titoli. Per ogni titolo verfica ci siano le voci nel menu contestuale. + +1. Aggiungi Film in videoteca + +- [Si] +- [No] + +Aggiungi 2-3 titoli in videoteca. Verificheremo successivamente la videoteca. +- [Aggiunti correttamente] +- [Indica eventuali problemi] (copia-incolla per tutti i titoli con cui hai avuto il problema) + +2. Scarica Film + +- [Si] +- [No] + +3. Paginazione ( cliccare sulla voce "Successivo" e verifica la 2° pagina nello stesso modo in cui lo hai fatto per la 1°) + +- [Ok] +- [X - indica il tipo di problema] + +4. Cerca o Cerca Film... +Cerca un titolo a caso in KOD e lo stesso titolo sul sito. Confronta i risultati. + +- [Ok] +- [X - indica il tipo di problema] + +5. Entra nella pagina del titolo, verifica che come ultima voce ci sia "Aggiungi in videoteca": + +- [Si, appare] +- [Non appare] + +6. Eventuali problemi riscontrati +- [ scrivi qui il problema/i ] + +**Sezione Serie TV + +Test da effettuare mentre sei nella pagina dei titoli. Per ogni titolo verfica ci siano le voci nel menu contestuale. + +1. Aggiungi Serie in videoteca + +- [Si] +- [No] + +2. Aggiungi 2-3 titoli in videoteca. Verificheremo successivamente la videoteca. +- [Aggiunti correttamente] +- [Indica eventuali problemi] (copia-incolla per tutti i titoli con cui hai avuto il problema) + +3. Scarica Serie + +- [Si] +- [No] + +4. Cerca o Cerca Serie... +Cerca un titolo a caso in KOD e lo stesso titolo sul sito. Confronta i risultati. + +- [Ok] +- [X - indica il tipo di problema] + +5. Entra nella pagina della serie, verifica che come ultima voce ci sia "Aggiungi in videoteca": + +- [Non appare] +- [Si, appare] + +6. Entra nella pagina dell'episodio, NON deve apparire la voce "Aggiungi in videoteca": + +- [Non appare] +- [Si, appare] + +7. Eventuali problemi riscontrati +- [ scrivi qui il problema/i ] + +**Sezione Anime + +Test da effettuare mentre sei nella pagina dei titoli. Per ogni titolo verfica ci siano le voci nel menu contestuale. + +1. Aggiungi Serie in videoteca + +- [Si] +- [No] + +2. Aggiungi 2-3 titoli in videoteca. Verificheremo successivamente la videoteca. +- [Aggiunti correttamente] +- [Indica eventuali problemi] (copia-incolla per tutti i titoli con cui hai avuto il problema) + +3. Scarica Serie + +- [Si] +- [No] + +4. Rinumerazione + +- [Si] +- [No] + +5. Cerca o Cerca Serie... +Cerca un titolo a caso in KOD e lo stesso titolo sul sito. Confronta i risultati. + +- [Ok] +- [X - indica il tipo di problema] + +6. Entra nella pagina della serie, verifica che come ultima voce ci sia "Aggiungi in videoteca": + +- [Si, appare] +- [Non appare] + +7. Entra nella pagina dell'episodio, NON deve apparire la voce "Aggiungi in videoteca": + +- [Non appare] +- [Si, appare] + +8. Eventuali problemi riscontrati +- [ scrivi qui il problema/i ] + +**Fine test del canale preso singolarmente!!! diff --git a/addon.xml b/addon.xml index 96042157..711b9c89 100644 --- a/addon.xml +++ b/addon.xml @@ -1,12 +1,12 @@ - - + + - + video @@ -19,7 +19,9 @@ resources/media/themes/ss/2.png resources/media/themes/ss/3.png - Benvenuto su KOD! + KoD 0.5 + -riscritti molti canali per cambiamenti nella struttura stessa di kod + -altre robe carine Naviga velocemente sul web e guarda i contenuti presenti [COLOR red]The owners and submitters to this addon do not host or distribute any of the content displayed by these addons nor do they have any affiliation with the content providers.[/COLOR] [COLOR yellow]Kodi © is a registered trademark of the XBMC Foundation. We are not connected to or in any other way affiliated with Kodi, Team Kodi, or the XBMC Foundation. Furthermore, any software, addons, or products offered by us will receive no support in official Kodi channels, including the Kodi forums and various social networks.[/COLOR] @@ -29,6 +31,6 @@ https://t.me/kodiondemand https://github.com/kodiondemand/addon - + - + \ No newline at end of file diff --git a/channels.json b/channels.json index f1e8d571..78f79ee5 100644 --- a/channels.json +++ b/channels.json @@ -1,13 +1,13 @@ { - "altadefinizione01_club": "https://www.altadefinizione01.cc", - "altadefinizione01_link": "http://altadefinizione1.link", "altadefinizione01": "https://www.altadefinizione01.cc", + "altadefinizione01_club": "https://www.altadefinizione01.cc", + "altadefinizione01_link": "http://altadefinizione1.com", "altadefinizioneclick": "https://altadefinizione.cloud", "altadefinizionehd": "https://altadefinizionetv.best", - "animeforge": "https://ww1.animeforce.org", + "animeforce": "https://ww1.animeforce.org", "animeleggendari": "https://animepertutti.com", + "animespace": "http://www.animespace.tv", "animestream": "https://www.animeworld.it", - "animespace": "https://www.animespace.tv", "animesubita": "http://www.animesubita.org", "animetubeita": "http://www.animetubeita.com", "animevision": "https://www.animevision.it", @@ -17,37 +17,29 @@ "casacinemainfo": "https://www.casacinema.info", "cb01anime": "https://www.cineblog01.ink", "cinemalibero": "https://www.cinemalibero.best", - "cinemastreaming": "https://cinemastreaming.icu", "documentaristreamingda": "https://documentari-streaming-da.com", "dreamsub": "https://www.dreamsub.stream", "eurostreaming": "https://eurostreaming.pink", - "eurostreaming_video": "https://www.eurostreaming.best", "fastsubita": "http://fastsubita.com", - "ffilms":"https://ffilms.org", - "filmigratis": "https://filmigratis.net", "filmgratis": "https://www.filmaltadefinizione.net", + "filmigratis": "https://filmigratis.org", "filmontv": "https://www.comingsoon.it", "filmpertutti": "https://www.filmpertutti.pub", "filmsenzalimiti": "https://filmsenzalimiti.best", "filmsenzalimiticc": "https://www.filmsenzalimiti.host", - "filmsenzalimiti_blue": "https://filmsenzalimiti.best", - "filmsenzalimiti_info": "https://www.filmsenzalimiti.host", "filmstreaming01": "https://filmstreaming01.com", "filmstreamingita": "http://filmstreamingita.live", - "guarda_serie": "https://guardaserie.site", "guardafilm": "http://www.guardafilm.top", "guardarefilm": "https://www.guardarefilm.red", + "guardaserie_stream": "https://guardaserie.co", "guardaseriecc": "https://guardaserie.site", "guardaserieclick": "https://www.guardaserie.media", - "guardaserie_stream": "https://guardaserie.co", - "guardaserieonline": "http://www.guardaserie.media", "guardogratis": "http://guardogratis.net", "ilgeniodellostreaming": "https://ilgeniodellostreaming.se", "italiafilm": "https://www.italia-film.pw", "italiafilmhd": "https://italiafilm.info", "italiaserie": "https://italiaserie.org", "itastreaming": "https://itastreaming.film", - "majintoon": "https://toonitalia.org", "mondolunatico": "http://mondolunatico.org", "mondolunatico2": "http://mondolunatico.org/stream/", "mondoserietv": "https://mondoserietv.com", @@ -56,7 +48,9 @@ "serietvonline": "https://serietvonline.tech", "serietvsubita": "http://serietvsubita.xyz", "serietvu": "https://www.serietvu.club", - "streamingaltadefinizione": "https://www.streamingaltadefinizione.best", + "streamingaltadefinizione": "https://www.streamingaltadefinizione.me", + "streamtime": "https://t.me/s/StreamTime", "tantifilm": "https://www.tantifilm.eu", - "toonitalia": "https://toonitalia.org" + "toonitalia": "https://toonitalia.org", + "vedohd": "https://vedohd.icu/" } diff --git a/channels/LIKUOO.py b/channels/LIKUOO.py index f42ed721..a0038dc6 100644 --- a/channels/LIKUOO.py +++ b/channels/LIKUOO.py @@ -1,16 +1,14 @@ # -*- coding: utf-8 -*- #------------------------------------------------------------ -import re -import urlparse - -from core import httptools +import urlparse,urllib2,urllib,re +import os, sys +from platformcode import config, logger from core import scrapertools -from core import servertools from core.item import Item -from platformcode import logger -from platformcode import config +from core import servertools +from core import httptools -host = 'http://www.likuoo.video' +host = 'https://www.likuoo.video' def mainlist(item): @@ -83,13 +81,20 @@ def lista(item): def play(item): - logger.info() + itemlist = [] data = httptools.downloadpage(item.url).data - 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 + data = re.sub(r"\n|\r|\t|amp;|\s{2}| ", "", data) + patron = 'url:\'([^\']+)\'.*?' + patron += 'data:\'([^\']+)\'' + matches = scrapertools.find_multiple_matches(data, patron) + for scrapedurl,post in matches: + post = post.replace("%3D", "=") + scrapedurl = host + scrapedurl + logger.debug( item.url +" , "+ scrapedurl +" , " +post ) + datas = httptools.downloadpage(scrapedurl, post=post, headers={'Referer':item.url}).data + datas = datas.replace("\\", "") + url = scrapertools.find_single_match(datas, '