tvg search name and tvg-id, fixed bulk create epg matching, attempting to fix favicon

This commit is contained in:
dekzter 2025-04-04 10:37:06 -04:00
parent a7fa6ff55e
commit 64d68bf11d
3 changed files with 7 additions and 3 deletions

View file

@ -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():

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<link rel="icon" type="image/png" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dispatcharr</title>
</head>

View file

@ -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 (
<>