Skip to content

Commit

Permalink
Fix bug if perpetual_range_selector is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Falke-Design authored Jan 3, 2024
1 parent cea708a commit fe92759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fe92759

Please sign in to comment.