mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Cleaner comparison for resume variable
This commit is contained in:
parent
4b40c75c91
commit
942ed0c407
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class Actions(object):
|
|||
|
||||
# Automatically resume if the item is in progress (casting from server)
|
||||
resume = item['UserData'].get('PlaybackPositionTicks')
|
||||
item["resumePlayback"] = True if resume else False
|
||||
item["resumePlayback"] = bool(resume)
|
||||
|
||||
play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client)
|
||||
source = play.select_source(play.get_sources())
|
||||
|
|
Loading…
Reference in a new issue