-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.json
More file actions
293 lines (293 loc) · 9.98 KB
/
plugin.json
File metadata and controls
293 lines (293 loc) · 9.98 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
283
284
285
286
287
288
289
290
291
292
293
{
"id": "youtubearr",
"name": "YouTubearr",
"version": "1.0.5",
"api_version": "1.0.0",
"repository": "m3ue/youtubearr-m3ue",
"description": "Monitor YouTube channels for livestreams and auto-create/remove channels. Zero API quota — uses yt-dlp.",
"entrypoint": "Plugin.php",
"class": "AppLocalPlugins\\Youtubearr\\Plugin",
"capabilities": [
"channel_processor",
"scheduled"
],
"hooks": [],
"permissions": [
"db_read",
"db_write",
"network_egress",
"queue_jobs",
"scheduled_runs",
"filesystem_write"
],
"schema": {
"tables": []
},
"data_ownership": {
"tables": [],
"directories": [],
"files": [],
"default_cleanup_policy": "preserve"
},
"settings": [
{
"id": "sources",
"type": "section",
"label": "Sources",
"description": "YouTube channels and streams to monitor.",
"collapsible": true,
"collapsed": false,
"fields": [
{
"id": "monitored_channels",
"label": "Monitored YouTube Channels",
"type": "textarea",
"default": "",
"required": false,
"helper_text": "One channel handle per line. Format: @handle, @handle=BaseNumber, or @handle=BaseNumber:TitleFilter\n\nExamples:\n@NASA=92\n@RyanHallYall=90\n@VirtualRailfan=91:Horseshoe|La Grange\n\nAll currently live streams for each handle are detected. Title filter is a case-insensitive regex. Channels without =Number are auto-assigned from Starting Channel Number."
},
{
"id": "monitored_streams",
"label": "Monitored Streams (Direct URLs)",
"type": "textarea",
"default": "",
"required": false,
"helper_text": "Optional. One YouTube URL or bare video ID per line. These specific streams are checked each cycle — a channel is created when live and removed when ended (same behaviour as handle monitoring). Lines starting with # are ignored.\n\nExamples:\nhttps://www.youtube.com/watch?v=dQw4w9WgXcQ\ndQw4w9WgXcQ\nhttps://youtu.be/dQw4w9WgXcQ"
}
]
},
{
"id": "stream_settings",
"type": "section",
"label": "Stream Settings",
"description": "yt-dlp stream profile and quality preferences.",
"collapsible": true,
"collapsed": false,
"fields": [
{
"id": "stream_profile_id",
"label": "Stream Profile (yt-dlp)",
"type": "model_select",
"model": "App\\Models\\StreamProfile",
"label_attribute": "name",
"scope": "owned",
"required": true,
"helper_text": "Select a yt-dlp Stream Profile to apply to created channels. Cookies configured on this profile will also be used for live stream detection."
},
{
"id": "stream_quality",
"label": "Stream Quality",
"type": "select",
"default": "best",
"options": {
"best": "Best Available",
"1080p": "1080p",
"720p": "720p",
"480p": "480p"
},
"helper_text": "Quality preference used when checking live stream metadata via yt-dlp."
}
]
},
{
"id": "channel_settings",
"type": "section",
"label": "Channel Settings",
"description": "Playlist assignment, grouping, naming, and numbering.",
"collapsible": true,
"collapsed": false,
"fields": [
{
"id": "target_playlist_id",
"label": "Target Playlist (Standard)",
"type": "model_select",
"model": "App\\Models\\Playlist",
"label_attribute": "name",
"scope": "owned",
"required": false,
"helper_text": "Standard playlist to associate created channels with. Leave empty to skip."
},
{
"id": "target_custom_playlist_id",
"label": "Target Playlist (Custom)",
"type": "model_select",
"model": "App\\Models\\CustomPlaylist",
"label_attribute": "name",
"scope": "owned",
"required": false,
"helper_text": "Custom playlist to add created channels to. Leave empty to skip."
},
{
"id": "channel_group",
"label": "Channel Group",
"type": "text",
"default": "YouTube Live",
"helper_text": "Group name for created channels. The group will be created automatically if it does not exist."
},
{
"id": "channel_name_mode",
"label": "Channel Name",
"type": "select",
"default": "stream_title",
"options": {
"stream_title": "Stream Title (use the live stream's title)",
"channel_name": "YouTube Channel Name (e.g. NASA #1, NASA #2)"
},
"helper_text": "How to name created channels. Channel Name mode groups streams by YouTube channel with sequential suffixes (#1, #2…). Suffixes are compacted when a stream ends so there are no gaps."
},
{
"id": "starting_channel_number",
"label": "Starting Channel Number",
"type": "number",
"default": 2000,
"helper_text": "First channel number to assign. Each new stream increments from here."
},
{
"id": "channel_number_increment",
"label": "Channel Number Increment",
"type": "number",
"default": 1,
"helper_text": "How much to increment the channel number for each new stream."
},
{
"id": "channel_numbering_mode",
"label": "Channel Numbering Mode",
"type": "select",
"default": "sequential",
"options": {
"sequential": "Sequential (2000, 2001, 2002)",
"decimal": "Decimal (90.1, 90.2, 90.3)"
},
"helper_text": "Decimal mode groups streams from the same YouTube channel together using the channel's BaseNumber. Sequential mode uses a global counter."
}
]
},
{
"id": "cleanup_settings",
"type": "section",
"label": "Cleanup",
"description": "Controls how ended streams are detected and removed.",
"collapsible": true,
"collapsed": false,
"fields": [
{
"id": "auto_cleanup",
"label": "Auto-cleanup Ended Streams",
"type": "boolean",
"default": true,
"helper_text": "Automatically delete channels when their YouTube livestream ends. Runs during each monitoring cycle."
},
{
"id": "live_check_failure_threshold",
"label": "Live Check Failure Threshold",
"type": "number",
"default": 5,
"helper_text": "Number of consecutive inconclusive live-status checks (e.g. yt-dlp rate-limit or network error) before a channel is removed. Set to 0 to never remove on check failure."
}
]
},
{
"id": "epg",
"type": "section",
"label": "EPG",
"description": "Generate an XMLTV EPG source covering multiple days for each live stream.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "epg_enabled",
"label": "Enable EPG Generation",
"type": "boolean",
"default": false,
"helper_text": "Create an EPG source and write XMLTV programme data for each managed channel. The EPG source named 'YouTubearr' will be created automatically and updated on every monitoring cycle."
},
{
"id": "epg_days",
"label": "Days of EPG Content",
"type": "number",
"default": 3,
"helper_text": "Number of days each programme block should span, starting from 00:00 today. Default: 3."
}
]
},
{
"id": "channel_logo",
"type": "section",
"label": "Channel Logo",
"description": "Choose which image to use as the channel logo.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "channel_logo_source",
"label": "Logo Source",
"type": "select",
"default": "stream_thumbnail",
"options": {
"stream_thumbnail": "Stream Thumbnail (live stream preview image)",
"channel_avatar": "Channel Avatar (YouTube channel profile picture)"
},
"helper_text": "Stream Thumbnail uses the live stream's preview image. Channel Avatar fetches the YouTube channel's profile picture — falls back to the stream thumbnail if unavailable."
}
]
},
{
"id": "scheduling",
"type": "section",
"label": "Scheduling",
"description": "Automatic monitoring schedule.",
"collapsible": true,
"collapsed": true,
"fields": [
{
"id": "schedule_enabled",
"label": "Enable Automatic Monitoring",
"type": "boolean",
"default": false,
"helper_text": "Run monitoring automatically on the schedule below. Requires the scheduler to be running (php artisan schedule:run)."
},
{
"id": "schedule_cron",
"label": "Monitor Schedule (cron)",
"type": "text",
"default": "*/15 * * * *",
"helper_text": "Cron expression for automatic monitoring. Default: every 15 minutes. Examples: */5 * * * * (every 5 min), 0 * * * * (hourly)."
}
]
}
],
"actions": [
{
"id": "check_now",
"label": "Check Now",
"dry_run": false,
"fields": []
},
{
"id": "add_manual",
"label": "Add Stream Manually",
"dry_run": false,
"fields": [
{
"id": "manual_url",
"label": "YouTube URL(s)",
"type": "text",
"required": true,
"helper_text": "One or more YouTube livestream URLs (newline or comma-separated)."
}
]
},
{
"id": "cleanup",
"label": "Cleanup Ended Streams",
"dry_run": false,
"fields": []
},
{
"id": "reset_all",
"label": "Reset All Channels",
"dry_run": false,
"fields": []
}
]
}