Skip to content

Commit ac484d4

Browse files
authored
Compatibility for Dispatcharr 0.2x
1 parent 7f20b69 commit ac484d4

6 files changed

Lines changed: 1615 additions & 522 deletions

File tree

Channel-Maparr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .plugin import Plugin, fields, actions
1+
from .plugin import Plugin

Channel-Maparr/fuzzy_matcher.py

Lines changed: 163 additions & 38 deletions
Large diffs are not rendered by default.

Channel-Maparr/logo.png

211 KB
Loading

Channel-Maparr/plugin.json

Lines changed: 129 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,134 @@
11
{
22
"name": "Channel Mapparr",
3-
"key": "channel_mapparr",
4-
"module": "channel_mapparr.plugin",
5-
"class": "Plugin",
6-
"description": "A Dispatcharr plugin that standardizes US broadcast (OTA) and premium/cable channel names using FCC network data and curated channel lists.",
3+
"version": "0.7.0a",
4+
"description": "Standardizes broadcast (OTA) and premium/cable channel names using network data and channel lists.",
75
"author": "community",
8-
"homepage": "https://github.com/PiratesIRC/Dispatcharr-Channel-Maparr-Plugin",
6+
"help_url": "https://github.com/PiratesIRC/Dispatcharr-Channel-Maparr-Plugin",
7+
"fields": [
8+
{
9+
"id": "version_status",
10+
"label": "Plugin Version Status",
11+
"type": "info"
12+
},
13+
{
14+
"id": "channel_databases",
15+
"label": "Channel Databases (comma-separated country codes)",
16+
"type": "string",
17+
"default": "US"
18+
},
19+
{
20+
"id": "fuzzy_match_threshold",
21+
"label": "Fuzzy Match Threshold (0-100)",
22+
"type": "number",
23+
"default": 85
24+
},
25+
{
26+
"id": "selected_groups",
27+
"label": "Channel Groups to Process (comma-separated)",
28+
"type": "string",
29+
"default": ""
30+
},
31+
{
32+
"id": "category_groups",
33+
"label": "Channel Groups for Category Organization (comma-separated)",
34+
"type": "string",
35+
"default": ""
36+
},
37+
{
38+
"id": "m3u_sources",
39+
"label": "M3U Sources (comma-separated, prioritized)",
40+
"type": "string",
41+
"default": ""
42+
},
43+
{
44+
"id": "m3u_group_filter",
45+
"label": "M3U Group Filter (comma-separated)",
46+
"type": "string",
47+
"default": ""
48+
},
49+
{
50+
"id": "m3u_category_filter",
51+
"label": "Channel Database Category Filter (comma-separated)",
52+
"type": "string",
53+
"default": ""
54+
},
55+
{
56+
"id": "m3u_custom_group_name",
57+
"label": "Imported Channel Group Name",
58+
"type": "string",
59+
"default": ""
60+
},
61+
{
62+
"id": "dry_run_mode",
63+
"label": "Dry Run Mode",
64+
"type": "boolean",
65+
"default": false
66+
},
67+
{
68+
"id": "ota_format",
69+
"label": "OTA Channel Name Format",
70+
"type": "string",
71+
"default": "{NETWORK} - {STATE} {CITY} ({CALLSIGN})"
72+
},
73+
{
74+
"id": "unknown_suffix",
75+
"label": "Suffix for Unknown Channels",
76+
"type": "string",
77+
"default": " [Unk]"
78+
},
79+
{
80+
"id": "ignored_tags",
81+
"label": "Ignored Tags (comma-separated)",
82+
"type": "string",
83+
"default": "[4K], [FHD], [HD], [SD], [Unknown], [Unk], [Slow], [Dead]"
84+
},
85+
{
86+
"id": "default_logo",
87+
"label": "Default Logo",
88+
"type": "string",
89+
"default": ""
90+
}
91+
],
992
"actions": [
10-
"run"
93+
{
94+
"id": "validate_settings",
95+
"label": "Validate Settings",
96+
"description": "Check database connectivity, channel databases, and settings configuration"
97+
},
98+
{
99+
"id": "load_and_process_channels",
100+
"label": "Load/Process Channels",
101+
"description": "Load channels from groups and determine new names"
102+
},
103+
{
104+
"id": "rename_channels",
105+
"label": "Rename Channels",
106+
"description": "Apply the standardized names to channels"
107+
},
108+
{
109+
"id": "rename_unknown_channels",
110+
"label": "Add Suffix to Unknown Channels",
111+
"description": "Add suffix to channels that could not be matched"
112+
},
113+
{
114+
"id": "apply_logos",
115+
"label": "Apply Default Logos",
116+
"description": "Apply default logo to channels without logos"
117+
},
118+
{
119+
"id": "organize_by_category",
120+
"label": "Organize Channels by Category",
121+
"description": "Create groups based on category names and move matching channels"
122+
},
123+
{
124+
"id": "import_m3u_streams",
125+
"label": "Import Streams from M3U",
126+
"description": "Create channels from M3U streams organized into category-based groups"
127+
},
128+
{
129+
"id": "clear_csv_exports",
130+
"label": "Clear CSV Exports",
131+
"description": "Delete all CSV export files created by this plugin"
132+
}
11133
]
12-
}
134+
}

0 commit comments

Comments
 (0)