added download monitor
This commit is contained in:
@@ -28,6 +28,7 @@ type DownloadAnimeBody =
|
||||
language: string;
|
||||
url: string;
|
||||
}[];
|
||||
duration?: number;
|
||||
chapters?: {
|
||||
title: string;
|
||||
start_time: number;
|
||||
@@ -38,6 +39,7 @@ type DownloadAnimeBody =
|
||||
anilist_id: number;
|
||||
episode_number: number;
|
||||
stream_url: string;
|
||||
duration?: number;
|
||||
is_master: true;
|
||||
variant: {
|
||||
resolution: string;
|
||||
@@ -256,6 +258,7 @@ export async function downloadAnime(request: FastifyRequest<{ Body: DownloadAnim
|
||||
anilist_id,
|
||||
episode_number,
|
||||
stream_url,
|
||||
duration,
|
||||
is_master,
|
||||
subtitles,
|
||||
chapters
|
||||
@@ -283,7 +286,8 @@ export async function downloadAnime(request: FastifyRequest<{ Body: DownloadAnim
|
||||
episodeNumber: episode_number,
|
||||
streamUrl: proxyUrl,
|
||||
subtitles: proxiedSubs,
|
||||
chapters
|
||||
chapters,
|
||||
totalDuration: duration
|
||||
};
|
||||
|
||||
if (is_master === true) {
|
||||
|
||||
Reference in New Issue
Block a user