|
|
@ -443,13 +443,16 @@ class PlexAPI:
|
|
|
|
for pre in data["exclude_prefix"]:
|
|
|
|
for pre in data["exclude_prefix"]:
|
|
|
|
if col.title.startswith(pre) or (col.titleSort and col.titleSort.startswith(pre)):
|
|
|
|
if col.title.startswith(pre) or (col.titleSort and col.titleSort.startswith(pre)):
|
|
|
|
keep_collection = False
|
|
|
|
keep_collection = False
|
|
|
|
|
|
|
|
logger.info(f"Collection Excluded: {col.title} by prefix {pre}")
|
|
|
|
break
|
|
|
|
break
|
|
|
|
if keep_collection:
|
|
|
|
if keep_collection:
|
|
|
|
for ext in data["exclude"]:
|
|
|
|
for ext in data["exclude"]:
|
|
|
|
if col.title == ext or (col.titleSort and col.titleSort == ext):
|
|
|
|
if col.title == ext or (col.titleSort and col.titleSort == ext):
|
|
|
|
keep_collection = False
|
|
|
|
keep_collection = False
|
|
|
|
|
|
|
|
logger.info(f"Collection Excluded: {col.title} by exact match")
|
|
|
|
break
|
|
|
|
break
|
|
|
|
if keep_collection:
|
|
|
|
if keep_collection:
|
|
|
|
|
|
|
|
logger.info(f"Collection Passed: {col.title}")
|
|
|
|
good_collections.append(col.index)
|
|
|
|
good_collections.append(col.index)
|
|
|
|
all_items = self.get_all()
|
|
|
|
all_items = self.get_all()
|
|
|
|
length = 0
|
|
|
|
length = 0
|
|
|
|