Adjust new ask to play trailer setting
Ask only if there should be trailers to be played.
This commit is contained in:
parent
a5562e896b
commit
6ba664037e
1 changed files with 12 additions and 12 deletions
|
@ -125,6 +125,10 @@ class PlaybackUtils():
|
|||
|
||||
if utils.settings('disableCinema') == "false" and not seekTime:
|
||||
# if we have any play them when the movie/show is not being resumed
|
||||
url = "{server}/mediabrowser/Users/{UserId}/Items/%s/Intros?format=json&ImageTypeLimit=1&Fields=Etag" % id
|
||||
intros = doUtils.downloadUrl(url)
|
||||
|
||||
if intros['TotalRecordCount'] != 0:
|
||||
getTrailers = True
|
||||
|
||||
if utils.settings('askCinema') == "true":
|
||||
|
@ -135,10 +139,6 @@ class PlaybackUtils():
|
|||
self.logMsg("Skip trailers.", 1)
|
||||
|
||||
if getTrailers:
|
||||
url = "{server}/mediabrowser/Users/{UserId}/Items/%s/Intros?format=json&ImageTypeLimit=1&Fields=Etag" % id
|
||||
intros = doUtils.downloadUrl(url)
|
||||
|
||||
if intros['TotalRecordCount'] != 0:
|
||||
for intro in intros['Items']:
|
||||
# The server randomly returns intros, process them.
|
||||
introId = intro['Id']
|
||||
|
|
Loading…
Reference in a new issue