Do not play trailers for resumable movies using playback via PMS

This commit is contained in:
croneter 2018-03-15 11:30:15 +01:00
parent f0c1562ab5
commit 229b0491b6

View file

@ -105,8 +105,9 @@ def _playback_init(plex_id, plex_type, playqueue, pos):
# playqueues
# Fail the item we're trying to play now so we can restart the player
_ensure_resolve()
api = API(xml[0])
trailers = False
if (plex_type == v.PLEX_TYPE_MOVIE and not state.RESUME_PLAYBACK and
if (plex_type == v.PLEX_TYPE_MOVIE and not api.resume_point() and
settings('enableCinema') == "true"):
if settings('askCinema') == "true":
# "Play trailers?"