refactor: replace amvstrm source with aniwatch

This commit is contained in:
2024-08-18 21:37:13 -04:00
parent 0bcc547ede
commit 1a06eb51eb
14 changed files with 179 additions and 262 deletions

View File

@@ -0,0 +1,11 @@
export interface SkipTime {
start: number;
end: number;
}
export function convertSkipTime(skipTime: SkipTime): number[] | undefined {
return typeof skipTime?.start === "number" &&
typeof skipTime?.end === "number"
? [skipTime.start, skipTime.end].map((seconds) => Math.floor(seconds))
: undefined;
}