mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Cleanup unused code.
This commit is contained in:
parent
41bd372b14
commit
b5e32421bd
1 changed files with 1 additions and 10 deletions
|
|
@ -374,7 +374,7 @@ def collect_xc_streams(account_id, enabled_groups):
|
|||
"custom_sid": stream.get("custom_sid", ""),
|
||||
# Include any other properties that might be present
|
||||
**{k: str(v) for k, v in stream.items() if k not in [
|
||||
"name", "stream_id", "epg_channel_id", "stream_icon",
|
||||
"name", "stream_id", "epg_channel_id", "stream_icon",
|
||||
"category_id", "stream_type", "added", "is_adult", "custom_sid"
|
||||
] and v is not None}
|
||||
}
|
||||
|
|
@ -388,10 +388,6 @@ def collect_xc_streams(account_id, enabled_groups):
|
|||
|
||||
logger.info(f"Filtered {filtered_count} streams from {len(enabled_category_ids)} enabled categories")
|
||||
return all_streams
|
||||
def process_xc_category(account_id, batch, groups, hash_keys):
|
||||
"""Legacy Celery task wrapper - calls the direct function."""
|
||||
return process_xc_category_direct(account_id, batch, groups, hash_keys)
|
||||
|
||||
|
||||
def process_xc_category_direct(account_id, batch, groups, hash_keys):
|
||||
from django.db import connections
|
||||
|
|
@ -550,11 +546,6 @@ def process_xc_category_direct(account_id, batch, groups, hash_keys):
|
|||
return retval
|
||||
|
||||
|
||||
def process_m3u_batch(account_id, batch, groups, hash_keys):
|
||||
"""Legacy Celery task wrapper - calls the direct function."""
|
||||
return process_m3u_batch_direct(account_id, batch, groups, hash_keys)
|
||||
|
||||
|
||||
def process_m3u_batch_direct(account_id, batch, groups, hash_keys):
|
||||
"""Processes a batch of M3U streams using bulk operations with thread-safe DB connections."""
|
||||
from django.db import connections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue