mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Added misssing bulk fetch function for vod categories.
This commit is contained in:
parent
c80752a21d
commit
3ecd7137ff
3 changed files with 38 additions and 22 deletions
|
|
@ -663,8 +663,8 @@ def process_m3u_batch(account_id, batch, groups, hash_keys):
|
|||
def cleanup_streams(account_id, scan_start_time=timezone.now):
|
||||
account = M3UAccount.objects.get(id=account_id, is_active=True)
|
||||
existing_groups = ChannelGroup.objects.filter(
|
||||
m3u_account__m3u_account=account,
|
||||
m3u_account__enabled=True,
|
||||
m3u_accounts__m3u_account=account,
|
||||
m3u_accounts__enabled=True,
|
||||
).values_list("id", flat=True)
|
||||
logger.info(
|
||||
f"Found {len(existing_groups)} active groups for M3U account {account_id}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue