mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix music extension/Fix music playback report
This commit is contained in:
parent
b07d820806
commit
21e7a9cada
2 changed files with 2 additions and 7 deletions
|
@ -94,7 +94,7 @@ class KodiMonitor(xbmc.Monitor):
|
|||
try:
|
||||
kodi_id = None
|
||||
|
||||
if KODI >= 17:
|
||||
if KODI >= 17 and data['item']['type'] != "song":
|
||||
item = xbmc.Player().getVideoInfoTag()
|
||||
kodi_id = item.getDbId()
|
||||
item_type = item.getMediaType()
|
||||
|
|
|
@ -418,12 +418,7 @@ class Music(Items):
|
|||
##### GET THE FILE AND PATH #####
|
||||
if self.directstream:
|
||||
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
||||
extensions = ['mp3', 'aac', 'ogg', 'oga', 'webma', 'wma', 'flac']
|
||||
|
||||
if 'Container' in item and item['Container'].lower() in extensions:
|
||||
filename = "stream.%s?static=true" % item['Container']
|
||||
else:
|
||||
filename = "stream.mp3?static=true"
|
||||
filename = "stream.%s?static=true" % item['Container']
|
||||
else:
|
||||
playurl = API.get_file_path()
|
||||
|
||||
|
|
Loading…
Reference in a new issue