Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions scripts/channel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@
if args.collection is not None:
for collection in args.collection:
found_coll = plex_server.library.section(section).search(title=collection, libtype='collection')
if found_coll and len(found_coll) == 1:
print("Matching COLLECTION items:")
for item in found_coll[0].children:
print(f"{collection} - {item.title}")
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
Copy Markdown
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:

print("Matching COLLECTION items:")
for item in coll.children:
print(f"{collection} - {item.title}")
all_items.extend(found_coll[0].children)
break

if all_items:
answer = input("Would you like to proceed with making the channel? (Y/N) ")
Expand Down