mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
fixed: wrong ratings were synced
This commit is contained in:
parent
51d5e3733b
commit
d6cb046de1
1 changed files with 12 additions and 12 deletions
|
@ -79,8 +79,8 @@ class WriteKodiDB():
|
||||||
|
|
||||||
self.getPropertyParamArray_Batched(KodiItem, "tag", MBitem.get("Tag"), params)
|
self.getPropertyParamArray_Batched(KodiItem, "tag", MBitem.get("Tag"), params)
|
||||||
|
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
self.getPropertyParam_Batched(KodiItem, "rating", int(MBitem.get("CriticRating"))/10, params)
|
self.getPropertyParam_Batched(KodiItem, "rating", int(MBitem.get(CommunityRating))/10, params)
|
||||||
|
|
||||||
#self.getPropertyParam_Batched(KodiItem, "plot", MBitem.get("Overview"), params)
|
#self.getPropertyParam_Batched(KodiItem, "plot", MBitem.get("Overview"), params)
|
||||||
self.getPropertyParam_Batched(KodiItem, "plotoutline", MBitem.get("ShortOverview"), params)
|
self.getPropertyParam_Batched(KodiItem, "plotoutline", MBitem.get("ShortOverview"), params)
|
||||||
|
@ -319,8 +319,8 @@ class WriteKodiDB():
|
||||||
changes |= self.updateProperty(KodiItem,"mpaa",MBitem.get("OfficialRating"),"tvshow")
|
changes |= self.updateProperty(KodiItem,"mpaa",MBitem.get("OfficialRating"),"tvshow")
|
||||||
changes |= self.updateProperty(KodiItem,"lastplayed",MBitem.get("LastPlayedDate"),"tvshow")
|
changes |= self.updateProperty(KodiItem,"lastplayed",MBitem.get("LastPlayedDate"),"tvshow")
|
||||||
|
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
changes |= self.updateProperty(KodiItem,"rating",int(MBitem.get("CriticRating"))/10,"tvshow")
|
changes |= self.updateProperty(KodiItem,"rating",int(MBitem.get("CommunityRating"))/10,"tvshow")
|
||||||
|
|
||||||
changes |= self.updateProperty(KodiItem,"sorttitle",utils.convertEncoding(MBitem["SortName"]),"tvshow")
|
changes |= self.updateProperty(KodiItem,"sorttitle",utils.convertEncoding(MBitem["SortName"]),"tvshow")
|
||||||
changes |= self.updateProperty(KodiItem,"title",utils.convertEncoding(MBitem["Name"]),"tvshow")
|
changes |= self.updateProperty(KodiItem,"title",utils.convertEncoding(MBitem["Name"]),"tvshow")
|
||||||
|
@ -394,8 +394,8 @@ class WriteKodiDB():
|
||||||
if KodiItem["firstaired"] != premieredate:
|
if KodiItem["firstaired"] != premieredate:
|
||||||
changes |= self.updateProperty(KodiItem,"firstaired",firstaired,"episode")
|
changes |= self.updateProperty(KodiItem,"firstaired",firstaired,"episode")
|
||||||
|
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
changes |= self.updateProperty(KodiItem,"rating",int(MBitem.get("CriticRating"))/10,"episode")
|
changes |= self.updateProperty(KodiItem,"rating",int(MBitem.get("CommunityRating"))/10,"episode")
|
||||||
|
|
||||||
if MBitem.get("ParentIndexNumber") != None:
|
if MBitem.get("ParentIndexNumber") != None:
|
||||||
season = int(MBitem.get("ParentIndexNumber"))
|
season = int(MBitem.get("ParentIndexNumber"))
|
||||||
|
@ -740,8 +740,8 @@ class WriteKodiDB():
|
||||||
title = utils.convertEncoding(MBitem["Name"])
|
title = utils.convertEncoding(MBitem["Name"])
|
||||||
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
||||||
year = MBitem.get("ProductionYear")
|
year = MBitem.get("ProductionYear")
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
rating = int(MBitem.get("CriticRating"))/10
|
rating = int(MBitem.get("CommunityRating"))/10
|
||||||
else:
|
else:
|
||||||
rating = None
|
rating = None
|
||||||
if MBitem.get("ShortOverview") != None:
|
if MBitem.get("ShortOverview") != None:
|
||||||
|
@ -959,8 +959,8 @@ class WriteKodiDB():
|
||||||
plot = utils.convertEncoding(API().getOverview(MBitem))
|
plot = utils.convertEncoding(API().getOverview(MBitem))
|
||||||
thumb = "<thumb>" + API().getArtwork(MBitem, "Primary") + "</thumb>"
|
thumb = "<thumb>" + API().getArtwork(MBitem, "Primary") + "</thumb>"
|
||||||
title = utils.convertEncoding(MBitem["Name"])
|
title = utils.convertEncoding(MBitem["Name"])
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
rating = int(MBitem.get("CriticRating"))/10
|
rating = int(MBitem.get("CommunityRating"))/10
|
||||||
else:
|
else:
|
||||||
rating = None
|
rating = None
|
||||||
|
|
||||||
|
@ -1064,8 +1064,8 @@ class WriteKodiDB():
|
||||||
fanart = "<fanart>" + API().getArtwork(MBitem, "Backdrop") + "</fanart>"
|
fanart = "<fanart>" + API().getArtwork(MBitem, "Backdrop") + "</fanart>"
|
||||||
title = utils.convertEncoding(MBitem["Name"])
|
title = utils.convertEncoding(MBitem["Name"])
|
||||||
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
||||||
if MBitem.get("CriticRating") != None:
|
if MBitem.get("CommunityRating") != None:
|
||||||
rating = int(MBitem.get("CriticRating"))/10
|
rating = int(MBitem.get("CommunityRating"))/10
|
||||||
else:
|
else:
|
||||||
rating = None
|
rating = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue