Fix: remove override of previously set libraryId and name

Which caused new videos not to be added to library on automatic update
This commit is contained in:
GrégoireDruant 2023-06-13 14:31:46 +02:00
parent eb6891871d
commit 9bfbe7eaa4

View File

@ -86,8 +86,6 @@ 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 [])]