fix music sync when directstream enabled
This commit is contained in:
parent
cf94305743
commit
0363804c8e
2 changed files with 8 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="1.1.78"
|
version="1.1.79"
|
||||||
provider-name="Emby.media">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -1949,15 +1949,14 @@ class Music(Items):
|
||||||
year = item.get('ProductionYear')
|
year = item.get('ProductionYear')
|
||||||
duration = API.getRuntime()
|
duration = API.getRuntime()
|
||||||
|
|
||||||
#the server only returns the rating based on like/love and not the actual rating from the song
|
|
||||||
rating = userdata['UserRating']
|
|
||||||
|
|
||||||
#the server doesn't support comment on songs so this will always be empty
|
|
||||||
comment = API.getOverview()
|
|
||||||
|
|
||||||
#if enabled, try to get the rating from file and/or emby
|
#if enabled, try to get the rating from file and/or emby
|
||||||
if not self.directstream:
|
if not self.directstream:
|
||||||
rating, comment, hasEmbeddedCover = musicutils.getAdditionalSongTags(itemid, rating, API, kodicursor, emby_db, self.enableimportsongrating, self.enableexportsongrating, self.enableupdatesongrating)
|
rating, comment, hasEmbeddedCover = musicutils.getAdditionalSongTags(itemid, rating, API, kodicursor, emby_db, self.enableimportsongrating, self.enableexportsongrating, self.enableupdatesongrating)
|
||||||
|
else:
|
||||||
|
hasEmbeddedCover = False
|
||||||
|
comment = API.getOverview()
|
||||||
|
rating = userdata['UserRating']
|
||||||
|
|
||||||
|
|
||||||
##### GET THE FILE AND PATH #####
|
##### GET THE FILE AND PATH #####
|
||||||
if self.directstream:
|
if self.directstream:
|
||||||
|
|
Loading…
Reference in a new issue