From ec2c3622f35e4d42b81098294eac9372d633b430 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 28 Jan 2018 21:55:59 -0600 Subject: [PATCH] Try to skip source selection for trailers --- resources/lib/playutils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 578de9c0..b996b1ad 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -87,12 +87,17 @@ class PlayUtils(): selected_source = media_sources[0] - if self.info.get('MediaSourceId'): + if 'MediaSourceId' in self.info: for source in media_sources: if source['Id'] == self.info['MediaSourceId']: selected_source = source break + elif (self.item['MediaType'] != 'Video' or self.item['Type'] == 'TvChannel' or + self.item.get('SourceType') != 'Library'): + # Do nothing + log.info("Special case, skip media sources selection.") + elif len(media_sources) > 1: # Offer choices sources = []