feat: added episode number to estimated anime schedule
This commit is contained in:
@@ -55,6 +55,7 @@ async function scrapeEstimatedSchedule(
|
|||||||
?.trim() || null,
|
?.trim() || null,
|
||||||
airingTimestamp,
|
airingTimestamp,
|
||||||
secondsUntilAiring: Math.floor((airingTimestamp - Date.now()) / 1000),
|
secondsUntilAiring: Math.floor((airingTimestamp - Date.now()) / 1000),
|
||||||
|
episode: Number($(el).find("a .fd-play button").text().trim().split(" ")[1])
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ type EstimatedSchedule = {
|
|||||||
jname: string | null;
|
jname: string | null;
|
||||||
airingTimestamp: number;
|
airingTimestamp: number;
|
||||||
secondsUntilAiring: number;
|
secondsUntilAiring: number;
|
||||||
|
episode: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ScrapedEstimatedSchedule = {
|
export type ScrapedEstimatedSchedule = {
|
||||||
|
|||||||
Reference in New Issue
Block a user