mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix music video scanning
This commit is contained in:
parent
de95807323
commit
e6101b404a
1 changed files with 3 additions and 0 deletions
|
@ -359,6 +359,7 @@ class FullSync(object):
|
||||||
''' Process musicvideos from a single library.
|
''' Process musicvideos from a single library.
|
||||||
'''
|
'''
|
||||||
MusicVideos = self.library.media['MusicVideos']
|
MusicVideos = self.library.media['MusicVideos']
|
||||||
|
processed_ids = []
|
||||||
|
|
||||||
for items in server.get_items(library['Id'], "MusicVideo", False, self.sync['RestorePoint'].get('params')):
|
for items in server.get_items(library['Id'], "MusicVideo", False, self.sync['RestorePoint'].get('params')):
|
||||||
|
|
||||||
|
@ -374,9 +375,11 @@ class FullSync(object):
|
||||||
heading="%s: %s" % (translate('addon_name'), library['Name']),
|
heading="%s: %s" % (translate('addon_name'), library['Name']),
|
||||||
message=mvideo['Name'])
|
message=mvideo['Name'])
|
||||||
obj.musicvideo(mvideo, library=library)
|
obj.musicvideo(mvideo, library=library)
|
||||||
|
processed_ids.append(mvideo['Id'])
|
||||||
|
|
||||||
with self.video_database_locks() as (videodb, jellyfindb):
|
with self.video_database_locks() as (videodb, jellyfindb):
|
||||||
obj = MusicVideos(self.server, jellyfindb, videodb, self.direct_path)
|
obj = MusicVideos(self.server, jellyfindb, videodb, self.direct_path)
|
||||||
|
obj.item_ids = processed_ids
|
||||||
if self.update_library:
|
if self.update_library:
|
||||||
self.musicvideos_compare(library, obj, jellyfindb)
|
self.musicvideos_compare(library, obj, jellyfindb)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue