👾 Fixing build error compile

pull/46/head
capitanwesler 4 years ago
parent f2e13f5201
commit d5550bbaeb

@ -752,9 +752,6 @@ export default class AnimeController {
data = await videoServersJK(id);
}
switch (id) {
}
if (data) {
if (redisClient.connected) {
/* Set the key in the redis cache. */

@ -367,9 +367,10 @@ export const jkanimeInfo = async (id: string | undefined, mal_id: number) => {
console.log(err);
}
countEpisodes = $('div.anime__pagination a')
if ($!) {
countEpisodes = $!('div.anime__pagination a')
.map((index: number, element: cheerio.Element) => {
return $(element).text();
return $!(element).text();
})
.get();
@ -457,7 +458,10 @@ export const jkanimeInfo = async (id: string | undefined, mal_id: number) => {
return episodesList;
} else {
return null;
return undefined;
}
} else {
return undefined;
}
};
@ -493,6 +497,7 @@ export const monoschinosInfo = async (
console.log(err);
}
if ($!) {
if (extraInfo) {
let broadCastDate = new Date();
let dd: number, mm: string | number, yyyy: number;
@ -547,7 +552,7 @@ export const monoschinosInfo = async (
}
}
$('.SerieCaps a').each((index: number, element: cheerio.Element) => {
$!('.SerieCaps a').each((index: number, element: cheerio.Element) => {
let episode: number;
$(element)
@ -586,7 +591,10 @@ export const monoschinosInfo = async (
return episodeList;
} else {
return null;
return undefined;
}
} else {
return undefined;
}
};
@ -620,6 +628,7 @@ export const tioanimeInfo = async (id: string | undefined, mal_id: number) => {
console.log(err);
}
if ($!) {
if (extraInfo) {
let broadCastDate = new Date();
let dd: number, mm: string | number, yyyy: number;
@ -674,12 +683,12 @@ export const tioanimeInfo = async (id: string | undefined, mal_id: number) => {
}
}
const scripts: cheerio.Element[] = $('script').toArray();
const scripts: cheerio.Element[] = $!('script').toArray();
for (const script of scripts) {
if ($(script).html()!.includes('anime_info')) {
if ($!(script).html()!.includes('anime_info')) {
anime_eps = JSON.parse(
$(script).html()!.split('var episodes = ')[1].split(';')[0],
$!(script).html()!.split('var episodes = ')[1].split(';')[0],
);
}
}
@ -708,6 +717,9 @@ export const tioanimeInfo = async (id: string | undefined, mal_id: number) => {
}
return episodesList;
} else {
return undefined;
}
};
export const videoServersMonosChinos = async (id: string) => {

Loading…
Cancel
Save