Merge pull request #244 from IncredibleLaser/limit-bugfix

Add item limit to the list of parameters for recently added movies
This commit is contained in:
mcarlton00 2022-11-12 08:54:27 -05:00 committed by GitHub
commit 0a53312dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,6 +1028,7 @@ def display_movies_type(menu_params, view):
params["SortBy"] = "DateCreated" params["SortBy"] = "DateCreated"
params["SortOrder"] = "Descending" params["SortOrder"] = "Descending"
params["Filters"] = "IsNotFolder" params["Filters"] = "IsNotFolder"
params["Limit"] = item_limit
path = get_jellyfin_url("/Users/{userid}/Items", params) path = get_jellyfin_url("/Users/{userid}/Items", params)
url = sys.argv[0] + "?url=" + quote(path) + "&mode=GET_CONTENT&media_type=movies&sort=none" url = sys.argv[0] + "?url=" + quote(path) + "&mode=GET_CONTENT&media_type=movies&sort=none"
add_menu_directory_item('{}{} ({})'.format(view_name, translate_string(30268), item_limit), url) add_menu_directory_item('{}{} ({})'.format(view_name, translate_string(30268), item_limit), url)