mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-04 13:35:36 +05:00
feat/fix: add support for custom episode urls
This commit is contained in:
parent
9254703c08
commit
f87ee16cbb
1 changed files with 16 additions and 0 deletions
|
@ -125,6 +125,22 @@ export const ReleasePlayerCustom = (props: {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (episode.selected.url.toLowerCase().endsWith(".mp4")) {
|
||||
SetPlayerProps({
|
||||
src: episode.selected.url,
|
||||
poster: null,
|
||||
type: "mp4",
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (episode.selected.url.toLowerCase().endsWith(".m3u8")) {
|
||||
SetPlayerProps({
|
||||
src: episode.selected.url,
|
||||
poster: null,
|
||||
type: "hls",
|
||||
});
|
||||
return;
|
||||
}
|
||||
setPlayerError({
|
||||
message: `Источник "${source.selected.name}" не поддерживается`,
|
||||
detail: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue