Prova riproduzione
This commit is contained in:
+2
-2
@@ -1278,10 +1278,10 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru
|
|||||||
videoitem.server = videoitem.server.lower()
|
videoitem.server = videoitem.server.lower()
|
||||||
|
|
||||||
if videoitem.video_urls or srv_param.get('active', False):
|
if videoitem.video_urls or srv_param.get('active', False):
|
||||||
item.title = typo(item.contentTitle.strip(), 'bold') if item.contentType == 'movie' or (config.get_localized_string(30161) in item.title) else item.title
|
title = typo(item.contentTitle.strip(), 'bold') if item.contentType == 'movie' or (config.get_localized_string(30161) in item.title) else item.title
|
||||||
|
|
||||||
quality = videoitem.quality if videoitem.quality else item.quality if item.quality else ''
|
quality = videoitem.quality if videoitem.quality else item.quality if item.quality else ''
|
||||||
videoitem.title = (item.title if item.channel not in ['url'] else '')\
|
videoitem.title = (title if item.channel not in ['url'] else '')\
|
||||||
+ (typo(videoitem.title, '_ color kod [] bold') if videoitem.title else "")\
|
+ (typo(videoitem.title, '_ color kod [] bold') if videoitem.title else "")\
|
||||||
+ (typo(videoitem.quality, '_ color kod []') if videoitem.quality else "")\
|
+ (typo(videoitem.quality, '_ color kod []') if videoitem.quality else "")\
|
||||||
+ (typo(videoitem.contentLanguage, '_ color kod []') if videoitem.contentLanguage else "")\
|
+ (typo(videoitem.contentLanguage, '_ color kod []') if videoitem.contentLanguage else "")\
|
||||||
|
|||||||
@@ -459,8 +459,14 @@ def play_from_library(item):
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
# logger.debug("item: \n" + item.tostring('\n'))
|
# logger.debug("item: \n" + item.tostring('\n'))
|
||||||
|
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True,
|
||||||
|
xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
|
||||||
|
while not platformtools.is_playing():
|
||||||
|
xbmc.sleep(10)
|
||||||
|
xbmc.Player().stop()
|
||||||
platformtools.prevent_busy()
|
platformtools.prevent_busy()
|
||||||
|
|
||||||
|
|
||||||
itemlist=[]
|
itemlist=[]
|
||||||
item.fromLibrary = True
|
item.fromLibrary = True
|
||||||
item.window = True
|
item.window = True
|
||||||
@@ -531,7 +537,7 @@ def play_from_library(item):
|
|||||||
if selection == -1:
|
if selection == -1:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
item = videolibrary.play(itemlist[selection + selection_implementation])[0]
|
item = videolibrary.play(itemlist[selection + selection_implementation])[0]
|
||||||
platformtools.play_video(item)
|
platformtools.play_video(item)
|
||||||
reopen = True
|
reopen = True
|
||||||
# if (platformtools.is_playing() and item.action) or item.server == 'torrent' or config.get_setting('autoplay'): break
|
# if (platformtools.is_playing() and item.action) or item.server == 'torrent' or config.get_setting('autoplay'): break
|
||||||
|
|||||||
@@ -377,8 +377,6 @@ def set_watched_on_kod(data):
|
|||||||
|
|
||||||
path = filetools.join(path, filename)
|
path = filetools.join(path, filename)
|
||||||
head_nfo, item = videolibrarytools.read_nfo(path)
|
head_nfo, item = videolibrarytools.read_nfo(path)
|
||||||
from core.support import dbg
|
|
||||||
dbg()
|
|
||||||
if item.library_playcounts:
|
if item.library_playcounts:
|
||||||
item.library_playcounts.update({title: playcount})
|
item.library_playcounts.update({title: playcount})
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user