mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Set up subtitles window prop
This commit is contained in:
parent
c85fbcffd4
commit
a88db12e8f
1 changed files with 4 additions and 4 deletions
|
@ -64,10 +64,6 @@ class PlayUtils():
|
||||||
'mediasource_id': info.get('Id') or self.item['Id']
|
'mediasource_id': info.get('Id') or self.item['Id']
|
||||||
})
|
})
|
||||||
|
|
||||||
if self.method == "DirectPlay":
|
|
||||||
# Log filename, used by other addons eg subtitles which require the file name
|
|
||||||
window('embyfilename', value=url)
|
|
||||||
|
|
||||||
if 'RequiredHttpHeaders' in info and 'User-Agent' in info['RequiredHttpHeaders']:
|
if 'RequiredHttpHeaders' in info and 'User-Agent' in info['RequiredHttpHeaders']:
|
||||||
self.listitem.setProperty('User-Agent', info['RequiredHttpHeaders']['User-Agent'])
|
self.listitem.setProperty('User-Agent', info['RequiredHttpHeaders']['User-Agent'])
|
||||||
|
|
||||||
|
@ -139,6 +135,10 @@ class PlayUtils():
|
||||||
''' Because we posted our deviceprofile to the server, only streams will be
|
''' Because we posted our deviceprofile to the server, only streams will be
|
||||||
returned that can actually be played by this client so no need to check bitrates etc.
|
returned that can actually be played by this client so no need to check bitrates etc.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# Log filename, used by other addons eg subtitles which require the file name
|
||||||
|
window('embyfilename', value=self.get_direct_path(source))
|
||||||
|
|
||||||
if (not self.force_transcode and (self.is_strm(source) or self.is_h265(source) or
|
if (not self.force_transcode and (self.is_strm(source) or self.is_h265(source) or
|
||||||
(source['SupportsDirectPlay'] and settings('playFromStream') == "false" and self.is_file_exists(source)))):
|
(source['SupportsDirectPlay'] and settings('playFromStream') == "false" and self.is_file_exists(source)))):
|
||||||
# Do nothing, path is updated with our verification if applies.
|
# Do nothing, path is updated with our verification if applies.
|
||||||
|
|
Loading…
Reference in a new issue