Allow for tuners as low as 1 instead of 2.

Closes #149
This commit is contained in:
SergeantPanda 2025-06-07 19:27:59 -05:00
parent 8ae314fbb0
commit 7acc31ec97

View file

@ -79,8 +79,8 @@ class DiscoverAPIView(APIView):
# Otherwise use the limited profile sum plus custom streams
tuner_count = limited_tuners + custom_stream_count
# 5. Ensure minimum of 2 tuners
tuner_count = max(2, tuner_count)
# 5. Ensure minimum of 1 tuners
tuner_count = max(1, tuner_count)
logger.debug(f"Calculated tuner count: {tuner_count} (limited profiles: {limited_tuners}, custom streams: {custom_stream_count}, unlimited: {has_unlimited})")