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

Optimisations and improvements #10

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Conversation

Amateur-God
Copy link
Owner

@Amateur-God Amateur-God commented Mar 19, 2024

Resolves #8
closes #8
resolves #9
closes #9

Improved functionality of the Favourite handling, it now handles TV shows and movies separately and it now adds the series name to blacklisted TV Shows and movie Name to blacklisted movies along with the path to blacklisted paths for both, this wasn't necessary but was added as a fallback.

Added IGNORE_FAVOURITES as an env variable so people can set this to false if they want to disable the script ignoring/blacklisting favourites (Default behavior is true)

Improved the functions to get TVDB and TMDBID which are used by sonarr/radarr functions to find the correct show/movie, it will now check the items path for tvdbid-Number and tmdbid-Number which if you are following the recommended naming guides and are using sonarr/radarr to rename them then these should be found in the path, however if these aren't found in the path it will fallback to calling the TVDB and TMDB APIs to query them for the ID.

This was done to limit the possibility of getting the wrong ID and to limit the number of API calls made to TVDB and TMDB

@Amateur-God Amateur-God added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 19, 2024
@Amateur-God Amateur-God added this to the V2.2.0 milestone Mar 19, 2024
@Amateur-God Amateur-God self-assigned this Mar 19, 2024
@Amateur-God Amateur-God linked an issue Mar 19, 2024 that may be closed by this pull request
@Amateur-God Amateur-God merged commit 13f5ead into main Mar 26, 2024
2 checks passed
@Amateur-God Amateur-God deleted the optimisations-and-improvements branch March 26, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check path for TV/TM DB ID Improve handling of favourites
1 participant