mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-25 11:04:07 +00:00
Merge remote-tracking branch 'origin/dev' into table-rewrite
This commit is contained in:
commit
8d1bfcb975
2 changed files with 7 additions and 4 deletions
|
|
@ -51,8 +51,11 @@ class DiscoverAPIView(APIView):
|
|||
base_url = request.build_absolute_uri(f'/{"/".join(uri_parts)}/').rstrip('/')
|
||||
device = HDHRDevice.objects.first()
|
||||
|
||||
# Calculate tuner count from active profiles (excluding default "custom Default" profile)
|
||||
profiles = M3UAccountProfile.objects.filter(is_active=True).exclude(id=1)
|
||||
# Calculate tuner count from active profiles from active M3U accounts (excluding default "custom Default" profile)
|
||||
profiles = M3UAccountProfile.objects.filter(
|
||||
is_active=True,
|
||||
m3u_account__is_active=True # Only include profiles from enabled M3U accounts
|
||||
).exclude(id=1)
|
||||
|
||||
# 1. Check if any profile has unlimited streams (max_streams=0)
|
||||
has_unlimited = profiles.filter(max_streams=0).exists()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
Dispatcharr version information.
|
||||
"""
|
||||
__version__ = '0.3.2' # Follow semantic versioning (MAJOR.MINOR.PATCH)
|
||||
__build__ = '3' # Auto-incremented on builds
|
||||
__version__ = '0.3.3' # Follow semantic versioning (MAJOR.MINOR.PATCH)
|
||||
__build__ = '2' # Auto-incremented on builds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue