diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index c5c71ff8..b00e2723 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -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 }} diff --git a/VERSION b/VERSION index e59d4544..b43fe085 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.0-develop38 +1.20.0-develop39 diff --git a/modules/builder.py b/modules/builder.py index b5f61117..bfd2896f 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -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": diff --git a/modules/operations.py b/modules/operations.py index 3166fe29..4854c066 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -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(): diff --git a/requirements.txt b/requirements.txt index 825c51ea..2f5bd499 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file