Change console levels

This commit is contained in:
2024-10-19 21:08:11 +02:00
parent ad6502d824
commit 756998847c
4 changed files with 29 additions and 29 deletions

View File

@ -5,28 +5,28 @@ import { getData } from '../App';
export class MangaConnector
{
static async GetAllConnectors(): Promise<IMangaConnector[]> {
console.debug("Getting all MangaConnectors");
console.info("Getting all MangaConnectors");
return getData("http://127.0.0.1:6531/v2/Connector/Types")
.then((json) => {
console.debug("Got all MangaConnectors");
console.info("Got all MangaConnectors");
return (json as IMangaConnector[]);
});
}
static async GetMangaFromConnectorByTitle(connector: IMangaConnector, name: string): Promise<IManga[]> {
console.debug(`Getting Manga ${name}`);
console.info(`Getting Manga ${name}`);
return await getData(`http://127.0.0.1:6531/v2/Connector/${connector.name}/GetManga?title=${name}`)
.then((json) => {
console.debug(`Got Manga ${name}`);
console.info(`Got Manga ${name}`);
return (json as IManga[]);
});
}
static async GetMangaFromConnectorByUrl(connector: IMangaConnector, url: string): Promise<IManga> {
console.debug(`Getting Manga ${url}`);
console.info(`Getting Manga ${url}`);
return await getData(`http://127.0.0.1:6531/v2/Connector/${connector.name}/GetManga?url=${url}`)
.then((json) => {
console.debug(`Got Manga ${url}`);
console.info(`Got Manga ${url}`);
return (json as IManga);
});
}