Renames project to Knight Crawler

This commit is contained in:
Gabisonfire
2024-02-03 23:21:20 -05:00
parent a8173a0ba7
commit 5fe3f471e9
19 changed files with 77 additions and 56 deletions

View File

@@ -6,7 +6,7 @@ import { BadTokenError, AccessDeniedError, sameFilename } from './mochHelper.js'
import StaticResponse from './static.js';
const KEY = 'alldebrid';
const AGENT = 'torrentio';
const AGENT = 'knightcrawler';
export async function getCachedStreams(streams, apiKey) {
const options = await getDefaultOptions();

View File

@@ -224,14 +224,14 @@ function blackListToken(token, mochKey) {
function errorStreamResponse(mochKey, error, config) {
if (error === BadTokenError) {
return {
name: `Torrentio\n${MochOptions[mochKey].shortName} error`,
name: `Knightcrawler\n${MochOptions[mochKey].shortName} error`,
title: `Invalid ${MochOptions[mochKey].name} ApiKey/Token!`,
url: `${config.host}/${StaticResponse.FAILED_ACCESS}`
};
}
if (error === AccessDeniedError) {
return {
name: `Torrentio\n${MochOptions[mochKey].shortName} error`,
name: `Knightcrawler\n${MochOptions[mochKey].shortName} error`,
title: `Expired/invalid ${MochOptions[mochKey].name} subscription!`,
url: `${config.host}/${StaticResponse.FAILED_ACCESS}`
};