mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +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:
|
try:
|
||||||
kodi_id = None
|
kodi_id = None
|
||||||
|
|
||||||
if KODI >= 17:
|
if KODI >= 17 and data['item']['type'] != "song":
|
||||||
item = xbmc.Player().getVideoInfoTag()
|
item = xbmc.Player().getVideoInfoTag()
|
||||||
kodi_id = item.getDbId()
|
kodi_id = item.getDbId()
|
||||||
item_type = item.getMediaType()
|
item_type = item.getMediaType()
|
||||||
|
|
|
@ -418,12 +418,7 @@ class Music(Items):
|
||||||
##### GET THE FILE AND PATH #####
|
##### GET THE FILE AND PATH #####
|
||||||
if self.directstream:
|
if self.directstream:
|
||||||
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
path = "%s/emby/Audio/%s/" % (self.server, itemid)
|
||||||
extensions = ['mp3', 'aac', 'ogg', 'oga', 'webma', 'wma', 'flac']
|
filename = "stream.%s?static=true" % item['Container']
|
||||||
|
|
||||||
if 'Container' in item and item['Container'].lower() in extensions:
|
|
||||||
filename = "stream.%s?static=true" % item['Container']
|
|
||||||
else:
|
|
||||||
filename = "stream.mp3?static=true"
|
|
||||||
else:
|
else:
|
||||||
playurl = API.get_file_path()
|
playurl = API.get_file_path()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue