mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Try to skip source selection for trailers
This commit is contained in:
parent
b0a2ab1aae
commit
ec2c3622f3
1 changed files with 6 additions and 1 deletions
|
@ -87,12 +87,17 @@ class PlayUtils():
|
||||||
|
|
||||||
selected_source = media_sources[0]
|
selected_source = media_sources[0]
|
||||||
|
|
||||||
if self.info.get('MediaSourceId'):
|
if 'MediaSourceId' in self.info:
|
||||||
for source in media_sources:
|
for source in media_sources:
|
||||||
if source['Id'] == self.info['MediaSourceId']:
|
if source['Id'] == self.info['MediaSourceId']:
|
||||||
selected_source = source
|
selected_source = source
|
||||||
break
|
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:
|
elif len(media_sources) > 1:
|
||||||
# Offer choices
|
# Offer choices
|
||||||
sources = []
|
sources = []
|
||||||
|
|
Loading…
Reference in a new issue