New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a script to pull Plex items in multiple ways #3
Conversation
Looks great on first pass! I'll test it out later and merge it in. Thanks for the contribution! |
Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for. |
scripts/channel_builder.py
Outdated
if found_coll and len(found_coll) == 1: | ||
print("Matching COLLECTION items:") | ||
for item in found_coll[0].children: | ||
print(f"{collection_parm} - {item.title}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is collection_parm
? Should this be collection
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right. I think I changed the name trying to avoid confusion, but missed one.
@jvonhoff Sorry I took a while to circle back to this. Check out my one comment. Other than that, looks and works great! I'll merge as soon as that comment is resolved. |
Are you looking to just copy a playlist to dizqueTV and shuffle it? |
Yes |
I can add a shuffle feature to the |
Done: https://github.com/nwithan8/dizqueTV-scripts/blob/master/scripts/playlist_to_channel.py |
Adding the token as a parameter, so that the script doesn't need to change per user
I fixed the collection variable name, and also added the option to have the plex token as a parameter, rather than having to update the script. |
Any issue with the PR? I have another change to the new channel_builder.py script (--force so that it isn't interactive, for scripting purposes). Also considering adding a search by Title (--section "TV Shows" --title "Friends" "Seinfeld" "The Office (US)") to build a channel from single/multiple shows/movies that aren't collected by Genre, Collection, etc. |
Sorry, forgot about this PR. Merging now. |
Namely, I was missing the ability to add items from Collections, which is one mechanism I use to group my shows/movies. With this, I can create a channel using the "70s & 80s TV" collection, as well as optionally adding "Paramount Studios" and even "Westerns" to the mix, if I wanted to get really specific.
Let me know if you have issues or thoughts, and thanks for laying all the groundwork!