Bug fix: XtreamCodes EPG limit parameter now properly converted to integer to prevent type errors when accessing EPG listings (Fixes #781)

This commit is contained in:
SergeantPanda 2025-12-26 13:34:53 -06:00
parent 2d31eca93d
commit 36a39cd4de
2 changed files with 2 additions and 1 deletions

View file

@ -2258,7 +2258,7 @@ def xc_get_epg(request, user, short=False):
# Get the mapped integer for this specific channel
channel_num_int = channel_num_map.get(channel.id, int(channel.channel_number))
limit = request.GET.get('limit', 4)
limit = int(request.GET.get('limit', 4))
if channel.epg_data:
# Check if this is a dummy EPG that generates on-demand
if channel.epg_data.epg_source and channel.epg_data.epg_source.source_type == 'dummy':