mediasnacks 0.33.0 → 0.33.1
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/README.md +1 -1
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/play.js +0 -1
- package/src/seqcheck.js +2 -2
- package/src/utils/printProgress.js +4 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ mediasnacks <command> <args>
|
|
|
32
32
|
- `ssim` Computes similarity of two images
|
|
33
33
|
- `gif`: Video to GIF
|
|
34
34
|
- `info`: Prints video attributes
|
|
35
|
-
- `tag`:
|
|
35
|
+
- `tag`: Sets color tag for Finder
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
- `detectdups` Detects sequentially duplicate frames in a video
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ const COMMANDS = {
|
|
|
19
19
|
ssim: ['./ssim.js', 'Computes SSIM between two images'],
|
|
20
20
|
gif: ['./gif.js', 'Video to GIF'],
|
|
21
21
|
info: ['./info.js', 'Prints video stream attributes'],
|
|
22
|
-
tag: ['./tag.osascript', '
|
|
22
|
+
tag: ['./tag.osascript', 'Sets color tag for Finder\n'],
|
|
23
23
|
|
|
24
24
|
detectdups: ['./detectdups.js', 'Detects duplicate frames in a video'],
|
|
25
25
|
dropdups: ['./dropdups.js', 'Removes duplicate frames in a video'],
|
package/src/play.js
CHANGED
package/src/seqcheck.js
CHANGED
|
@@ -13,8 +13,8 @@ DESCRIPTION
|
|
|
13
13
|
Find missing numbered files in a sequence.
|
|
14
14
|
|
|
15
15
|
OPTIONS
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
--left-delimiter <str> Char before the number (default: "${LEFT_DELIM}")
|
|
17
|
+
--right-delimiter <str> Char after the number (default: "${RIGHT_DELIM}")
|
|
18
18
|
`
|
|
19
19
|
|
|
20
20
|
export default async function main() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { formatSeconds } from './formatSeconds.js'
|
|
2
2
|
|
|
3
|
-
const HIDE_CURSOR = '\x1b[?25l'
|
|
4
|
-
const SHOW_CURSOR = '\x1b[?25h'
|
|
5
|
-
const ERASE_TO_END = '\x1b[K'
|
|
3
|
+
export const HIDE_CURSOR = '\x1b[?25l'
|
|
4
|
+
export const SHOW_CURSOR = '\x1b[?25h'
|
|
5
|
+
export const ERASE_TO_END = '\x1b[K'
|
|
6
6
|
|
|
7
7
|
export const showCursor = () => process.stdout.write(SHOW_CURSOR)
|
|
8
8
|
|
|
@@ -30,5 +30,5 @@ function progressBar(progress, width = 44) {
|
|
|
30
30
|
|
|
31
31
|
const partials = ' ▏▎▍▌▋▊▉'
|
|
32
32
|
const partial = partials.at(partials.length * fPartial)
|
|
33
|
-
return '█'.repeat(nFull) + partial + '
|
|
33
|
+
return '█'.repeat(nFull) + partial + '─'.repeat(nRemaining)
|
|
34
34
|
}
|