Skip to content

Commit

Permalink
Merge pull request #533 from quickmic/next-gen-dev-python3
Browse files Browse the repository at this point in the history
10.0.39, review changelog for details
  • Loading branch information
quickmic authored Jul 12, 2024
2 parents a42e25d + cc15af6 commit 5081f3b
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 43 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8' standalone="yes"?>
<addon id="plugin.service.emby-next-gen" name="Emby for Kodi Next Gen" version="10.0.38" provider-name="quickmic">
<addon id="plugin.service.emby-next-gen" name="Emby for Kodi Next Gen" version="10.0.39" provider-name="quickmic">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.dateutil" version="2.8.1" />
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
10.0.39
=============
change log modes



10.0.38
=============
rename dialog files
Expand Down
2 changes: 1 addition & 1 deletion core/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def change(self, Item):
KodiItemIds.append(str(KodiItemId))
self.SQLs["emby"].add_reference_audio(Item['Id'], Item['LibraryId'], KodiItemIds, Item['UserData']['IsFavorite'], Item['Path'], Item['KodiPathId'], LibraryIds)
self.set_links(Item, KodiItemId)
xbmc.log(f"EMBY.core.audio: ADD [{Item['KodiPathId']} / {KodiAlbumId} / {KodiItemId}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.audio: ADD [{Item['KodiPathId']} / {KodiAlbumId} / {KodiItemId}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG
else:
self.SQLs["emby"].update_reference_generic(Item['UserData']['IsFavorite'], Item['Id'], "Audio", Item['LibraryId'])

Expand Down
6 changes: 3 additions & 3 deletions core/boxsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ def change(self, Item):
if str(ContentItemKodiId) in CurrentBoxSetContent:
CurrentBoxSetContent.remove(str(ContentItemKodiId))

xbmc.log(f"EMBY.core.boxsets: ADD to Kodi set [{Item['KodiItemId']}] {ContentAssignedToBoxset['Name']}: {ContentAssignedToBoxset['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.boxsets: ADD to Kodi set [{Item['KodiItemId']}] {ContentAssignedToBoxset['Name']}: {ContentAssignedToBoxset['Id']}", 0) # LOGDEBUG
self.SQLs["video"].set_boxset(Item['KodiItemId'], ContentItemKodiId) # assign boxset to movie
BoxSetKodiParentIds += (str(ContentItemKodiId),)

# Assign content to collection tag
if utils.BoxSetsToTags and ContentItemKodiId:
common.set_Tag_links(ContentItemKodiId, self.SQLs, KodiTypeMapping[ContentAssignedToBoxset['Type']], TagItems)
xbmc.log(f"EMBY.core.boxsets: ADD to tag [{Item['KodiItemId']}] {ContentAssignedToBoxset['Name']}: {ContentAssignedToBoxset['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.boxsets: ADD to tag [{Item['KodiItemId']}] {ContentAssignedToBoxset['Name']}: {ContentAssignedToBoxset['Id']}", 0) # LOGDEBUG

# Delete remove content from boxsets
for KodiContentId in CurrentBoxSetContent:
Expand All @@ -72,7 +72,7 @@ def change(self, Item):
Item['KodiParentId'] = ",".join(BoxSetKodiParentIds)
self.SQLs["emby"].add_reference_boxset(Item['Id'], Item['LibraryId'], Item['KodiItemId'], Item['UserData']['IsFavorite'], Item['KodiParentId'])
self.set_favorite(Item['UserData']['IsFavorite'], Item['KodiItemId'], Item['Id'])
xbmc.log(f"EMBY.core.boxsets: UPDATE [{Item['Id']}] {Item['KodiItemId']} {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.boxsets: UPDATE [{Item['Id']}] {Item['KodiItemId']} {Item['Name']}", 0) # LOGDEBUG
return True

# This updates: Favorite, LastPlayedDate, PlaybackPositionTicks
Expand Down
2 changes: 1 addition & 1 deletion core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def SwopMediaSources(Item):

if len(Item['MediaSources']) > 1:
if Item['MediaSources'][0].get('Video3DFormat'):
xbmc.log(f"EMBY.core.common: 3D detected, swap MediaSources {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.common: 3D detected, swap MediaSources {Item['Name']}", 0) # LOGDEBUG
Item0 = Item['MediaSources'][0]
Item1 = Item['MediaSources'][1]
Item['MediaSources'][0] = Item1
Expand Down
4 changes: 2 additions & 2 deletions core/episode.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def change(self, Item):
if Item['UpdateItem']:
self.SQLs["video"].update_episode(Item['KodiItemId'], Item['KodiFileId'], Item['KodiName'], Item['Overview'], Item['KodiRatingId'], Item['Writers'], Item['KodiPremiereDate'], Item['KodiArtwork']['thumb'], Item['KodiRunTimeTicks'], Item['Directors'], Item['ParentIndexNumber'], Item['IndexNumber'], Item['OriginalTitle'], Item['SortParentIndexNumber'], Item['SortIndexNumber'], KodiPath, Item['KodiFilename'], Item['KodiPathId'], Item['KodiUniqueId'], Item['KodiParentId'], KodiSeasonId, Item['KodiPlayCount'], Item['KodiLastPlayedDate'], Item['KodiStackedFilename'], Item['KodiDateCreated'])
self.SQLs["emby"].update_reference_episode(Item['Id'], Item['UserData']['IsFavorite'], Item['KodiParentId'], Item['PresentationUniqueKey'], Item['IntroStartPositionTicks'], Item['IntroEndPositionTicks'], Item['LibraryId'])
xbmc.log(f"EMBY.core.episode: UPDATE [{Item['KodiParentId']} / {KodiSeasonId} / {Item['KodiItemId']} / {Item['KodiFileId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.episode: UPDATE [{Item['KodiParentId']} / {KodiSeasonId} / {Item['KodiItemId']} / {Item['KodiFileId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG
else:
self.SQLs["video"].add_episode(Item['KodiItemId'], Item['KodiFileId'], Item['Name'], Item['Overview'], Item['KodiRatingId'], Item['Writers'], Item['KodiPremiereDate'], Item['KodiArtwork']['thumb'], Item['KodiRunTimeTicks'], Item['Directors'], Item['ParentIndexNumber'], Item['IndexNumber'], Item['OriginalTitle'], Item['SortParentIndexNumber'], Item['SortIndexNumber'], Item['KodiPath'], Item['KodiFilename'], Item['KodiPathId'], Item['KodiUniqueId'], Item['KodiParentId'], KodiSeasonId, Item['KodiFilename'], Item['KodiDateCreated'], Item['KodiPlayCount'], Item['KodiLastPlayedDate'], Item['ChapterInfo'], Item['KodiStackedFilename'])
self.SQLs["emby"].add_reference_episode(Item['Id'], Item['LibraryId'], Item['KodiItemId'], Item['UserData']['IsFavorite'], Item['KodiFileId'], Item['KodiParentId'], Item['PresentationUniqueKey'], Item['Path'], Item['KodiPathId'], Item['IntroStartPositionTicks'], Item['IntroEndPositionTicks'])
xbmc.log(f"EMBY.core.episode: ADD [{Item['KodiParentId']} / {KodiSeasonId} / {Item['KodiItemId']} / {Item['KodiFileId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.episode: ADD [{Item['KodiParentId']} / {KodiSeasonId} / {Item['KodiItemId']} / {Item['KodiFileId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG

self.SQLs["emby"].add_multiversion(Item, "Episode", self.EmbyServer.API, self.SQLs)
utils.FavoriteQueue.put(((common.set_Favorites_Artwork_Overlay("Episode", "TV Shows", Item['Id'], self.EmbyServer.ServerData['ServerId'], Item['KodiArtwork']['favourite']), Item['UserData']['IsFavorite'], f"{Item['KodiPath']}{Item['KodiFilename']}", Item['Name'], "media", 0),))
Expand Down
2 changes: 1 addition & 1 deletion core/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def change(self, Item):
Path = f"{Item['Path']}\\"

self.SQLs["emby"].add_reference_folder(Item['Id'], Item['LibraryId'], Path)
xbmc.log(f"EMBY.core.folder: ADD OR REPLACE {Item['Id']}: {Path}", 1) # LOGINFO
xbmc.log(f"EMBY.core.folder: ADD OR REPLACE {Item['Id']}: {Path}", 0) # LOGDEBUG

return True

Expand Down
4 changes: 2 additions & 2 deletions core/genre.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def change(self, Item):

self.SQLs["video"].update_genre(Item['Name'], Item['KodiItemId'])
self.SQLs["emby"].update_reference_genre(Item['Id'], isFavorite, ImageUrl, Item['LibraryId'])
xbmc.log(f"EMBY.core.gerne: UPDATE [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.gerne: UPDATE [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG
else:
Item['KodiItemId'] = self.SQLs["video"].get_add_genre(Item['Name'])
self.SQLs["emby"].add_reference_genre(Item['Id'], Item['LibraryId'], Item['KodiItemId'], isFavorite, ImageUrl)
xbmc.log(f"EMBY.core.gerne: ADD [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.gerne: ADD [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

self.set_favorite(isFavorite, Item['KodiItemId'], ImageUrl, Item['Id'])
return not Item['UpdateItem']
Expand Down
4 changes: 2 additions & 2 deletions core/movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ def change(self, Item, StartSync=False):
if Item['UpdateItem']:
self.SQLs["video"].update_movie(Item['KodiItemId'], Item['KodiFileId'], Item['KodiName'], Item['Overview'], Item['ShortOverview'], Item['Tagline'], Item['KodiRatingId'], Item['Writers'], Item['KodiArtwork']['poster'], Item['KodiUniqueId'], Item['KodiSortName'], Item['KodiRunTimeTicks'], Item['OfficialRating'], Item['Genre'], Item['Directors'], Item['OriginalTitle'], Item['Studio'], Item['Trailer'], Item['KodiArtwork']['fanart'].get('fanart', None), Item['ProductionLocations'][0], Item['KodiPremiereDate'], Item['KodiPlayCount'], Item['KodiLastPlayedDate'], None, Item['KodiFilename'], Item['KodiStackedFilename'], Item['KodiDateCreated'])
self.SQLs["emby"].update_reference_movie_musicvideo(Item['Id'], "Movie", Item['UserData']['IsFavorite'], Item['PresentationUniqueKey'], Item['LibraryId'])
xbmc.log(f"EMBY.core.movies: UPDATE [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.movies: UPDATE [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG
else:
self.SQLs["video"].add_movie(Item['KodiItemId'], Item['KodiFileId'], Item['Name'], Item['Overview'], Item['ShortOverview'], Item['Tagline'], Item['KodiRatingId'], Item['Writers'], Item['KodiArtwork']['poster'], Item['KodiUniqueId'], Item['SortName'], Item['KodiRunTimeTicks'], Item['OfficialRating'], Item['Genre'], Item['Directors'], Item['OriginalTitle'], Item['Studio'], Item['Trailer'], Item['KodiArtwork']['fanart'].get('fanart', None), Item['ProductionLocations'][0], Item['KodiPath'], Item['KodiPathId'], Item['KodiPremiereDate'], Item['KodiFilename'], Item['KodiDateCreated'], Item['KodiPlayCount'], Item['KodiLastPlayedDate'], None, Item['KodiStackedFilename'], Item['ChapterInfo'])
self.SQLs["emby"].add_reference_movie_musicvideo(Item['Id'], Item['LibraryId'], "Movie", Item['KodiItemId'], Item['UserData']['IsFavorite'], Item['KodiFileId'], Item['PresentationUniqueKey'], Item['Path'], Item['KodiPathId'])
xbmc.log(f"EMBY.core.movies: ADD [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.movies: ADD [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG

common.update_boxsets(StartSync, Item['ParentId'], Item['LibraryId'], self.SQLs, self.EmbyServer) # Update Boxset

Expand Down
6 changes: 3 additions & 3 deletions core/musicalbum.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def change(self, Item):

if Item['AlbumArtist'].lower() in ("various artists", "various", "various items", "sountrack", "xvarious artistsx"):
Compilation = 1
xbmc.log(f"EMBY.core.musicalbum: Compilation detected: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicalbum: Compilation detected: {Item['Name']}", 0) # LOGDEBUG

if Item['KodiItemIds']:
KodiItemIds = Item['KodiItemIds'].split(",")
Expand All @@ -56,7 +56,7 @@ def change(self, Item):
common.set_MusicArtist_links(KodiItemIds[Index], self.SQLs, Item["AlbumArtists"], LibraryId, None)
self.SQLs["music"].common_db.add_artwork(Item['KodiArtwork'], KodiItemIds[Index], "album")
utils.FavoriteQueue.put(((common.set_Favorites_Artwork_Overlay("Album", "Songs", Item['Id'], self.EmbyServer.ServerData['ServerId'], Item['KodiArtwork']['favourite']), isFavorite, f"musicdb://albums/{KodiItemIds[Index]}/", Item['Name'], "window", 10502),))
xbmc.log(f"EMBY.core.musicalbum: UPDATE [{KodiItemIds[Index]}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicalbum: UPDATE [{KodiItemIds[Index]}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

# New library (insert new Kodi record)
if Item['LibraryId'] not in LibraryIds:
Expand All @@ -65,7 +65,7 @@ def change(self, Item):
LibraryIds.append(str(Item['LibraryId']))
KodiItemIds.append(str(KodiItemId))
self.SQLs["emby"].add_reference_musicalbum(Item['Id'], Item['LibraryId'], KodiItemIds, isFavorite, LibraryIds)
xbmc.log(f"EMBY.core.musicalbum: ADD [{KodiItemId}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicalbum: ADD [{KodiItemId}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG
common.set_MusicArtist_links(KodiItemId, self.SQLs, Item["AlbumArtists"], Item['LibraryId'], None)
self.SQLs["music"].common_db.add_artwork(Item['KodiArtwork'], KodiItemId, "album")
utils.FavoriteQueue.put(((common.set_Favorites_Artwork_Overlay("Album", "Songs", Item['Id'], self.EmbyServer.ServerData['ServerId'], Item['KodiArtwork']['favourite']), isFavorite, f"musicdb://albums/{KodiItemId}/", Item['Name'], "window", 10502),))
Expand Down
4 changes: 2 additions & 2 deletions core/musicartist.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def change(self, Item):
self.SQLs[KodiDBs[Index]].update_artist(KodiItemIdByDatabase, Item['Name'], Item['ProviderIds']['MusicBrainzArtist'], Item['MusicGenre'], Item['Overview'], Item['KodiArtwork']['thumb'], Item['KodiLastScraped'], Item['SortName'], Item['KodiDateCreated'])

self.set_favorite(KodiItemIdByDatabase, isFavorite, KodiDBs[Index], Item['Id'])
xbmc.log(f"EMBY.core.musicartist: UPDATE ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicartist: UPDATE ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

# New library (insert new Kodi record)
for Index in range(2):
Expand All @@ -82,7 +82,7 @@ def change(self, Item):

self.set_favorite(KodiItemIds[Index][-1], isFavorite, KodiDBs[Index], Item['Id'])
NewItem = True
xbmc.log(f"EMBY.core.musicartist: ADD ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicartist: ADD ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

KodiItemIds[1] = ",".join(KodiItemIds[1])
KodiItemIds[0] = ",".join(KodiItemIds[0])
Expand Down
4 changes: 2 additions & 2 deletions core/musicgenre.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def change(self, Item):
if KodiItemIds[Index] and KodiDBs[Index] in self.SQLs: # Update
self.SQLs[KodiDBs[Index]].update_genre(Item['Name'], KodiItemIds[Index])
self.set_favorite(isFavorite, KodiDBs[Index], KodiItemIds[Index], ImageUrl, Item['Id'])
xbmc.log(f"EMBY.core.musicgenre: UPDATE ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicgenre: UPDATE ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

# New library (insert new Kodi record)
for Index in range(2):
Expand All @@ -53,7 +53,7 @@ def change(self, Item):
KodiItemIds[Index] = str(self.SQLs[KodiDBs[Index]].get_add_genre(Item['Name']))
self.set_favorite(isFavorite, KodiDBs[Index], KodiItemIds[Index], ImageUrl, Item['Id'])
NewItem = True
xbmc.log(f"EMBY.core.musicgenre: ADD ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicgenre: ADD ({KodiDBs[Index]}) {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

LibraryIds[1] = ",".join(LibraryIds[1])
LibraryIds[0] = ",".join(LibraryIds[0])
Expand Down
4 changes: 2 additions & 2 deletions core/musicvideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def change(self, Item, StartSync=False):
if Item['UpdateItem']:
self.SQLs["video"].update_musicvideos(Item['KodiItemId'], Item['KodiFileId'], Item['KodiName'], Item['KodiArtwork']['poster'], Item['KodiRunTimeTicks'], Item['Directors'], Item['Studio'], Item['Overview'], Item['Album'], Item['MusicArtist'], Item['MusicGenre'], Item['IndexNumber'], Item['KodiPremiereDate'], Item['KodiPlayCount'], Item['KodiLastPlayedDate'], Item['KodiFilename'], Item['KodiStackedFilename'], Item['KodiDateCreated'])
self.SQLs["emby"].update_reference_movie_musicvideo(Item['Id'], "MusicVideo", Item['UserData']['IsFavorite'], Item['PresentationUniqueKey'], Item['LibraryId'])
xbmc.log(f"EMBY.core.musicvideo: UPDATE [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicvideo: UPDATE [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG
else:
self.SQLs["video"].add_musicvideos(Item['KodiItemId'], Item['KodiFileId'], Item['Name'], Item['KodiArtwork']['poster'], Item['KodiRunTimeTicks'], Item['Directors'], Item['Studio'], Item['Overview'], Item['Album'], Item['MusicArtist'], Item['MusicGenre'], Item['IndexNumber'], f"{Item['KodiPath']}{Item['KodiFilename']}", Item['KodiPathId'], Item['KodiPremiereDate'], Item['KodiDateCreated'], Item['KodiPlayCount'], Item['KodiLastPlayedDate'], Item['KodiFilename'], Item['KodiStackedFilename'], Item['ChapterInfo'])
self.SQLs["emby"].add_reference_movie_musicvideo(Item['Id'], Item['LibraryId'], "Musicvideo", Item['KodiItemId'], Item['UserData']['IsFavorite'], Item['KodiFileId'], Item['PresentationUniqueKey'], Item['Path'], Item['KodiPathId'])
xbmc.log(f"EMBY.core.musicvideo: ADD [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.musicvideo: ADD [{Item['KodiPathId']} / {Item['KodiFileId']} / {Item['KodiItemId']}] {Item['Id']}: {Item['Name']}", 0) # LOGDEBUG

common.update_boxsets(StartSync, Item['ParentId'], Item['LibraryId'], self.SQLs, self.EmbyServer) # Update Boxset
self.SQLs["emby"].add_multiversion(Item, "MusicVideo", self.EmbyServer.API, self.SQLs)
Expand Down
4 changes: 2 additions & 2 deletions core/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def change(self, Item):
self.SQLs["video"].common_db.delete_artwork(Item['KodiItemId'], "actor")
self.SQLs["video"].update_person(Item['KodiItemId'], Item['Name'], ImageUrl)
self.SQLs["emby"].update_favourite(isFavorite, Item['Id'], "Person")
xbmc.log(f"EMBY.core.person: UPDATE [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.person: UPDATE [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG
else:
Item['KodiItemId'] = self.SQLs["video"].add_person(Item['Name'], ImageUrl)
self.SQLs["emby"].add_reference_metadata(Item['Id'], Item['LibraryId'], "Person", Item['KodiItemId'], isFavorite)
xbmc.log(f"EMBY.core.person: ADD [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 1) # LOGINFO
xbmc.log(f"EMBY.core.person: ADD [{Item['KodiItemId']}] {Item['Name']}: {Item['Id']}", 0) # LOGDEBUG

self.SQLs["video"].common_db.add_artwork(Item['KodiArtwork'], Item['KodiItemId'], "actor")
self.set_favorite(Item['KodiItemId'], isFavorite, Item['Id'])
Expand Down
Loading

0 comments on commit 5081f3b

Please sign in to comment.