Skip to content

Conversation

@trancefam
Copy link

I wanted to use this to build a channel for a "smart collection" that contained the term "Animation"; however it failed because .search() includes results when it isn't an exact match, so I also got results back for "Sony Animation", "Disney Animation", etc. collections, which caused the script to fail. These edits fix this, and require an exact match for the supplied collection name.

I wanted to use this to build a channel for a "smart collection" that contained the term "Animation"; however it failed because .search() includes results when it isn't an exact match, so I also got results back for "Sony Animation", "Disney Animation", etc. collections, which caused the script to fail. These edits fix this, and require an exact match for the supplied collection name.
all_items.extend(found_coll[0].children)
if found_coll and len(found_coll) > 0:
for coll in found_coll:
if coll.title == collection:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if collection in coll.title:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants