mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Merge pull request #351 from oddstr13/pr-scan-fast-and-break-things-1
Fix UserDataWorker
This commit is contained in:
commit
f5d2318b00
2 changed files with 4 additions and 3 deletions
|
@ -546,7 +546,6 @@ def find_library(server, item):
|
|||
ancestors = server.jellyfin.get_ancestors(item['Id'])
|
||||
for ancestor in ancestors:
|
||||
if ancestor['Id'] in sync['Whitelist']:
|
||||
LOG.info('Ancestor Found')
|
||||
return ancestor
|
||||
|
||||
LOG.error('No ancestor found, not syncing item with ID: {}'.format(item['Id']))
|
||||
|
|
|
@ -652,12 +652,14 @@ class UserDataWorker(threading.Thread):
|
|||
|
||||
is_done = False
|
||||
|
||||
def __init__(self, queue, lock, database, *args):
|
||||
def __init__(self, queue, lock, database, server, direct_path):
|
||||
|
||||
self.queue = queue
|
||||
self.lock = lock
|
||||
self.database = Database(database)
|
||||
self.args = args
|
||||
self.server = server
|
||||
self.direct_path = direct_path
|
||||
|
||||
threading.Thread.__init__(self)
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in a new issue