fix segna come visto con autoplay

This commit is contained in:
marco
2020-06-20 00:09:02 +02:00
parent 3365d512f5
commit f820ab55d5
3 changed files with 2 additions and 9 deletions

View File

@@ -23,8 +23,6 @@ host = config.get_channel_url()
headers = [['Referer', host]]
@support.menu
def mainlist(item):

View File

@@ -886,7 +886,6 @@ def set_player(item, xlistitem, mediaurl, view, strm, nfo_path=None, head_nfo=No
if item.server == "torrent":
play_torrent(item, xlistitem, mediaurl)
return
# If it is a strm file, play is not necessary
elif strm:
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xlistitem)
@@ -914,10 +913,6 @@ def set_player(item, xlistitem, mediaurl, view, strm, nfo_path=None, head_nfo=No
elif player_mode == 1:
logger.info('Player Mode: setResolvedUrl')
# if it is a video library file send to mark as seen
if strm or item.strm_path:
from platformcode import xbmc_videolibrary
xbmc_videolibrary.mark_auto_as_watched(item, nfo_path, head_nfo, item_nfo)
xlistitem.setPath(mediaurl)
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xlistitem)
xbmc.sleep(2500)

View File

@@ -234,8 +234,8 @@ def start(itemlist, item):
# Mark as seen
from platformcode import xbmc_videolibrary
# Fill the video with the data of the main item and play
play_item = base_item.clone(url=videoitem)
platformtools.play_video(play_item.url, autoplay=True)
play_item = base_item.clone(**videoitem.__dict__)
platformtools.play_video(play_item, autoplay=True)
else:
# If it doesn't come from the video library, just play
platformtools.play_video(videoitem, autoplay=True)