MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / filter

Method filter

apps/channels/api_views.py:762–778  ·  view source on GitHub ↗
(self, queryset, value)

Source from the content-addressed store, hash-verified

760 Filter channels by EPG source name or null (unlinked).
761 """
762 def filter(self, queryset, value):
763 if not value:
764 return queryset
765
766 # Split comma-separated values
767 values = [v.strip() for v in value.split(',')]
768 query = Q()
769
770 for val in values:
771 if val == 'null':
772 # Filter for channels with no EPG data
773 query |= Q(epg_data__isnull=True)
774 else:
775 # Filter for channels with specific EPG source name
776 query |= Q(epg_data__epg_source__name__icontains=val)
777
778 return queryset.filter(query)
779
780
781class ChannelFilter(django_filters.FilterSet):

Callers 15

WebsocketProviderFunction · 0.45
reorderChannelStreamsMethod · 0.45
GuideRow.jsxFile · 0.45
EventFunction · 0.45
SidebarFunction · 0.45
M3URefreshNotificationFunction · 0.45
PluginDetailPanelFunction · 0.45
CreateChannelModalFunction · 0.45
handleProfileChangeFunction · 0.45
ServerGroupsTableFunction · 0.45
ChannelStreamsFunction · 0.45

Calls

no outgoing calls