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

Feature improved collections #50

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mystardious
Copy link

@mystardious mystardious commented Nov 11, 2021

Collections:

  • Sort by release date, alphabetically or by provided list order (Default is custom, but can be changed in settings)
  • Set visibility for collection, Library, Home and Shared Home (Not setting this leaves the collection visibility unchanged, more information in settings.ini.example)
  • Collection mode set to 'Hide Collection', items in collection will always be shown in library section scrolling regardless of library mode settings. (Default is Hide Collection - Cannot be changed for the moment)
  • Collections can be ordered differently in library (Methods are complete, just need to add settings options for customisability)
  • This works with both trakt and imdb lists (I have mainly made tests on custom sort setting with mixed visibility settings)

Other:

  • append_show_id_dict searches through all guids instead of just the main guid, also changed 'thetvdb' to 'tvdb'
  • Completed TODOs for get_show_episode, but for items with type show, the whole show is returned

Feedback on my code would be appreciated, thanks.

Should run some tests on other Plex scanners and agents such as TheTVDB agent.
Made my own changes as well as completed other todos, I have only tested the first case FilmType.SHOW however mixing shows and episodes is not possible so don't have mixed lists with show, season or episode items
Plex Smart Collections cannot have a custom order and is limited for sorting options since you cannot have the order of your choice set. Making use of non-smart collections avoids this issue and allows for unlimited number of custom ordered lists. When the script is run again the collection is not deleted therefore allowing for it to be pinned on users home screen and allows for it to be updated by changes in your list.
- Users are able to sort collections by alphabetical, release date, or imported list order using the sort option in list ("sort":"alpha/release/custom")
- Updated settings.ini.example to include sort options
- Added extra argument in film_list for sort parameter
- This method is not available in the plexapi module which is why I had to implement from scratch
- For now all collections will be promoted by default.
- When updating collection visibility moving items in the collection may undo collection visibility updates, therefore try to update visibility after making edits to a collection.
- Regular class gives a bit more functionality
- You can now update collection visibility, promotedToRecommended, promotedToOwnHome, promotedToSharedHome
- Add methods to make requests to plex (PUT, GET, POST) in plex_request.py
- Added method to manipulate collection order (Not in use yet),  order is currently based on order in list provided in settings.
- Refactored collection manipulation code in collection.py
- Updated setting.ini.example comments for visibility as well as add example
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.

1 participant