-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.json
More file actions
282 lines (282 loc) · 9.24 KB
/
Copy pathplugin.json
File metadata and controls
282 lines (282 loc) · 9.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"id": "tv-logos",
"name": "TV Logos",
"version": "1.0.9",
"api_version": "1.0.0",
"repository": "m3ue/tv-logos-plugin",
"description": "Automatically enriches channel logos from the open-source tv-logo/tv-logos or K-yzu/Logos repositories via the jsDelivr CDN.",
"entrypoint": "Plugin.php",
"class": "AppLocalPlugins\\TvLogos\\Plugin",
"capabilities": [
"channel_processor"
],
"hooks": [
"playlist.synced"
],
"permissions": [
"db_read",
"db_write",
"network_egress",
"filesystem_read",
"filesystem_write",
"hook_subscriptions",
"queue_jobs"
],
"schema": {
"tables": []
},
"data_ownership": {
"tables": [],
"directories": [
"plugin-data/tv-logos",
"plugin-reports/tv-logos"
],
"files": [],
"default_cleanup_policy": "purge"
},
"settings": [
{
"id": "source_target",
"type": "section",
"label": "Source & Target",
"description": "Logo source repository and playlist assignment.",
"collapsible": true,
"collapsed": false,
"fields": [
{
"id": "logo_source",
"label": "Logo Source",
"type": "select",
"default": "tv-logo",
"options": {
"tv-logo": "tv-logo/tv-logos (tv-logo)",
"kyzu": "K-yzu/Logos (kyzu)"
},
"helper_text": "Which logo repository layout to match against. K-yzu/Logos covers US, CA, UK, AU and NZ channels; its regional-affiliate subfolders (e.g. TV:US2) are not indexed yet."
},
{
"id": "github_repo",
"label": "tv-logo/tv-logos GitHub Repository (owner/repo)",
"type": "text",
"default": "tv-logo/tv-logos",
"helper_text": "Used when Logo Source is tv-logo/tv-logos. Change to use a fork, e.g. your-username/tv-logos."
},
{
"id": "kyzu_github_repo",
"label": "K-yzu/Logos GitHub Repository (owner/repo)",
"type": "text",
"default": "K-yzu/Logos",
"helper_text": "Used when Logo Source is K-yzu/Logos. Change to use a fork."
},
{
"id": "default_playlist_id",
"label": "Default Playlist(s)",
"type": "model_select",
"model": "App\\Models\\Playlist",
"label_attribute": "name",
"scope": "owned",
"multiple": true,
"helper_text": "Playlists to enrich automatically after each sync. Leave empty to disable automatic enrichment.",
"default": null
},
{
"id": "country_code",
"label": "Country Code(s)",
"type": "select",
"multiple": true,
"default": [
"us"
],
"options": {
"al": "Albania (al)",
"dz": "Algeria (dz)",
"ar": "Argentina (ar)",
"au": "Australia (au)",
"at": "Austria (at)",
"be": "Belgium (be)",
"ba": "Bosnia & Herzegovina (ba)",
"br": "Brazil (br)",
"bg": "Bulgaria (bg)",
"ca": "Canada (ca)",
"cn": "China (cn)",
"hr": "Croatia (hr)",
"cz": "Czech Republic (cz)",
"dk": "Denmark (dk)",
"eg": "Egypt (eg)",
"ee": "Estonia (ee)",
"fi": "Finland (fi)",
"fr": "France (fr)",
"de": "Germany (de)",
"gr": "Greece (gr)",
"hu": "Hungary (hu)",
"in": "India (in)",
"ie": "Ireland (ie)",
"is": "Iceland (is)",
"il": "Israel (il)",
"it": "Italy (it)",
"jp": "Japan (jp)",
"xk": "Kosovo (xk)",
"lv": "Latvia (lv)",
"lt": "Lithuania (lt)",
"lu": "Luxembourg (lu)",
"mk": "North Macedonia (mk)",
"me": "Montenegro (me)",
"mx": "Mexico (mx)",
"nl": "Netherlands (nl)",
"nz": "New Zealand (nz)",
"ng": "Nigeria (ng)",
"no": "Norway (no)",
"pl": "Poland (pl)",
"pt": "Portugal (pt)",
"ro": "Romania (ro)",
"ru": "Russia (ru)",
"sa": "Saudi Arabia (sa)",
"rs": "Serbia (rs)",
"sk": "Slovakia (sk)",
"si": "Slovenia (si)",
"za": "South Africa (za)",
"kr": "South Korea (kr)",
"es": "Spain (es)",
"se": "Sweden (se)",
"ch": "Switzerland (ch)",
"tr": "Turkey (tr)",
"ua": "Ukraine (ua)",
"ae": "United Arab Emirates (ae)",
"gb": "United Kingdom (gb)",
"us": "United States (us)"
},
"helper_text": "Select one or more countries, tried in order per channel (first match wins). tv-logo/tv-logos supports all listed codes; K-yzu/Logos only supports us, ca, gb, au, nz - other codes are skipped when that source is active."
}
]
},
{
"id": "matching_behavior",
"type": "section",
"label": "Matching Behavior",
"description": "Controls for overwriting, VOD handling, and cache lifetime.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "overwrite_existing",
"label": "Overwrite channels that already have a logo",
"type": "boolean",
"default": false
},
{
"id": "skip_vod",
"label": "Skip VOD channels",
"type": "boolean",
"default": true
},
{
"id": "cache_ttl_days",
"label": "Match cache TTL in days (0 = never expire)",
"type": "number",
"default": 7
}
]
},
{
"id": "name_normalization",
"type": "section",
"label": "Channel Name Normalization",
"description": "Normalize channel names before matching against the logo repository.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "normalize_channel_names",
"label": "Normalize channel names before matching",
"type": "boolean",
"default": false,
"helper_text": "Enable to clean up channel names before logo matching. Configure individual rules below."
},
{
"id": "normalize_strip_unicode",
"label": "Strip unicode special characters (², ³, ʀᴀᴡ, etc.)",
"type": "boolean",
"default": true,
"helper_text": "Remove superscripts, subscripts, and small-caps unicode characters."
},
{
"id": "normalize_strip_raw",
"label": "Strip 'raw' from quality tags (HDraw → HD)",
"type": "boolean",
"default": true,
"helper_text": "Remove 'raw' suffix from quality indicators like HDraw, FHDraw, UHDraw."
},
{
"id": "normalize_strip_provider_info",
"label": "Strip provider/transport terms from channel names",
"type": "boolean",
"default": true,
"helper_text": "Remove provider or transport identifiers (e.g. Cable, IPTV) that are not part of the channel name. Configure the terms to strip in the field below."
},
{
"id": "normalize_provider_terms",
"label": "Provider/transport terms to strip (one per line)",
"type": "textarea",
"default": "Cable\nIPTV\nTerrestrial\nDVB-T\nDVB-T2\nDVB-C\nDVB-S\nDVB-S2",
"helper_text": "Terms matched as whole words (case-insensitive) and removed from channel names. Add provider-specific terms for your setup, e.g. Sat, Kabel, Astra - but check first that they don't clash with actual channel names."
},
{
"id": "normalize_strip_quality_extras",
"label": "Strip extra quality descriptors (Low, High, etc.)",
"type": "boolean",
"default": true,
"helper_text": "Remove Low/High when appended to a quality tag (e.g. HD Low → HD, UHD High → UHD)."
},
{
"id": "normalize_custom_patterns",
"label": "Custom normalization patterns (one regex per line)",
"type": "textarea",
"default": null,
"helper_text": "Advanced: custom regex patterns to remove from channel names. One pattern per line, applied in order."
}
]
}
],
"actions": [
{
"id": "health_check",
"label": "Health Check",
"dry_run": true,
"fields": []
},
{
"id": "enrich_logos",
"label": "Enrich Logos",
"dry_run": false,
"fields": [
{
"id": "playlist_id",
"label": "Playlist",
"type": "model_select",
"model": "App\\Models\\Playlist",
"label_attribute": "name",
"scope": "owned",
"required": true
},
{
"id": "overwrite_existing",
"label": "Overwrite channels that already have a logo",
"type": "boolean",
"default": false
},
{
"id": "skip_vod",
"label": "Skip VOD channels",
"type": "boolean",
"default": true
},
{
"id": "ignore_cache",
"label": "Ignore cache (force fresh lookups)",
"type": "boolean",
"default": false
}
]
}
]
}