-
Notifications
You must be signed in to change notification settings - Fork 28
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
2.4.0 Filter/Subfilter Overall, tmdb_director, and tmdb_writer #76
Conversation
Pulling Changes 2.1.1
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1.2 to 5.3.1. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](yaml/pyyaml@5.1.2...5.3.1) Signed-off-by: dependabot[bot] <support@github.com>
Pulling Changes 2.2.0
Bump pyyaml from 5.1.2 to 5.3.1
Pulling Changes 2.2.1
@@ -1,5 +1,5 @@ | |||
# Remove | |||
PyYAML==5.1.2 | |||
PyYAML==5.3.1 |
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.
We should just phase out PyYAML
altogether in favor of raumel.yaml
to avoid two dependencies for similar functionality
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.
where do we use PyYAML?
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.
Actually, @mza921 it looks like you may have introduced ruamel.yaml
? Is there a preference over PyYAML
? I don't have an opinion, but we should standardize on one throughout the project I think.
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.
I use ruamel.yaml
for updating the config file during initial Trakt authorization. Research had led me to this. I prefer it over PyYAML
but didn't bother to update the other modules since I mostly worked on Trakt integration.
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.
Ok, let's default to ruamel.yaml
then and remove PyYAML
. It looks like it's only used in a couple of places:
Plex-Auto-Collections/app/config_tools.py
Line 80 in 8d129ad
self.data = yaml.load(yml, Loader=yaml.FullLoader) Plex-Auto-Collections/app/config_tools.py
Line 455 in 8d129ad
yaml.dump(config.data, f) import re, requests, os, yaml
keep this open for now i found a silent breaking bug |
While I think these are the best way forward, they do break compatibility with existing config files. We need to make sure that the interactive mode also works with these changes. |
So I'm thinking I'll be able to have it not break the old configs but it will instead give a warning for any attribute deprecated saying that it will be run as the proper attribute I hadn't thought about plex_search being a whole category but I'm not mad at it we could make everything under one search AND together and then multiple plex_searches OR together and take out the and. Completely |
Also I don't think I've ever used interactive mode lol but I'll start testing it as well |
Bumps [plexapi](https://github.com/pkkid/python-plexapi) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/pkkid/python-plexapi/releases) - [Commits](pkkid/python-plexapi@4.1.2...4.2.0) Signed-off-by: dependabot[bot] <support@github.com>
Bump plexapi from 4.1.2 to 4.2.0
ok introducing |
Oh this version should work with any version of the config i put checks in for all the old attributes |
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.
Thanks for all the updates.
no problem I like this script and want to see it improved plus learning python in the process is a great bonus Btw just push your changes for the new movie Agent and ill get this pull rebased on them the same day so this can go out shortly after |
- `director` (Gets every movie with the specified director) (Movie libraries only) | ||
- `tmdb_director` (Gets every movie with the specified director as well as the added TMDb [metadata](#tmdb-people-list-type)) (Movie libraries only) | ||
- `genre` (Gets every movie/show with the specified genre) | ||
- `studio` (Gets every movie/show with the specified studio) | ||
- `year` (Gets every movie/show with the specified year) | ||
- `year` (Gets every movie/show with the specified year) (Put a `-` between two years for a range i.e. `year: 1990-1999` or end with `NOW` to go till current i.e. `year: 2000-NOW`) |
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.
Can we keep undocumented support for decade
?
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.
well i took out decade in favor of the year range i added just do year: 1990-1999
i can add it back in if needed but i figured the range would be less confusing and not bog down the user with another option plus the range isn't limited to 10 years either
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.
Did you want me to add decade back or is year range ok?
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.
I prefer to keep it
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.
ok ill add it back silently
# Conflicts: # CHANGELOG.md # README.md
@mza921 my pull is now rebased on 2.3.0 and i upgraded my release to 2.4.0 |
CHANGELOG.md
Outdated
## [2.3.0] - 2020-11-02 | ||
## [2.4.0] - 2020-11-03 | ||
### Added | ||
- Added `plex_search` to AND searches together |
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.
I'm confused about this. So if plex_search
does an AND, how do I do an OR? How would this README example work:
collections:
90s Movies:
plex_search:
year:
- 1990
- 1991
- 1992
- 1993
- 1994
- 1995
- 1996
- 1997
- 1998
- 1999
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.
it ANDs different attributes and ORs multiples of the same attribute I can try and clarify that in the readme. The program will also tell you exactly how it's searching so for your example it would look like this:
| Processing Plex Search: year(1990 OR 1991 OR 1992 OR 1993 OR 1994 OR 1995 OR 1996 OR 1997 OR 1998 OR 1999)
it will show each AND on the subsequent lines
if you want to AND the same attribute you have to use subfilters
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.
Got it. Nice addition to report the actual query.
Can you rebase on 2.3.1? Then we're good to go. |
can do give me a minute |
# Conflicts: # CHANGELOG.md # README.md # app/plex_auto_collections.py
ok were good to go i also updated the changelog to include issue and pull numbers for easier tracking |
[2.4.0] - 2020-11-03
Added
plex_search
to AND searches togetherfilters
and allow for use of.not
for inversefilters
tmdb_director
andtmdb_writer
which function the same astmdb_actor
but for directors and writersChanged
Plex Filters
are now listed and have been tested and have been changed toPlex Searches
subfilters
are now listed and have been tested and have been changed tofilters
Fixed
collection_order
was in the code ascollection_sort