feat: added episode number to estimated anime schedule

This commit is contained in:
WBRK-dev
2024-07-21 09:58:18 +02:00
parent 160eb2222b
commit bdfebb5e32
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@ async function scrapeEstimatedSchedule(
?.trim() || null,
airingTimestamp,
secondsUntilAiring: Math.floor((airingTimestamp - Date.now()) / 1000),
episode: Number($(el).find("a .fd-play button").text().trim().split(" ")[1])
});
});
+1
View File
@@ -5,6 +5,7 @@ type EstimatedSchedule = {
jname: string | null;
airingTimestamp: number;
secondsUntilAiring: number;
episode: number;
};
export type ScrapedEstimatedSchedule = {