mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
[addon] use ip in the cache key instead of apikey
This commit is contained in:
parent
b36a9c0983
commit
ad7076f3f7
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ async function resolve(parameters) {
|
|||
if (!parameters.apiKey || !parameters.infoHash || !parameters.cachedEntryInfo) {
|
||||
return Promise.reject("No valid parameters passed");
|
||||
}
|
||||
const id = `${parameters.mochKey}_${parameters.apiKey}_${parameters.infoHash}_${parameters.fileIndex}`;
|
||||
const id = `${parameters.mochKey}_${parameters.ip}_${parameters.infoHash}_${parameters.fileIndex}`;
|
||||
const method = () => cacheWrapResolvedUrl(id, () => moch.instance.resolve(parameters))
|
||||
.catch(error => {
|
||||
console.warn(error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue