From fe92759b8515c5fdfdd49fb32a4af5d1630dcfc5 Mon Sep 17 00:00:00 2001 From: Florian Bischof Date: Wed, 3 Jan 2024 16:35:14 +0100 Subject: [PATCH] Fix bug if perpetual_range_selector is None --- .../services/nfsession/directorybuilder/dir_builder_items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/services/nfsession/directorybuilder/dir_builder_items.py b/resources/lib/services/nfsession/directorybuilder/dir_builder_items.py index 36ce64324..0ef5c52c6 100644 --- a/resources/lib/services/nfsession/directorybuilder/dir_builder_items.py +++ b/resources/lib/services/nfsession/directorybuilder/dir_builder_items.py @@ -269,7 +269,7 @@ def build_video_listing(video_list, menu_data, sub_genre_id=None, pathitems=None in video_list.videos.items()] # If genre_id exists add possibility to browse LoCo sub-genres # With checking if 'previous_start' is existing, we know that it is the first page - if sub_genre_id and sub_genre_id != 'None' and 'previous_start' not in video_list.perpetual_range_selector: + if sub_genre_id and sub_genre_id != 'None' and (not video_list.perpetual_range_selector or 'previous_start' not in video_list.perpetual_range_selector): # Create dynamic sub-menu info in MAIN_MENU_ITEMS menu_id = f'subgenre_{sub_genre_id}' sub_menu_data = menu_data.copy()