diff --git a/CHANGELOG b/CHANGELOG index 3e692f7e..5c35199e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,4 +2,5 @@ Added the `character` search option to the `imdb_search` builder # Bug Fixes -Fixed the `cast` search option for the `imdb_search` builder \ No newline at end of file +Fixed the `cast` search option for the `imdb_search` builder +Fixes #2258 `imdb_list` sort was not being parsed correctly \ No newline at end of file diff --git a/VERSION b/VERSION index 1b6b5187..730812bf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build1 +2.1.0-build2 diff --git a/modules/imdb.py b/modules/imdb.py index bde2080e..5e070119 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -85,7 +85,7 @@ sort_by_options = { "year": "YEAR", "release": "RELEASE_DATE", } -sort_options = [f"{a}.{d}"for a in sort_by_options for d in ["asc", "desc"]] +sort_options = [f"{a}.{d}" for a in sort_by_options for d in ["asc", "desc"]] list_sort_by_options = { "custom": "LIST_ORDER", "popularity": "POPULARITY", @@ -96,7 +96,7 @@ list_sort_by_options = { "added": "DATE_ADDED", "release": "RELEASE_DATE", } -list_sort_options = [f"{a}.{d}"for a in sort_by_options for d in ["asc", "desc"]] +list_sort_options = [f"{a}.{d}" for a in list_sort_by_options for d in ["asc", "desc"]] title_type_options = { "movie": "movie", "tv_series": "tvSeries", "short": "short", "tv_episode": "tvEpisode", "tv_mini_series": "tvMiniSeries", "tv_movie": "tvMovie", "tv_special": "tvSpecial", "tv_short": "tvShort", "video_game": "videoGame", "video": "video", @@ -257,7 +257,7 @@ class IMDb: new_dict["limit"] = 0 if "sort_by" in dict_methods: - new_dict["sort_by"] = util.parse(err_type, dict_methods, imdb_dict, parent=method, default="custom.asc", options=list_sort_options) + new_dict["sort_by"] = util.parse(err_type, "sort_by", imdb_dict, methods=dict_methods, parent=method, default="custom.asc", options=list_sort_options) valid_lists.append(new_dict) return valid_lists