mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
cleanup
This commit is contained in:
parent
5952c37bfa
commit
1b4f4e0b26
1 changed files with 2 additions and 6 deletions
|
@ -340,19 +340,17 @@ class TVShows(Items):
|
||||||
|
|
||||||
##### UPDATE THE TVSHOW #####
|
##### UPDATE THE TVSHOW #####
|
||||||
if update_item:
|
if update_item:
|
||||||
log.info("UPDATE tvshow itemid: %s - Title: %s - ShowID: %s", itemid, title, showid)
|
log.info("UPDATE tvshow itemid: %s - Title: %s", itemid, title)
|
||||||
|
|
||||||
# update new ratings Kodi 17
|
# update new ratings Kodi 17
|
||||||
if self.kodi_version > 16:
|
if self.kodi_version > 16:
|
||||||
ratingid = self.kodi_db.get_ratingid(showid)
|
ratingid = self.kodi_db.get_ratingid(showid)
|
||||||
log.info("RETURNED ratingid: %s", ratingid)
|
|
||||||
|
|
||||||
self.kodi_db.update_ratings(showid, "tvshow", "default", rating, votecount,ratingid)
|
self.kodi_db.update_ratings(showid, "tvshow", "default", rating, votecount,ratingid)
|
||||||
|
|
||||||
# update new uniqueid Kodi 17
|
# update new uniqueid Kodi 17
|
||||||
if self.kodi_version > 16:
|
if self.kodi_version > 16:
|
||||||
uniqueid = self.kodi_db.get_uniqueid(showid)
|
uniqueid = self.kodi_db.get_uniqueid(showid)
|
||||||
log.info("RETURNED uniqueid: %s", uniqueid)
|
|
||||||
|
|
||||||
self.kodi_db.update_uniqueid(showid, "tvshow", imdb, "imdb",uniqueid)
|
self.kodi_db.update_uniqueid(showid, "tvshow", imdb, "imdb",uniqueid)
|
||||||
|
|
||||||
|
@ -607,19 +605,17 @@ class TVShows(Items):
|
||||||
|
|
||||||
##### UPDATE THE EPISODE #####
|
##### UPDATE THE EPISODE #####
|
||||||
if update_item:
|
if update_item:
|
||||||
log.info("UPDATE episode itemid: %s - Title: %s - EpisodeD: %s", itemid, title, episodeid)
|
log.info("UPDATE episode itemid: %s - Title: %s", itemid, title)
|
||||||
|
|
||||||
# update new ratings Kodi 17
|
# update new ratings Kodi 17
|
||||||
if self.kodi_version >= 17:
|
if self.kodi_version >= 17:
|
||||||
ratingid = self.kodi_db.get_ratingid(episodeid)
|
ratingid = self.kodi_db.get_ratingid(episodeid)
|
||||||
log.info("RETURNED ratingid: %s", ratingid)
|
|
||||||
|
|
||||||
self.kodi_db.update_ratings(episodeid, "episode", "default", rating, votecount,ratingid)
|
self.kodi_db.update_ratings(episodeid, "episode", "default", rating, votecount,ratingid)
|
||||||
|
|
||||||
# update new uniqueid Kodi 17
|
# update new uniqueid Kodi 17
|
||||||
if self.kodi_version >= 17:
|
if self.kodi_version >= 17:
|
||||||
uniqueid = self.kodi_db.get_uniqueid(episodeid)
|
uniqueid = self.kodi_db.get_uniqueid(episodeid)
|
||||||
log.info("RETURNED uniqueid: %s", uniqueid)
|
|
||||||
|
|
||||||
self.kodi_db.update_uniqueid(episodeid, "episode", tvdb, "tvdb",uniqueid)
|
self.kodi_db.update_uniqueid(episodeid, "episode", tvdb, "tvdb",uniqueid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue