forked from nzbget/VideoSort
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.json
402 lines (402 loc) · 16 KB
/
manifest.json
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
{
"main": "main.py",
"name": "VideoSort",
"homepage": "https://github.com/nzbgetcom/Extension-VideoSort",
"kind": "POST-PROCESSING",
"displayName": "Video Sort",
"version": "10.3",
"nzbgetMinVersion": "23.0",
"author": "Andrey Prygunkov",
"license": "GNU",
"about": "Sorts movies and tv shows.",
"queueEvents": "",
"requirements": [
"This script requires Python 3.8.x and above to be installed on your system."
],
"description": [
"This is a script for downloaded TV shows and movies. It uses scene-standard",
"naming conventions to match TV shows and movies and rename/move/sort/organize",
"them as you like."
],
"options": [
{
"name": "MoviesDir",
"displayName": "MoviesDir",
"value": "${DestDir}/movies",
"description": [
"Destination directory for movies.",
"",
"The option can be left empty to use global DestDir or CategoryX.DestDir",
"as destination."
],
"select": []
},
{
"name": "SeriesDir",
"displayName": "SeriesDir",
"value": "${DestDir}/series",
"description": [
"Destination directory for seasoned TV shows.",
"",
"The option can be left empty to use global DestDir or CategoryX.DestDir",
"as destination."
],
"select": []
},
{
"name": "DatedDir",
"displayName": "DatedDir",
"value": "${DestDir}/tv",
"description": [
"Destination directory for dated TV shows.",
"",
"The option can be left empty to use global DestDir or CategoryX.DestDir",
"as destination."
],
"select": []
},
{
"name": "OtherTvDir",
"displayName": "OtherTvDir",
"value": "${DestDir}/tv",
"description": [
"Destination directory for other TV shows.",
"",
"The option can be left empty to use global DestDir or CategoryX.DestDir",
"as destination."
],
"select": []
},
{
"name": "TvCategories",
"displayName": "TvCategories",
"value": "tv",
"description": [
"List of TV categories.",
"",
"Comma separated list of categories for TV. VideoSort automatically",
"distinguishes movies from series and dated TV shows. But it needs help",
"to distinguish movies from other TV shows because they are named",
"using same conventions. If a download has associated category listed in",
"option <TvCategories>, VideoSort uses this information.",
"",
"Category names must match categories defined in NZBGet."
],
"select": []
},
{
"name": "VideoExtensions",
"displayName": "VideoExtensions",
"value": ".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso",
"description": [
"File extensions for video files.",
"",
"Only files with these extensions are processed. Extensions must",
"be separated with commas.",
"Example=.mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso"
],
"select": []
},
{
"name": "SatelliteExtensions",
"displayName": "SatelliteExtensions",
"value": ".srt,.sub",
"description": [
"File extensions for satellite files.",
"",
"Move satellite files such as subtitles to the destination along with",
"the files they are related to. Extensions must be separated with commas.",
"Example=.srt,.nfo"
],
"select": []
},
{
"name": "MinSize",
"displayName": "MinSize",
"value": 100,
"description": [
"Minimum video file size (Megabytes).",
"",
"Smaller files are ignored."
],
"select": []
},
{
"name": "MoviesFormat",
"displayName": "MoviesFormat",
"value": "%t (%y)",
"description": [
"Formatting rules for movies.",
"",
"Specifiers for movies:",
"%t, %.t, %_t - movie title with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%tT, %t.T, %t_T - movie title (original letter case);",
"%y - year;",
"%decade - two-digits decade (90, 00, 10);",
"%0decade - four-digits decade (1990, 2000, 2010).",
"%imdb - IMDb ID;",
"%cpimdb - IMDb ID (formatted for CouchPotato);",
"",
"Common specifiers (for movies, series and dated tv shows):",
"%dn - original directory name (nzb-name);",
"%^dn, %.dn, %_dn - directory name with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%^dN, %.dN, %_dN - directory name with words separated with spaces, dots",
" or underscores (original letter case);",
"%fn - original filename;",
"%^fn, %.fn, %_fn - filename with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%^fN, %.fN, %_fN - filename with words separated with spaces, dots",
" or underscores (original letter case);",
"%cat, %.cat, %_cat - category with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%cAt, %.cAt, %_cAt - category (original letter case);",
"%ext - file extension;",
"%Ext - file extension (case-adjusted);",
"%qf - video format (HTDV, Blu-ray, Web);",
"%qss - screen size (720p, 1080i);",
"%qvc - video codec (x264);",
"%qac - audio codec (DTS);",
"%qah - audio channels (5.1);",
"%qrg - release group;",
"{{text}} - uppercase the text;",
"{TEXT} - lowercase the text."
],
"select": []
},
{
"name": "SeriesFormat",
"displayName": "SeriesFormat",
"value": "%sn/Season %s/%sn - S%0sE%0e - %en",
"description": [
"Formatting rules for seasoned TV shows.",
"",
"Specifiers:",
"%sn, %s.n, %s_n - show name with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%sN, %s.N, %s_N - show name (original letter case);",
"%s - season number (1, 2);",
"%0s - two-digits season number (01, 02);",
"%e - episode number (1, 2);",
"%0e - two-digits episode number (01, 02);",
"%en, %e.n, %e_n - episode name (case-adjusted);",
"%eN, %e.N, %e_N - episode name (original letter case);",
"%y - year;",
"%decade - two-digits decade (90, 00, 10);",
"%0decade - four-digits decade (1990, 2000, 2010).",
"",
"For a list of common specifiers see option <MoviesFormat>."
],
"select": []
},
{
"name": "MultipleEpisodes",
"displayName": "MultipleEpisodes",
"value": "range",
"description": [
"Multiple Episodes.",
"",
"This option is used for seasoned TV shows when the video file includes multiple episodes. For example: the formatting",
"string \"S%0sE%0e\", combined with \"MultipleEpisode=list\" and \"EpisodeSeparator=E\" will result in a file named",
"\"My.Show.S01E01E02E03\". \"MultipleEpisode=range\" and \"EpisodeSeparator=-E\" will result in a file named",
"\"My.Show.S01E01-E03.mkv\". The \"range\" option is useful to follow the TV episode naming conventions of popular media",
"management software, such as Plex."
],
"select": [
"list",
"range"
]
},
{
"name": "EpisodeSeparator",
"displayName": "EpisodeSeparator",
"value": "E",
"description": [
"Separator for multi episodes.",
"",
"The option is used for seasoned TV shows when video file includes",
"multiple episodes, e. g. \"My.Show.S01E02-03.mkv\". The option defines",
"a character (or a string) which must be insterted between episode",
"numbers. For example, if \"EpisodeSeparator=E\", the specifier \"%0e\"",
"will expand to \"02E03\". Giving formatting string \"%sN - S%0sE%0e\" the",
"resulting filename will be \"My Show - S01E02E03.mkv\"."
],
"select": []
},
{
"name": "SeriesYear",
"displayName": "SeriesYear",
"value": "yes",
"description": [
"Treat year following title as part of title.",
"",
"For seasoned TV shows: if year in the file name goes directly after",
"show name, it will be added to show name. This may be necessary for",
"media players like XBMC, Boxee or Plex (or anyone using TheTVDB) to",
"properly index TV show."
],
"select": [
"yes",
"no"
]
},
{
"name": "DatedFormat",
"displayName": "DatedFormat",
"value": "%sn/%sn - %en - %y-%0m-%0d",
"description": [
"Formatting rules for dated TV shows.",
"",
"Specifiers:",
"%sn, %s.n, %s_n - show name with words separated with spaces, dots",
" or underscores (case-adjusted);",
"%sN, %s.N, %s_N - show name (original letter case);",
"%en, %e.n, %e_n - episode name (case-adjusted);",
"%eN, %e.N, %e_N - episode name (original letter case);",
"%y - year;",
"%decade - two-digits decade (90, 00, 10);",
"%0decade - four-digits decade (1990, 2000, 2010).",
"%m - month (1-12);",
"%0m - two-digits month (01-12);",
"%d - day (1-31);",
"%0d - two-digits day (01-31).",
"",
"For a list of common specifiers see option <MoviesFormat>."
],
"select": []
},
{
"name": "OtherTvFormat",
"displayName": "OtherTvFormat",
"value": "%t",
"description": [
"Formatting rules for other TV shows.",
"",
"All specifiers are same as in option <MoviesFormat>."
],
"select": []
},
{
"name": "LowerWords",
"displayName": "LowerWords",
"value": "the,of,and,at,vs,a,an,but,nor,for,on,so,yet",
"description": [
"List of words to keep in lower case.",
"",
"This option has effect on \"case-adjusted\"-specifiers."
],
"select": []
},
{
"name": "UpperWords",
"displayName": "UpperWords",
"value": "III,II,IV",
"description": [
"List of words to keep in upper case.",
"",
"This option has effect on \"case-adjusted\"-specifiers."
],
"select": []
},
{
"name": "DNZBHeaders",
"displayName": "DNZBHeaders",
"value": "yes",
"description": [
"Use information from Direct-NZB headers.",
"",
"NZB-sites may provide extended information about videos,",
"which is usually more confident than the information extracted",
"from file names."
],
"select": [
"yes",
"no"
]
},
{
"name": "PreferNZBName",
"displayName": "PreferNZBName",
"value": "no",
"description": [
"Use name of nzb-file instead of name of video file.",
"",
"Good indexer nzb-sites do renaming and cleanup of nzb-file",
"names making them a better choice to extract name information",
"than the original video file names.",
"",
"NOTE: If download contains more than one video file suitable",
"for renaming (having correct extension and bigger than <MinSize>)",
"this option is ignored and the names of video files are always used."
],
"select": [
"yes",
"no"
]
},
{
"name": "Overwrite",
"displayName": "Overwrite",
"value": "no",
"description": [
"Overwrite files at destination.",
"",
"If not active the files are still moved into destination but",
"unique suffixes are added at the end of file names, e.g. My.Show.(2).mkv."
],
"select": [
"yes",
"no"
]
},
{
"name": "Cleanup",
"displayName": "Cleanup",
"value": "yes",
"description": [
"Delete download directory after renaming.",
"",
"If after successful sorting all remaining files in the download directory",
"are smaller than \"MinSize\" the directory with all files is removed. If no.",
"files could be processed, the directory remains untouched."
],
"select": [
"yes",
"no"
]
},
{
"name": "Preview",
"displayName": "Preview",
"value": "no",
"description": [
"Preview mode.",
"",
"When active no changes to file system are made but the destination",
"file names are logged. Useful to test formating rules; to restart",
"the script use \"Post-Process-Again\" on history tab in NZBGet web-interface."
],
"select": [
"yes",
"no"
]
},
{
"name": "Verbose",
"displayName": "Verbose",
"value": "no",
"description": [
"Print more logging messages.",
"",
"For debugging or if you need to report a bug."
],
"select": [
"yes",
"no"
]
}
],
"commands": [],
"taskTime": ""
}