Repository navigation
Expand file tree
/
Copy pathplugin.json
More file actions
208 lines (208 loc) · 7.09 KB
/
Copy pathplugin.json
File metadata and controls
208 lines (208 loc) · 7.09 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
{
"id": "epg-enricher",
"name": "EPG Enricher",
"version": "1.13.14",
"api_version": "1.0.0",
"description": "Enriches EPG programme data with TMDB artwork (posters, backdrops), genres and descriptions. Only processes channels that are mapped in your playlists, complementing existing Schedules Direct / Gracenote metadata where data is missing.",
"repository": "Serph91P/m3u-editor-epg-enricher",
"entrypoint": "Plugin.php",
"class": "AppLocalPlugins\\EpgEnricher\\Plugin",
"capabilities": [
"epg_processor",
"epg_cache_enrichment"
],
"hooks": [
"epg.cache.generated"
],
"permissions": [
"db_read",
"filesystem_read",
"filesystem_write",
"network_egress",
"hook_subscriptions",
"queue_jobs"
],
"settings": [
{
"id": "tmdb_config",
"type": "section",
"label": "TMDB Configuration",
"description": "TMDB API source settings and general behavior.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "enrich_from_tmdb",
"type": "boolean",
"label": "Enrich programmes with TMDB data",
"default": true,
"helper_text": "Fetch posters, backdrops, genres and descriptions from TMDB for programmes that are missing artwork."
},
{
"id": "tmdb_language",
"type": "text",
"label": "TMDB search language",
"default": "",
"helper_text": "Language for TMDB searches (e.g. 'de-DE', 'en-US', 'fr-FR'). Leave empty to use the global TMDB language from general settings."
},
{
"id": "overwrite_existing",
"type": "boolean",
"label": "Overwrite existing metadata",
"default": false,
"helper_text": "Replace existing artwork and descriptions even if the programme already has data (e.g. from Schedules Direct)."
},
{
"id": "replace_existing_artwork",
"type": "boolean",
"label": "Replace existing artwork",
"default": false,
"helper_text": "Replace validated poster and backdrop roles without overwriting existing text metadata."
}
]
},
{
"id": "enrichment_options",
"type": "section",
"label": "Enrichment Options",
"description": "Choose which metadata fields to enrich from TMDB.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "enrich_categories",
"type": "boolean",
"label": "Enrich missing categories/genres",
"default": true,
"helper_text": "Fill in missing genre/category from TMDB when the programme has none."
},
{
"id": "enrich_descriptions",
"type": "boolean",
"label": "Enrich missing descriptions",
"default": true,
"helper_text": "Fill in missing programme descriptions from TMDB."
},
{
"id": "enrich_episode_details",
"type": "boolean",
"label": "Use episode-level details for TV series",
"default": true,
"helper_text": "For episodic TV programmes with season/episode data, use TMDB episode overview and screenshots when available."
},
{
"id": "enrich_posters",
"type": "boolean",
"label": "Enrich programme posters",
"default": true,
"helper_text": "Fetch missing portrait programme posters from TMDB. Posters are stored as a poster role; a backdrop or channel icon does not count as a poster."
},
{
"id": "enrich_backdrops",
"type": "boolean",
"label": "Enrich backdrop images",
"default": true,
"helper_text": "Fetch missing landscape programme backdrops from TMDB. Existing usable source backdrops are preserved unless overwrite is enabled."
}
]
},
{
"id": "genre_detection",
"type": "section",
"label": "Genre & Detection",
"description": "Genre mapping and keyword-based category detection.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "map_genres_to_epg_categories",
"type": "boolean",
"label": "Map genres to Emby compatible EPG categories",
"default": false,
"helper_text": "Normalize TMDB genres to the compact category names used by Emby-style guide coloring: Movie, Series, News, Sports, Kids, Documentary, Music, Education."
},
{
"id": "map_genres_to_kodi_guide_genres",
"type": "boolean",
"label": "Map genres to Kodi guide color genres",
"default": false,
"helper_text": "Use the detailed Kodi genre labels from m3u-editor issue 347, such as Basketball, Public Affairs, Comedy-Drama, Science Fiction, Cooking, and Game Show. When enabled, this takes precedence over the compact Emby compatible category option."
},
{
"id": "keyword_category_detection",
"type": "boolean",
"label": "Detect categories from title keywords",
"default": true,
"helper_text": "Detect Sports, News, Kids, and Documentary categories directly from programme titles. Active when either the Emby compatible or Kodi guide genre mapper is enabled."
}
]
},
{
"id": "automation",
"type": "section",
"label": "Automation",
"description": "Automatic enrichment triggers and playlist scope.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "auto_run_on_cache",
"type": "boolean",
"label": "Auto-run after EPG cache generation",
"default": true,
"helper_text": "Automatically enrich EPG data whenever the cache is rebuilt."
},
{
"id": "auto_run_playlists",
"type": "select",
"label": "Limit auto-run to these playlists",
"options_provider": "enrichable_playlists",
"multiple": true,
"required": false,
"helper_text": "When a related EPG cache is generated, fully enrich all EPG sources used by these playlists. Leave empty to include all related playlists."
}
]
}
],
"actions": [
{
"id": "enrich_epg",
"label": "Enrich EPG",
"icon": "heroicon-o-sparkles",
"requires_confirmation": true,
"fields": [
{
"id": "playlist_id",
"type": "select",
"label": "Playlist",
"options_provider": "enrichable_playlists",
"required": true
}
]
},
{
"id": "health_check",
"label": "Health Check",
"icon": "heroicon-o-heart",
"dry_run": true,
"fields": []
},
{
"id": "clear_state",
"label": "Clear Enrichment Cache",
"icon": "heroicon-o-trash",
"requires_confirmation": true,
"fields": []
}
],
"data_ownership": {
"directories": [
"plugin-data/epg-enricher"
],
"tables": [],
"files": [
"plugin-data/epg-enricher/tmdb-season-cache.json"
],
"default_cleanup_policy": "preserve"
}
}