reelsort 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +537 -200
- package/dist/index.d.mts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.js +299 -57
- package/dist/index.mjs +305 -63
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9,14 +9,14 @@ interface SourceAddOptions {
|
|
|
9
9
|
dir: string;
|
|
10
10
|
}
|
|
11
11
|
interface SourceRemoveOptions {
|
|
12
|
-
dir
|
|
12
|
+
dir?: string;
|
|
13
13
|
}
|
|
14
14
|
interface DestAddOptions {
|
|
15
15
|
type: string;
|
|
16
16
|
dir: string;
|
|
17
17
|
}
|
|
18
18
|
interface DestRemoveOptions {
|
|
19
|
-
type
|
|
19
|
+
type?: string;
|
|
20
20
|
}
|
|
21
21
|
interface ConfigSetOptions {
|
|
22
22
|
key: string;
|
|
@@ -59,16 +59,14 @@ declare const list: ({ type, missingSubs, codec: codecFilter, resolution: resFil
|
|
|
59
59
|
interface ProbeOptions {
|
|
60
60
|
type?: 'movie' | 'tv' | 'ps3';
|
|
61
61
|
force?: boolean;
|
|
62
|
-
verbose?: boolean;
|
|
63
62
|
}
|
|
64
|
-
declare const probe: ({ type, force
|
|
63
|
+
declare const probe: ({ type, force }: ProbeOptions) => Promise<void>;
|
|
65
64
|
|
|
66
65
|
interface RenameOptions {
|
|
67
66
|
dir: string;
|
|
68
67
|
type?: 'movie' | 'tv' | 'ps3';
|
|
69
|
-
verbose?: boolean;
|
|
70
68
|
}
|
|
71
|
-
declare const rename: ({ dir: inputDir, type
|
|
69
|
+
declare const rename: ({ dir: inputDir, type }: RenameOptions) => Promise<void>;
|
|
72
70
|
|
|
73
71
|
interface ResetOptions {
|
|
74
72
|
dir: string;
|
|
@@ -80,21 +78,19 @@ interface ScanOptions {
|
|
|
80
78
|
type?: 'movie' | 'tv' | 'ps3' | 'book';
|
|
81
79
|
hardlink?: boolean;
|
|
82
80
|
dryRun?: boolean;
|
|
83
|
-
verbose?: boolean;
|
|
84
81
|
auto?: boolean;
|
|
85
82
|
force?: boolean;
|
|
86
83
|
interactive?: boolean;
|
|
87
84
|
}
|
|
88
|
-
declare const scan: ({ type, hardlink: useHardlink, dryRun,
|
|
85
|
+
declare const scan: ({ type, hardlink: useHardlink, dryRun, auto, force, interactive }: ScanOptions) => Promise<void>;
|
|
89
86
|
|
|
90
87
|
declare const undo: () => Promise<void>;
|
|
91
88
|
|
|
92
89
|
interface WatchOptions {
|
|
93
90
|
hardlink?: boolean;
|
|
94
|
-
verbose?: boolean;
|
|
95
91
|
auto?: boolean;
|
|
96
92
|
}
|
|
97
|
-
declare const watch: ({ hardlink,
|
|
93
|
+
declare const watch: ({ hardlink, auto }: WatchOptions) => Promise<void>;
|
|
98
94
|
|
|
99
95
|
interface ReelSortConfig {
|
|
100
96
|
sources: string[];
|
|
@@ -104,6 +100,7 @@ interface ReelSortConfig {
|
|
|
104
100
|
ps3?: string;
|
|
105
101
|
book?: string;
|
|
106
102
|
};
|
|
103
|
+
ignore?: string[];
|
|
107
104
|
language?: string;
|
|
108
105
|
tmdbApiKey?: string;
|
|
109
106
|
format?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ interface SourceAddOptions {
|
|
|
9
9
|
dir: string;
|
|
10
10
|
}
|
|
11
11
|
interface SourceRemoveOptions {
|
|
12
|
-
dir
|
|
12
|
+
dir?: string;
|
|
13
13
|
}
|
|
14
14
|
interface DestAddOptions {
|
|
15
15
|
type: string;
|
|
16
16
|
dir: string;
|
|
17
17
|
}
|
|
18
18
|
interface DestRemoveOptions {
|
|
19
|
-
type
|
|
19
|
+
type?: string;
|
|
20
20
|
}
|
|
21
21
|
interface ConfigSetOptions {
|
|
22
22
|
key: string;
|
|
@@ -59,16 +59,14 @@ declare const list: ({ type, missingSubs, codec: codecFilter, resolution: resFil
|
|
|
59
59
|
interface ProbeOptions {
|
|
60
60
|
type?: 'movie' | 'tv' | 'ps3';
|
|
61
61
|
force?: boolean;
|
|
62
|
-
verbose?: boolean;
|
|
63
62
|
}
|
|
64
|
-
declare const probe: ({ type, force
|
|
63
|
+
declare const probe: ({ type, force }: ProbeOptions) => Promise<void>;
|
|
65
64
|
|
|
66
65
|
interface RenameOptions {
|
|
67
66
|
dir: string;
|
|
68
67
|
type?: 'movie' | 'tv' | 'ps3';
|
|
69
|
-
verbose?: boolean;
|
|
70
68
|
}
|
|
71
|
-
declare const rename: ({ dir: inputDir, type
|
|
69
|
+
declare const rename: ({ dir: inputDir, type }: RenameOptions) => Promise<void>;
|
|
72
70
|
|
|
73
71
|
interface ResetOptions {
|
|
74
72
|
dir: string;
|
|
@@ -80,21 +78,19 @@ interface ScanOptions {
|
|
|
80
78
|
type?: 'movie' | 'tv' | 'ps3' | 'book';
|
|
81
79
|
hardlink?: boolean;
|
|
82
80
|
dryRun?: boolean;
|
|
83
|
-
verbose?: boolean;
|
|
84
81
|
auto?: boolean;
|
|
85
82
|
force?: boolean;
|
|
86
83
|
interactive?: boolean;
|
|
87
84
|
}
|
|
88
|
-
declare const scan: ({ type, hardlink: useHardlink, dryRun,
|
|
85
|
+
declare const scan: ({ type, hardlink: useHardlink, dryRun, auto, force, interactive }: ScanOptions) => Promise<void>;
|
|
89
86
|
|
|
90
87
|
declare const undo: () => Promise<void>;
|
|
91
88
|
|
|
92
89
|
interface WatchOptions {
|
|
93
90
|
hardlink?: boolean;
|
|
94
|
-
verbose?: boolean;
|
|
95
91
|
auto?: boolean;
|
|
96
92
|
}
|
|
97
|
-
declare const watch: ({ hardlink,
|
|
93
|
+
declare const watch: ({ hardlink, auto }: WatchOptions) => Promise<void>;
|
|
98
94
|
|
|
99
95
|
interface ReelSortConfig {
|
|
100
96
|
sources: string[];
|
|
@@ -104,6 +100,7 @@ interface ReelSortConfig {
|
|
|
104
100
|
ps3?: string;
|
|
105
101
|
book?: string;
|
|
106
102
|
};
|
|
103
|
+
ignore?: string[];
|
|
107
104
|
language?: string;
|
|
108
105
|
tmdbApiKey?: string;
|
|
109
106
|
format?: {
|