jellyfin / jellycon

Kodi Addon for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
319 stars 30 forks source link

Sort by episode added #334

Closed ehosch closed 5 months ago

ehosch commented 6 months ago

Now that this has been added to Jellyfin 10.9 please add it to Jellycon

ehosch commented 5 months ago

Modified my plugin by editing the menu_functions.py line 754,,, `# Latest Episodes params = {} params.update(base_params)

params["Limit"] = item_limit

params["SortBy"] = "DateLastContentAdded"
params["SortOrder"] = "Descending"
#params["IncludeItemTypes"] = "Episode"
path = get_jellyfin_url("/Users/{userid}/Items", params)
url = sys.argv[0] + "?url=" + quote(path) + "&mode=GET_CONTENT&media_type=tvshows"
add_menu_directory_item(view_name + translate_string(30288), url)`

Then added a menu shortcut to Add-ons>Video add-ons>JellyCon>Jellyfin Libraries>Shows>Shows - Latest> note: modifying the code should change the shortcut from Shows - Latest (20) to just Shows - Latest

Used default sorting on the resulting menu and it should display the same list as sorting in the latest Jellyfin Web Shows by Episode Added descending.