Fix episodes for series pooling

This commit is contained in:
angelblue05 2018-09-23 03:03:15 -05:00
parent 8915773706
commit d54aad726e
9 changed files with 120 additions and 24 deletions

View file

@ -105,9 +105,8 @@ def library_check():
def wrapper(self, item, *args, **kwargs):
from database import get_sync
sync = get_sync()
if kwargs.get('library') is None:
sync = get_sync()
if 'e_item' in kwargs:
try:
@ -131,7 +130,7 @@ def library_check():
break
if view['Id'] not in sync['Whitelist']:
if view['Id'] not in [x.replace('Mixed:', "") for x in sync['Whitelist'] + sync['Libraries']]:
LOG.info("Library %s is not synced. Skip update.", view['Id'])
return

View file

@ -54,7 +54,7 @@ def sources():
try:
files = xml.find('files')
if not files:
if files is None:
files = etree.SubElement(xml, 'files')
for source in xml.findall('.//path'):