mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix case sensitive issue at calling the log function
This commit is contained in:
parent
17951fa402
commit
2a4e42fba0
1 changed files with 6 additions and 6 deletions
|
@ -67,7 +67,7 @@ class PlayUtils(object):
|
||||||
'ServerId': server_id,
|
'ServerId': server_id,
|
||||||
'ServerAddress': server,
|
'ServerAddress': server,
|
||||||
'ForceTranscode': force_transcode,
|
'ForceTranscode': force_transcode,
|
||||||
'Token': token or TheVoid('GetToken', {'ServerId': server_id}).get()
|
'Token': token or TheVoid('GetToken', {'ServerId': server_id}).get()
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_sources(self, source_id=None):
|
def get_sources(self, source_id=None):
|
||||||
|
@ -118,7 +118,7 @@ class PlayUtils(object):
|
||||||
if resp > -1:
|
if resp > -1:
|
||||||
source = sources[resp]
|
source = sources[resp]
|
||||||
else:
|
else:
|
||||||
log.info("No media source selected.")
|
LOG.info("No media source selected.")
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
source = sources[0]
|
source = sources[0]
|
||||||
|
@ -236,7 +236,7 @@ class PlayUtils(object):
|
||||||
return info['MediaSource']
|
return info['MediaSource']
|
||||||
|
|
||||||
def transcode(self, source, audio=None, subtitle=None):
|
def transcode(self, source, audio=None, subtitle=None):
|
||||||
|
|
||||||
if not 'TranscodingUrl' in source:
|
if not 'TranscodingUrl' in source:
|
||||||
raise Exception("use get_sources to get transcoding url")
|
raise Exception("use get_sources to get transcoding url")
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ class PlayUtils(object):
|
||||||
return self.info['Path']
|
return self.info['Path']
|
||||||
|
|
||||||
def direct_play(self, source):
|
def direct_play(self, source):
|
||||||
|
|
||||||
API = api.API(self.item, self.info['ServerAddress'])
|
API = api.API(self.item, self.info['ServerAddress'])
|
||||||
self.info['Method'] = "DirectPlay"
|
self.info['Method'] = "DirectPlay"
|
||||||
self.info['Path'] = API.get_file_path(source.get('Path'))
|
self.info['Path'] = API.get_file_path(source.get('Path'))
|
||||||
|
@ -272,7 +272,7 @@ class PlayUtils(object):
|
||||||
return self.info['Path']
|
return self.info['Path']
|
||||||
|
|
||||||
def direct_url(self, source):
|
def direct_url(self, source):
|
||||||
|
|
||||||
self.info['Method'] = "DirectStream"
|
self.info['Method'] = "DirectStream"
|
||||||
|
|
||||||
if self.item['Type'] == "Audio":
|
if self.item['Type'] == "Audio":
|
||||||
|
@ -300,7 +300,7 @@ class PlayUtils(object):
|
||||||
|
|
||||||
def get_resolution(self):
|
def get_resolution(self):
|
||||||
return int(xbmc.getInfoLabel('System.ScreenWidth')), int(xbmc.getInfoLabel('System.ScreenHeight'))
|
return int(xbmc.getInfoLabel('System.ScreenWidth')), int(xbmc.getInfoLabel('System.ScreenHeight'))
|
||||||
|
|
||||||
def get_device_profile(self):
|
def get_device_profile(self):
|
||||||
|
|
||||||
''' Get device profile based on the add-on settings.
|
''' Get device profile based on the add-on settings.
|
||||||
|
|
Loading…
Reference in a new issue