This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: | |
| let originalFilenames = await drop() | |
| let dlCommands = originalFilenames.map(x => { | |
| return `!whisper "${x.name}" --model medium --language English` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const replaceAll = await npm('just-replace-all') | |
| // Name: | |
| let cutsToMake = [ | |
| { | |
| "from": "00:00:46", | |
| "to": "00:58:47", | |
| "desc": "2022-09-15 edited" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const replaceAll = await npm('just-replace-all') | |
| // Name: | |
| let cutsToMake = [ | |
| { | |
| "from": "00:11:15.600", | |
| "to": "00:12:02.600", | |
| "desc": "demosubcut" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const replaceAll = await npm('just-replace-all') | |
| // Name: Copy Selected File Contents | |
| let selectedFile = await getSelectedFile() | |
| let contents = await readFile(selectedFile, 'utf-8') | |
| await copy(contents) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const replaceAll = await npm('just-replace-all') | |
| // Name: Copy Selected | |
| // Shortcut: opt c | |
| let selectedFile = await getSelectedFile() | |
| let contents = await readFile(selectedFile, 'utf-8') | |
| await copy(contents) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const leadingzero = await npm("leadingzero") | |
| const replaceAll = await npm("just-replace-all") | |
| // Name: split-video-on-scene | |
| let longVideoFile = await getSelectedFile() | |
| cd(path.dirname(longVideoFile)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: | |
| let replaceAll = await npm('just-replace-all') | |
| let srtParser2 = await npm('srt-parser-2') | |
| let takeWhile = await npm('lodash.takewhile') | |
| let slice = await npm('lodash.slice') | |
| let parser = new srtParser2() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: remove-mp3-from-filename | |
| let replaceAll = await npm('just-replace-all') | |
| let files = await drop() | |
| for (let f of files) { | |
| let newName = replaceAll(f.path, '.mp3.', '.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| const leadingzero = await npm("leadingzero") | |
| const replaceAll = await npm("just-replace-all") | |
| // Name: split-video-on-scene | |
| // NOTE: SRT file should not have .mp4 in its name! | |
| // video.mp4 and video.srt Not video.mp4.srt! | |
| let longVideoFile = await getSelectedFile() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "@johnlindquist/kit" | |
| // Name: trim-and-reencode-latest-obs-video | |
| // Name: Trim latest OBS video | |
| import "@johnlindquist/kit"; | |
| import { z } from "zod"; |