From 21e7a9cadac0b6a8f25ad5d31bb14acc5c889eeb Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 18 Jun 2017 23:14:03 -0500 Subject: [PATCH] Fix music extension/Fix music playback report --- resources/lib/kodimonitor.py | 2 +- resources/lib/objects/music.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 7bef6ce4..39c5a04f 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -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() diff --git a/resources/lib/objects/music.py b/resources/lib/objects/music.py index 85e0429c..120d5a2e 100644 --- a/resources/lib/objects/music.py +++ b/resources/lib/objects/music.py @@ -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()