Skip to content

Commit

Permalink
fix: update path of ytdl-core sig cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Aug 4, 2018
1 parent 2aac6cd commit 14f097b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ if (opts.cache !== false) {
}
});

ytdl.cache.get = key => cache[key];
ytdl.cache.set = (key, value) => {
ytdl.cache.sig.get = key => cache[key];
ytdl.cache.sig.set = (key, value) => {
cache[key] = value;
fs.writeFile(cachefile,
JSON.stringify(cache, null, 2), () => {});
Expand Down

0 comments on commit 14f097b

Please sign in to comment.