fixed resume dialog

This commit is contained in:
Marcel van der Veldt 2015-05-02 18:04:32 +02:00
parent f6cd5c9744
commit ba5211dcb8
2 changed files with 4 additions and 84 deletions

View file

@ -49,17 +49,9 @@ class PlaybackUtils():
resume_result = 0
seekTime = 0
#get the resume point from Kodi DB for a Movie
# kodiItem = ReadKodiDB().getKodiMovie(id)
# if kodiItem != None:
# seekTime = int(round(kodiItem['resume'].get("position")))
# else:
# #get the resume point from Kodi DB for an episode
# episodeItem = ReadEmbyDB().getItem(id)
# if episodeItem != None and str(episodeItem["Type"]) == "Episode":
# kodiItem = ReadKodiDB().getKodiEpisodeByMbItem(id,episodeItem["SeriesId"])
# if kodiItem != None:
# seekTime = int(round(kodiItem['resume'].get("position")))
if userData.get("PlaybackPositionTicks") != 0:
reasonableTicks = int(userData.get("PlaybackPositionTicks")) / 1000
seekTime = reasonableTicks / 10000
playurl = PlayUtils().getPlayUrl(server, id, result)
thumbPath = API().getArtwork(result, "Primary")