Skip to content
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

Merged
merged 3 commits into from Jan 20, 2021

Conversation

jvonhoff
Copy link
Contributor

@jvonhoff jvonhoff commented Jan 3, 2021

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!

@nwithan8
Copy link
Owner

nwithan8 commented Jan 3, 2021

Looks great on first pass! I'll test it out later and merge it in. Thanks for the contribution!

@ghost
Copy link

ghost commented Jan 11, 2021

Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for.

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}")
Copy link
Owner

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?

Copy link
Contributor Author

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.

@nwithan8
Copy link
Owner

@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.

@nwithan8
Copy link
Owner

Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for.

Are you looking to just copy a playlist to dizqueTV and shuffle it?

@ghost
Copy link

ghost commented Jan 11, 2021

Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for.

Are you looking to just copy a playlist to dizqueTV and shuffle it?

Yes

@nwithan8
Copy link
Owner

Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for.

Are you looking to just copy a playlist to dizqueTV and shuffle it?

Yes

I can add a shuffle feature to the playlist_to_channel.py script real quick.

@nwithan8
Copy link
Owner

Would it be possible to support playlists with this too? The shuffle feature is what I'm primarily using this for.

Are you looking to just copy a playlist to dizqueTV and shuffle it?

Yes

I can add a shuffle feature to the playlist_to_channel.py script real quick.

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
@jvonhoff
Copy link
Contributor Author

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.

@jvonhoff
Copy link
Contributor Author

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.

@nwithan8
Copy link
Owner

Sorry, forgot about this PR. Merging now.

@nwithan8 nwithan8 merged commit 0ef3eb8 into nwithan8:master Jan 20, 2021
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.

None yet

2 participants