mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Minor formatting adjustment.
This commit is contained in:
parent
60e378b1ce
commit
a846b09ad3
4 changed files with 7 additions and 8 deletions
|
|
@ -796,7 +796,7 @@ class ChannelViewSet(viewsets.ModelViewSet):
|
|||
def match_epg(self, request):
|
||||
# Get channel IDs from request body if provided
|
||||
channel_ids = request.data.get('channel_ids', [])
|
||||
|
||||
|
||||
if channel_ids:
|
||||
# Process only selected channels
|
||||
from .tasks import match_selected_channels_epg
|
||||
|
|
@ -806,7 +806,7 @@ class ChannelViewSet(viewsets.ModelViewSet):
|
|||
# Process all channels without EPG (original behavior)
|
||||
match_epg_channels.delay()
|
||||
message = "EPG matching task initiated for all channels without EPG."
|
||||
|
||||
|
||||
return Response(
|
||||
{"message": message}, status=status.HTTP_202_ACCEPTED
|
||||
)
|
||||
|
|
|
|||
|
|
@ -551,7 +551,7 @@ def match_selected_channels_epg(channel_ids):
|
|||
|
||||
if not channels_without_epg.exists():
|
||||
logger.info("No selected channels need EPG matching.")
|
||||
|
||||
|
||||
# Send WebSocket update
|
||||
channel_layer = get_channel_layer()
|
||||
async_to_sync(channel_layer.group_send)(
|
||||
|
|
|
|||
|
|
@ -1440,7 +1440,7 @@ export default class API {
|
|||
static async matchEpg(channelIds = null) {
|
||||
try {
|
||||
const requestBody = channelIds ? { channel_ids: channelIds } : {};
|
||||
|
||||
|
||||
const response = await request(
|
||||
`${host}/api/channels/channels/match-epg/`,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -306,10 +306,9 @@ const ChannelTableHeader = ({
|
|||
onClick={matchEpg}
|
||||
>
|
||||
<Text size="xs">
|
||||
{selectedTableIds.length > 0
|
||||
? `Auto-Match (${selectedTableIds.length} selected)`
|
||||
: 'Auto-Match EPG'
|
||||
}
|
||||
{selectedTableIds.length > 0
|
||||
? `Auto-Match (${selectedTableIds.length} selected)`
|
||||
: 'Auto-Match EPG'}
|
||||
</Text>
|
||||
</Menu.Item>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue