Add manual transcode option

Update queue playlist
This commit is contained in:
angelblue05 2018-09-09 00:44:23 -05:00
parent cdb3b54026
commit 24ab27bbe2
8 changed files with 212 additions and 46 deletions

View file

@ -254,9 +254,14 @@ class Player(xbmc.Player):
''' Report playback progress to emby server.
Check if the user seek.
'''
current_file = self.getPlayingFile()
try:
current_file = self.getPlayingFile()
if current_file not in self.played:
return
except Exception as error:
LOG.error(error)
if current_file not in self.played:
return
item = self.played[current_file]
@ -366,7 +371,7 @@ class Player(xbmc.Player):
elif item['PlayMethod'] == 'Transcode':
LOG.info("Transcoding for %s terminated.", item['Id'])
LOG.info("<[ transcode/%s ]", item['Id'])
item['Server']['api'].close_transcode(item['DeviceId'])