From 7292ad460f5449d12a48a8304036b3ebfa5b742c Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 14 Jul 2025 16:58:27 -0500 Subject: [PATCH] If previous channel had decimal don't continue with decimals. --- apps/m3u/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/m3u/tasks.py b/apps/m3u/tasks.py index bbdf5480..03888ead 100644 --- a/apps/m3u/tasks.py +++ b/apps/m3u/tasks.py @@ -1012,6 +1012,8 @@ def sync_auto_channels(account_id): channels_created += 1 current_channel_number += 1.0 + if current_channel_number % 1 != 0: # Has decimal + current_channel_number = int(current_channel_number) + 1.0 logger.debug(f"Created auto channel: {channel.channel_number} - {channel.name}")