Merge branch 'master' of https://github.com/kodiondemand/addon
This commit is contained in:
@@ -7,6 +7,5 @@
|
|||||||
"thumbnail": "seriehd.png",
|
"thumbnail": "seriehd.png",
|
||||||
"banner": "seriehd.png",
|
"banner": "seriehd.png",
|
||||||
"categories": ["tvshow"],
|
"categories": ["tvshow"],
|
||||||
"not_active": ["include_in_newest"],
|
|
||||||
"settings": []
|
"settings": []
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-6
@@ -7,9 +7,6 @@
|
|||||||
from core import scrapertoolsV2, httptools, support
|
from core import scrapertoolsV2, httptools, support
|
||||||
from core.item import Item
|
from core.item import Item
|
||||||
|
|
||||||
##__channel__ = 'seriehd'
|
|
||||||
# host = support.config.get_channel_url(__channel__)
|
|
||||||
|
|
||||||
# impostati dinamicamente da findhost()
|
# impostati dinamicamente da findhost()
|
||||||
host = ''
|
host = ''
|
||||||
headers = ''
|
headers = ''
|
||||||
@@ -26,9 +23,6 @@ findhost()
|
|||||||
list_servers = ['verystream', 'openload', 'streamango', 'thevideome']
|
list_servers = ['verystream', 'openload', 'streamango', 'thevideome']
|
||||||
list_quality = ['1080p', '720p', '480p', '360']
|
list_quality = ['1080p', '720p', '480p', '360']
|
||||||
|
|
||||||
##checklinks = support.config.get_setting('checklinks', __channel__)
|
|
||||||
##checklinks_number = support.config.get_setting('checklinks_number', __channel__)
|
|
||||||
|
|
||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
@@ -89,6 +83,25 @@ def episodios(item):
|
|||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
def newest(categoria):
|
||||||
|
support.log(categoria)
|
||||||
|
itemlist = []
|
||||||
|
item = support.Item()
|
||||||
|
try:
|
||||||
|
if categoria == "series":
|
||||||
|
item.url = host
|
||||||
|
item.contentType = 'tvshow'
|
||||||
|
itemlist = peliculas(item)
|
||||||
|
itemlist.pop()
|
||||||
|
# Continua la ricerca in caso di errore
|
||||||
|
except:
|
||||||
|
import sys
|
||||||
|
for line in sys.exc_info():
|
||||||
|
support.logger.error("{0}".format(line))
|
||||||
|
return []
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
support.log()
|
support.log()
|
||||||
|
|||||||
+3
-1
@@ -222,6 +222,9 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
season = scraped['season']
|
season = scraped['season']
|
||||||
if stagione:
|
if stagione:
|
||||||
episode = season +'x'+ scraped['episode']
|
episode = season +'x'+ scraped['episode']
|
||||||
|
elif item.contentType == 'tvshow' and (scraped['episode'] == '' and season == ''):
|
||||||
|
item.args = 'season_completed'
|
||||||
|
episode = ''
|
||||||
else:
|
else:
|
||||||
episode = re.sub(r'\s-\s|-|x|–|×', 'x', scraped['episode']) if scraped['episode'] else ''
|
episode = re.sub(r'\s-\s|-|x|–|×', 'x', scraped['episode']) if scraped['episode'] else ''
|
||||||
|
|
||||||
@@ -239,7 +242,6 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
longtitle = typo(longtitle, 'bold')
|
longtitle = typo(longtitle, 'bold')
|
||||||
longtitle += (typo(Type,'_ () bold') if Type else '') + (typo(quality, '_ [] color kod') if quality else '')
|
longtitle += (typo(Type,'_ () bold') if Type else '') + (typo(quality, '_ [] color kod') if quality else '')
|
||||||
|
|
||||||
|
|
||||||
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
||||||
|
|
||||||
# if title is set, probably this is a list of episodes or video sources
|
# if title is set, probably this is a list of episodes or video sources
|
||||||
|
|||||||
@@ -5660,3 +5660,7 @@ msgstr "Seleziona gli Episodi della Stagione"
|
|||||||
msgctxt "#70735"
|
msgctxt "#70735"
|
||||||
msgid "%s Special Episode Number"
|
msgid "%s Special Episode Number"
|
||||||
msgstr "Numero dell'Episodio Speciale %s"
|
msgstr "Numero dell'Episodio Speciale %s"
|
||||||
|
|
||||||
|
msgctxt "#70736"
|
||||||
|
msgid "Completed Serie"
|
||||||
|
msgstr "Serie Completa"
|
||||||
|
|||||||
+7
-2
@@ -392,7 +392,7 @@ def get_newest(channel_id, categoria):
|
|||||||
|
|
||||||
|
|
||||||
def get_title(item):
|
def get_title(item):
|
||||||
support.log("ITEM NEWEST ->", item)
|
#support.log("ITEM NEWEST ->", item)
|
||||||
if item.contentSerieName: # Si es una serie
|
if item.contentSerieName: # Si es una serie
|
||||||
title = item.contentSerieName
|
title = item.contentSerieName
|
||||||
#title = re.compile("\[.*?\]", re.DOTALL).sub("", item.contentSerieName)
|
#title = re.compile("\[.*?\]", re.DOTALL).sub("", item.contentSerieName)
|
||||||
@@ -413,6 +413,7 @@ def get_title(item):
|
|||||||
title = re.compile("\[/*B\]", re.DOTALL).sub("", title)
|
title = re.compile("\[/*B\]", re.DOTALL).sub("", title)
|
||||||
title = re.compile("\[/*I\]", re.DOTALL).sub("", title)
|
title = re.compile("\[/*I\]", re.DOTALL).sub("", title)
|
||||||
|
|
||||||
|
|
||||||
title = '[B]'+title+'[/B]'
|
title = '[B]'+title+'[/B]'
|
||||||
|
|
||||||
if item.contentLanguage == '':
|
if item.contentLanguage == '':
|
||||||
@@ -426,6 +427,10 @@ def get_title(item):
|
|||||||
|
|
||||||
if item.quality:
|
if item.quality:
|
||||||
title += support.typo(item.quality, '_ [] color kod')
|
title += support.typo(item.quality, '_ [] color kod')
|
||||||
|
|
||||||
|
season_ = support.typo(config.get_localized_string(70736), '_ [] color white bold') if (type(item.args) != bool and 'season_completed' in item.args) else ''
|
||||||
|
if season_:
|
||||||
|
title += season_
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
||||||
@@ -434,7 +439,7 @@ def no_group(list_result_canal):
|
|||||||
global channels_id_name
|
global channels_id_name
|
||||||
|
|
||||||
for i in list_result_canal:
|
for i in list_result_canal:
|
||||||
support.log("NO GROUP i -> ", i)
|
#support.log("NO GROUP i -> ", i)
|
||||||
canale = channels_id_name[i.channel]
|
canale = channels_id_name[i.channel]
|
||||||
canale = canale # per differenziarlo dal colore delle altre voci
|
canale = canale # per differenziarlo dal colore delle altre voci
|
||||||
i.title = get_title(i) + " [" + canale + "]"
|
i.title = get_title(i) + " [" + canale + "]"
|
||||||
|
|||||||
Reference in New Issue
Block a user