Revert "Fix: remove override of previously set libraryId and name"

This reverts commit d1fab6cf39.
This commit is contained in:
GrégoireDruant 2023-06-13 14:31:46 +02:00
parent 748683024d
commit 628debe984

View file

@ -86,6 +86,8 @@ class MusicVideos(KodiDb):
obj['Year'] = int(str(obj['Year'])[:4])
obj['Path'] = API.get_file_path(obj['Path'])
obj['LibraryId'] = self.library['Id']
obj['LibraryName'] = self.library['Name']
obj['Genres'] = obj['Genres'] or []
obj['ArtistItems'] = obj['ArtistItems'] or []
obj['Studios'] = [API.validate_studio(studio) for studio in (obj['Studios'] or [])]