Skip to content

Commit 265e47a

Browse files
committed
chore: log download subs command
1 parent f80ef46 commit 265e47a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/youtube.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export async function getVideoSubtitles (id, callback = () => {}) {
5858
const cookies = getOptionalCookiesPath()
5959
let cookiesOption = ''
6060
if (cookies) cookiesOption = `--cookies ./cookies.txt`
61-
console.log({cookiesOption})
6261
if (!fs.existsSync(transcriptPath)) {
63-
for await (const line of spawn('yt-dlp', `-o ./data/videos/${id} --skip-download ${cookiesOption} ${subtitlesYTDLPArgs} -- ${id}`.split(/ +/))) {
62+
const commandArgs = `-o ./data/videos/${id} --skip-download ${cookiesOption} ${subtitlesYTDLPArgs} -- ${id}`.split(/ +/)
63+
console.log('running yt-dlp', commandArgs.join(' '))
64+
for await (const line of spawn('yt-dlp', commandArgs)) {
6465
console.log(line)
6566
callback(line)
6667
}

0 commit comments

Comments
 (0)