From 64d68bf11d2da19cc2e432d3c04a7c0dbeb78035 Mon Sep 17 00:00:00 2001 From: dekzter Date: Fri, 4 Apr 2025 10:37:06 -0400 Subject: [PATCH] tvg search name and tvg-id, fixed bulk create epg matching, attempting to fix favicon --- apps/channels/api_views.py | 2 +- frontend/index.html | 2 +- frontend/src/components/forms/Channel.jsx | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/channels/api_views.py b/apps/channels/api_views.py index 2d98188d..2051dd4c 100644 --- a/apps/channels/api_views.py +++ b/apps/channels/api_views.py @@ -349,7 +349,7 @@ class ChannelViewSet(viewsets.ModelViewSet): # Attempt to find existing EPGs with the same tvg-id epgs = EPGData.objects.filter(tvg_id=stream.tvg_id) if epgs: - channel_data["epg_data"] = epgs.first() + channel_data["epg_data_id"] = epgs.first().id serializer = self.get_serializer(data=channel_data) if serializer.is_valid(): diff --git a/frontend/index.html b/frontend/index.html index de12df40..6d85529c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - + Dispatcharr diff --git a/frontend/src/components/forms/Channel.jsx b/frontend/src/components/forms/Channel.jsx index 1ec46511..2649924b 100644 --- a/frontend/src/components/forms/Channel.jsx +++ b/frontend/src/components/forms/Channel.jsx @@ -289,7 +289,11 @@ const Channel = ({ channel = null, isOpen, onClose }) => { const filteredTvgs = tvgs .filter((tvg) => tvg.epg_source == selectedEPG) - .filter((tvg) => tvg.name.toLowerCase().includes(tvgFilter)); + .filter( + (tvg) => + tvg.name.toLowerCase().includes(tvgFilter.toLowerCase()) || + tvg.tvg_id.toLowerCase().includes(tvgFilter.toLowerCase()) + ); return ( <>