Fix AttributeError for Tasks
This commit is contained in:
parent
62c07b2ee0
commit
d5f4ad3e62
1 changed files with 7 additions and 11 deletions
|
@ -78,21 +78,17 @@ class FullSync(backgroundthread.KillableThread, common.libsync_mixin):
|
||||||
"""
|
"""
|
||||||
plex_id = int(xml_item.get('ratingKey'))
|
plex_id = int(xml_item.get('ratingKey'))
|
||||||
if self.new_items_only:
|
if self.new_items_only:
|
||||||
if not self.plex_db.is_recorded(plex_id, self.plex_type):
|
if self.plex_db.is_recorded(plex_id, self.plex_type):
|
||||||
backgroundthread.BGThreader.addTask(
|
return
|
||||||
GetMetadataTask().setup(self.queue,
|
|
||||||
plex_id,
|
|
||||||
self.get_children))
|
|
||||||
else:
|
else:
|
||||||
if self.plex_db.check_checksum(
|
if self.plex_db.check_checksum(
|
||||||
int('%s%s' % (plex_id,
|
int('%s%s' % (plex_id,
|
||||||
xml_item.get('updatedAt')))) is None:
|
xml_item.get('updatedAt')))):
|
||||||
backgroundthread.BGThreader.addTask(
|
|
||||||
GetMetadataTask().setup(self.queue,
|
|
||||||
plex_id,
|
|
||||||
self.get_children))
|
|
||||||
else:
|
|
||||||
self.plex_db.update_last_sync(plex_id, self.last_sync)
|
self.plex_db.update_last_sync(plex_id, self.last_sync)
|
||||||
|
return
|
||||||
|
task = GetMetadataTask()
|
||||||
|
task.setup(self.queue, plex_id, self.get_children)
|
||||||
|
backgroundthread.BGThreader.addTask(task)
|
||||||
|
|
||||||
def process_delete(self):
|
def process_delete(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue