mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-04-20 18:22:03 +00:00
[addon] fixes kitsu movie handler
This commit is contained in:
parent
4de9f3f013
commit
a1d6e5fa80
2 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ async function movieRecordsHandler(args) {
|
|||
if (args.id.match(/tt\d+/)) {
|
||||
return repository.getImdbIdMovieEntries(args.id);
|
||||
} else if (args.id.match(/kitsu:\d+/i)) {
|
||||
return repository.getKitsuIdMovieEntries(args.id.replace('kitsu:', ''), episode);
|
||||
return repository.getKitsuIdMovieEntries(args.id.replace('kitsu:', ''));
|
||||
}
|
||||
return Promise.reject(`Unsupported id type: ${args.id}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const GLOBAL_KEY_PREFIX = 'torrentio-addon';
|
|||
const STREAM_KEY_PREFIX = `${GLOBAL_KEY_PREFIX}|stream`;
|
||||
const REALDEBRID_KEY_PREFIX = `${GLOBAL_KEY_PREFIX}|realdebrid`;
|
||||
|
||||
const REDIRECT_TTL = process.env.STREAM_EMPTY_TTL || 2 * 60; // 2 hours
|
||||
const REDIRECT_TTL = process.env.STREAM_EMPTY_TTL || 10; // 5 minutes
|
||||
const STREAM_TTL = process.env.STREAM_TTL || 4 * 60 * 60; // 4 hours
|
||||
const STREAM_EMPTY_TTL = process.env.STREAM_EMPTY_TTL || 30 * 60; // 30 minutes
|
||||
// When the streams are empty we want to cache it for less time in case of timeouts or failures
|
||||
|
|
|
|||
Loading…
Reference in a new issue