diff --git a/VERSION b/VERSION index 32d2eba7..5058f7d6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.1-develop42 +1.19.1-develop43 diff --git a/modules/builder.py b/modules/builder.py index 90e541c7..56d08eaf 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1616,7 +1616,7 @@ class CollectionBuilder: elif search_attr == "adult": if util.parse(self.Type, search_method, search_data, datatype="bool", parent=method_name): new_dictionary[lower_method] = True - else: + elif search_attr != "limit": raise Failed(f"{self.Type} Error: {method_name} {search_method} attribute not supported") if len(new_dictionary) > 1: self.builders.append((method_name, new_dictionary)) diff --git a/modules/imdb.py b/modules/imdb.py index 56f70c55..01b59354 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -378,7 +378,7 @@ class IMDb: logger.ghost("Parsing Page 1") response_json = self._graph_request(json_obj) total = response_json["data"]["advancedTitleSearch"]["total"] - limit = data["limit"] if "limit" in data else 0 + limit = data["limit"] if limit < 1 or total < limit: limit = total remainder = limit % item_count