8000 fix: fix ytdl hanging sometimes · fent/node-ytdl@f566915 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit f566915

Browse files
committed
fix: fix ytdl hanging sometimes
closes #167
1 parent e0804e0 commit f566915

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/ytdl.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ const util = require('../lib/util');
4545
const label = chalk.bold.gray;
4646

4747

48+
ytdl.cache.sig.timeout = 0;
4849
ytdl.cache.info.timeout = 0;
50+
ytdl.cache.watch.timeout = 0;
51+
ytdl.cache.cookie.timeout = 0;
52+
4953
if (opts.cache !== false) {
5054
// Keep cache in file.
5155
const cachefile = path.resolve(homedir(), '.ytdl-cache.json');

0 commit comments

Comments
 (0)
0