-
Notifications
You must be signed in to change notification settings - Fork 0
/
id3tag.js
306 lines (305 loc) · 7.93 KB
/
id3tag.js
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
const completion: Fig.Spec = {
name: "id3tag",
description: "A simple application for updating metadata (ID3) information in music files.",
options: [
{
name: ["-c", "--config-file"],
description: "The name of the config file to be read.",
isRepeatable: true,
args: {
name: "config-file",
isVariadic: true,
isOptional: true,
},
},
{
name: ["-l", "--log-config-file"],
description: "The name of the YAML file containing the logging settings.",
isRepeatable: true,
args: {
name: "log-config-file",
isVariadic: true,
isOptional: true,
},
},
{
name: ["--album-artist", "--aa"],
description: "The album artist(s).",
isRepeatable: true,
args: {
name: "album-artist",
isOptional: true,
},
},
{
name: ["--album-artist-sort", "--aas"],
description: "Album artist(s) sort name.",
isRepeatable: true,
args: {
name: "album-artist-sort",
isOptional: true,
},
},
{
name: ["--album-title", "--at"],
description: "The title of the album. Use quotation marks for multi-word entries.",
isRepeatable: true,
args: {
name: "album-title",
isOptional: true,
},
},
{
name: ["--album-title-sort", "--ats"],
description: "The album title sort name.",
isRepeatable: true,
args: {
name: "album-title-sort",
isOptional: true,
},
},
{
name: ["--disc-number", "--dn"],
description: "The disc number.",
isRepeatable: true,
args: {
name: "disc-number",
isOptional: true,
},
},
{
name: ["--disc-number-total", "--dt"],
description: "The total number of discs for the album.",
isRepeatable: true,
args: {
name: "disc-total",
isOptional: true,
},
},
{
name: ["--track-artist", "--ta"],
description: "The track artist.",
isRepeatable: true,
args: {
name: "track-artist",
isOptional: true,
},
},
{
name: ["--track-album-artist", "--taa"],
description: "Set album and track artist to be the same value.",
exclusiveOn: [
"--track-artist",
"--album-artist",
],
isRepeatable: true,
args: {
name: "track-album-artist",
isOptional: true,
},
},
{
name: ["--track-artist-sort", "--tas"],
description: "The sort name of the track artist(s). Use quotation marks for multi-word entries. Example: Artist is 'Alicia Keys', but this value may be 'Keys, Alicia'.",
isRepeatable: true,
args: {
name: "track-artist-sort",
isOptional: true,
},
},
{
name: ["--track-title", "--tt"],
description: "The title of the track.",
isRepeatable: true,
args: {
name: "track-title",
isOptional: true,
},
},
{
name: ["--track-title-sort", "--tts"],
description: "The sort title of the track.",
isRepeatable: true,
args: {
name: "track-title-sort",
isOptional: true,
},
},
{
name: ["--track-number", "--tn"],
description: "The track number.",
isRepeatable: true,
args: {
name: "track-number",
isOptional: true,
},
},
{
name: ["--track-number-total", "--to"],
description: "The total number of tracks for the disc.",
isRepeatable: true,
args: {
name: "track-total",
isOptional: true,
},
},
{
name: ["--track-number-count", "--tnc"],
description: "Use number of files as total number of tracks.",
exclusiveOn: [
"--track-number-total",
],
isRepeatable: true,
args: {
name: "track-count",
isOptional: true,
},
},
{
name: ["--track-genre", "--tg"],
description: "The track music genre.",
isRepeatable: true,
args: {
name: "track-genre",
isOptional: true,
},
},
{
name: ["--track-genre-number", "--tgn"],
description: "The track music genre number.",
exclusiveOn: [
"--track-genre",
],
isRepeatable: true,
args: {
name: "track-genre-number",
isOptional: true,
},
},
{
name: ["--track-composer", "--tc"],
description: "The composer(s) for the track. Use quotation marks for multi-word entries.",
isRepeatable: true,
args: {
name: "track-composer",
isOptional: true,
},
},
{
name: ["--track-composer-sort", "--tcs"],
description: "The sort composer(s) for the track. Use quotation marks for multi-word entries. For example, if the composer is 'Ludwig van Beethoven', this value could be 'Beethoven, Ludwig van'.",
isRepeatable: true,
args: {
name: "track-composer-sort",
isOptional: true,
},
},
{
name: ["--track-date", "--td"],
description: "The release date for the track. This is usually the album release date. Can be a year or a date.",
isRepeatable: true,
args: {
name: "track-date",
isOptional: true,
},
},
{
name: ["--track-comments", "--tm"],
description: "The comments for the track. Use quotation marks for multi-word entries.",
isRepeatable: true,
args: {
name: "track-comments",
isOptional: true,
},
},
{
name: ["--picture-front-candidate", "--pfc"],
description: "The front cover picture candidate file name.",
isRepeatable: true,
args: {
name: "picture-front-candidate",
isVariadic: true,
isOptional: true,
},
},
{
name: ["--picture-back-candidate", "--pbc"],
description: "The back cover picture candidate file name.",
isRepeatable: true,
args: {
name: "picture-back-candidate",
isVariadic: true,
isOptional: true,
},
},
{
name: ["--picture-search-folder", "--psf"],
description: "Folder(s) in which to look for the candidate front and back covers.",
isRepeatable: true,
args: {
name: "picture-search-folder",
isVariadic: true,
isOptional: true,
},
},
{
name: ["--picture-max-size", "--pms"],
description: "Picture maximum size in pixels for the longest edge.",
isRepeatable: true,
args: {
name: "picture-max-size",
isOptional: true,
},
},
{
name: ["--rename-file", "--rf"],
description: "Renames the music file after setting the tags. Example: \"%dn-%tn %tt\"",
isRepeatable: true,
args: {
name: "rename-file",
isOptional: true,
},
},
{
name: ["-s", "--stop-on-error"],
description: "Stop on error.",
},
{
name: ["-r", "--dry-run"],
description: "Iterate through the files and produce output without actually processing anything.",
},
{
name: ["-p", "--print-summary"],
description: "Print summary after all files are processed.",
},
{
name: ["-o", "--detail-off"],
description: "Don't display detailed information about each file processed.",
},
{
name: ["-1", "--single-thread"],
description: "Run processing single-threaded. Takes longer, but has less impact on the system.",
},
{
name: ["--disc-number-count", "--dnc"],
description: "Determine the disc number and total number of discs based on the folder structure.",
exclusiveOn: [
"--disc-number",
"--disc-number-total",
],
},
{
name: ["-h", "--help"],
description: "Print help (see more with '--help')",
},
{
name: ["-V", "--version"],
description: "Print version",
},
],
args: {
name: "files",
isVariadic: true,
},
};
export default completion;