-
Notifications
You must be signed in to change notification settings - Fork 22
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
Adding collection to home screen #49
Comments
This looks really cool and what I have hoped to do with this from the beginning. Being able to get a list in the Home Screen. I am not familiar with labels so looking into it but I think from your code it won’t be hard to just add a setting. |
I like this idea. We can make a new type called labels. Not to hard to add. could you make a pull request on it? If not I can attack it in December. |
Yeah no problem, will do so soon (probably after next week). My first post uses labels but order is not kept for more than one list since it is sorted by sortTitle, however my second post creates a collection and manually orders items as if you were dragging it in a custom order. This way I can have unlimited number of lists with the order I want (which I believe is what collection function was meant to originally do). I will also later on add the ability to sort it randomly as an extra option. After the collection is created you can pin to home, library, etc (I aim to allow users to specify in code whether to add to home screen and possibly for other users as well as the order they appear in the library) after which you can schedule the script to run periodically and the collection is updated on your home and library. |
This is really great gentleman, we look forward to the howto on how to
implement.
Thank you for helping us making it better for our users.
Respectfully,
Alec
…On Mon, Nov 8, 2021 at 8:02 PM Mohamed Maatouk ***@***.***> wrote:
Yeah no problem, will do so soon (probably after next week).
My first post uses labels but order is not kept for more than one list
since it is sorted by sortTitle, however my second post creates a
collection and manually orders items as if you were dragging it in a custom
order. This way I can have unlimited number of lists with the order I want.
I will also later on add the ability to sort it randomly as an extra option.
After the collection is created you can pin to home, library, etc (I aim
to allow users to specify in code whether to add to home screen and
possibly for other users as well as the order they appear in the library)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFLZVMS4S7SRNENVCIQPDDULCMMBANCNFSM45YMA7NA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I like these creative approaches. Although because of how Plex works, each of these approaches will alter the library as a trade off. The first one will reorder movies in the library and the second will either force or prevent you from hiding certain movies in collections like I mentioned in the original post. I would be okay with this trade off, but some of my siblings use my server and I know they look for movies by browsing the library; I'd prefer not to hide or reorder all the popular movies and make them too difficult to find. Also, for some reason it bothers me to see Harry Potter 1 right next to the Harry Potter collection when browsing the library. But I would prefer your second approach. But for those tradeoffs I will personally stick to labels even though the order is not ideal. Or maybe try out your second approach to see if I can get used to popular movies jumping out of their collections. |
I thought that might be a problem but you can individually hide collections using the plexapi as well as in plex by going Edit -> Advanced --> Collection Mode |
Ok I reread your comment and think I found a solution from a reddit post. Make all collections hidden by default, scan collections that aren't created by the program and compare them to the ones the script is adding. At this point anything in a collection is hidden from the library. Create a dummy collection with media that you want to show which is basically putting all media that you want to see in your library by comparing collection made by script and the rest and automatically using the script adding items to that dummy collection. This way you wont see individual harry potter movies in your library and still see other items in that list. Understandably your gonna have an extra collection in your library, although not visible unless you go to collections specifically but i think this tradeoff is better than having items appearing out of a collection you dont want the items showing. |
This isn't really a bug of this script, just unwanted behavior because of how plex works.
Problem: I wanted the list to show up on my home screen, but plex only gives this option for collections and NOT playlists. So I made a collection using this script instead of a playlist. The problem, my collections are set to hide items in the collection (e.g. so I don't have 30 barbie items in my library). I can set this playlist to not combine, but then each movie that is in another collection gets pulled out of that collection if it is also in this collection (ie. the most popular harry potter movies are listed next to the harry potter collection because they are also in the popular trakt list).
My solution:
instead of adding 'collection' tags. I add labels. I just modified the code in collection.py to be like
Then I make a smart playlist based on the labels. I also had to add this somewhere in the beginning of the code to remove the old labels.
This approach lets me add popular movies on trakt to my home screen. Side note: smart collections can be sorted randomly, you simply replace the &sort=asc in the url to &sort=random. So aquaman isn't always the first movie in the collection. It would be cooler if it was sorted like a playlist, but plex can't do that from what I can tell.
It would be cool if this was somehow a feature, but I don't think it should replace existing collecction operation like I did it.
Thanks
The text was updated successfully, but these errors were encountered: