[39] other small fixes

pull/1934/head
meisnate12 2 months ago
parent 2a6cf72682
commit aa474e62b1

@ -91,7 +91,7 @@ jobs:
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG
token: ${{ secrets.PAT }}

@ -1 +1 @@
1.20.0-develop38
1.20.0-develop39

@ -1998,7 +1998,7 @@ class CollectionBuilder:
elif self.library.is_show and discover_attr in tmdb.discover_movie_only:
raise Failed(f"{self.Type} Error: {method_name} {discover_method} attribute only works for movie libraries")
elif discover_attr == "region":
new_dictionary[discover_attr] = util.parse(self.Type, discover_method, discover_data, parent=method_name, regex=("^[A-Z]{2}$", "US"))
new_dictionary[discover_attr] = util.parse(self.Type, discover_method, discover_data.upper(), parent=method_name, regex=("^[A-Z]{2}$", "US"))
elif discover_attr == "sort_by":
options = tmdb.discover_movie_sort if self.library.is_movie else tmdb.discover_tv_sort
new_dictionary[lower_method] = util.parse(self.Type, discover_method, discover_data, parent=method_name, options=options)
@ -2014,7 +2014,7 @@ class CollectionBuilder:
raise Failed(f"{self.Type} Error: {method_name} {discover_method} attribute: must be used with certification_country")
elif discover_attr == "watch_region":
if "with_watch_providers" in dict_data or "without_watch_providers" in dict_data or "with_watch_monetization_types" in dict_data:
new_dictionary[lower_method] = discover_data
new_dictionary[lower_method] = discover_data.upper()
else:
raise Failed(f"{self.Type} Error: {method_name} {discover_method} attribute: must be used with either with_watch_providers, without_watch_providers, or with_watch_monetization_types")
elif discover_attr == "with_watch_monetization_types":

@ -803,7 +803,7 @@ class Operations:
if any([x is not None for x, _ in episode_ops]):
if any(["imdb" in x for x, _ in episode_ops]) and not imdb_id:
if any(["imdb" in x for x, _ in episode_ops if x]) and not imdb_id:
logger.info(f"No IMDb ID for Guid: {item.guid}")
for ep in item.episodes():

@ -12,5 +12,5 @@ requests==2.31.0
retrying==1.3.4
ruamel.yaml==0.18.6
schedule==1.2.1
setuptools==69.1.1
setuptools==69.2.0
tmdbapis==1.2.7
Loading…
Cancel
Save