Skip to content

Commit

Permalink
Merge pull request #1666 from Falke-Design/fix/range_selector_bug
Browse files Browse the repository at this point in the history
Fix bug if perpetual_range_selector is None
  • Loading branch information
CastagnaIT authored Jan 4, 2024
2 parents cea708a + fe92759 commit bb132cd
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 bb132cd

Please sign in to comment.