KoD 1.7.2
- corretto il playback in tutti i casi (torrent, autoplay, videoteca, libreria ecc..)\n- piccole migliorie prestazionali nella ricerca globale\n- fix trailer\n\n
This commit is contained in:
+5
-3
@@ -40,9 +40,11 @@ def start(itemlist, item):
|
||||
return itemlist
|
||||
|
||||
import xbmc
|
||||
control_item = Item().fromurl(xbmc.getInfoLabel('Container.FolderPath'))
|
||||
if control_item.action == item.action:
|
||||
return itemlist
|
||||
control_info = xbmc.getInfoLabel('Container.FolderPath')
|
||||
if control_info:
|
||||
control_item = Item().fromurl(control_info)
|
||||
if control_item.action == item.action:
|
||||
return itemlist
|
||||
|
||||
if config.get_setting('autoplay') or item.autoplay:
|
||||
# Save the current value of "Action and Player Mode" in preferences
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ directIP = {
|
||||
}
|
||||
|
||||
# Maximum wait time for downloadpage, if nothing is specified
|
||||
HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT = config.get_setting('httptools_timeout', default=15)
|
||||
HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT = config.get_setting('httptools_timeout', default=5)
|
||||
if HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT == 0: HTTPTOOLS_DEFAULT_DOWNLOAD_TIMEOUT = None
|
||||
|
||||
# Random use of User-Agents, if nad is not specified
|
||||
|
||||
@@ -490,7 +490,7 @@ def title_unify(title):
|
||||
if cat != 'Mn':
|
||||
if cat == 'Pd':
|
||||
c_new = '-'
|
||||
elif cat in ['Ll', 'Lu'] or c == ':':
|
||||
elif cat in ['Ll', 'Lu', 'Nd'] or c == ':':
|
||||
c_new = c
|
||||
else:
|
||||
c_new = ' '
|
||||
|
||||
+3
-1
@@ -597,6 +597,7 @@ def scrape(func):
|
||||
nextArgs['item'] = item
|
||||
itemlist = newFunc()
|
||||
itemlist = [i for i in itemlist if i.action not in ['add_pelicula_to_library', 'add_serie_to_library']]
|
||||
logger.debug(item.channel + ' scraping time ' + ':', time()-scrapingTime)
|
||||
|
||||
if anime and inspect.stack()[1][3] not in ['find_episodes']:
|
||||
from platformcode import autorenumber
|
||||
@@ -655,7 +656,6 @@ def scrape(func):
|
||||
if config.get_setting('trakt_sync'):
|
||||
from core import trakt_tools
|
||||
trakt_tools.trakt_check(itemlist)
|
||||
logger.debug('scraping time: ', time()-scrapingTime)
|
||||
return itemlist
|
||||
|
||||
return wrapper
|
||||
@@ -1267,6 +1267,8 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru
|
||||
findS = servertools.get_server_from_url(videoitem.url)
|
||||
if not findS:
|
||||
info(videoitem, 'Non supportato')
|
||||
if logger.testMode:
|
||||
raise Exception('Server missing: ' + videoitem.url)
|
||||
return
|
||||
videoitem.server = findS[2]
|
||||
videoitem.title = findS[0]
|
||||
|
||||
@@ -41,7 +41,7 @@ def read_nfo(path_nfo, item=None):
|
||||
@rtype: tuple (str, Item)
|
||||
"""
|
||||
head_nfo = ""
|
||||
it = None
|
||||
it = Item()
|
||||
|
||||
data = filetools.read(path_nfo)
|
||||
|
||||
@@ -277,7 +277,7 @@ def filter_list(episodelist, action=None, path=None):
|
||||
channel_prefs = {}
|
||||
lang_sel = quality_sel = show_title = channel =''
|
||||
|
||||
if action:
|
||||
if action:
|
||||
tvshow_path = filetools.join(path, "tvshow.nfo")
|
||||
head_nfo, tvshow_item = read_nfo(tvshow_path)
|
||||
channel = episodelist[0].channel
|
||||
@@ -577,7 +577,8 @@ def save_episodes(path, episodelist, serie, silent=False, overwrite=True):
|
||||
@return: the number of failed episodes
|
||||
"""
|
||||
logger.debug()
|
||||
episodelist = filter_list(episodelist, serie.action, path)
|
||||
if episodelist:
|
||||
episodelist = filter_list(episodelist, serie.action, path)
|
||||
# No episode list, nothing to save
|
||||
if not len(episodelist):
|
||||
logger.debug("There is no episode list, we go out without creating strm")
|
||||
|
||||
Reference in New Issue
Block a user