Fix music extension/Fix music playback report

This commit is contained in:
angelblue05 2017-06-18 23:14:03 -05:00
parent b07d820806
commit 21e7a9cada
2 changed files with 2 additions and 7 deletions

View file

@ -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()

View file

@ -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"
else:
playurl = API.get_file_path()