feat: optimize prefer and VideoCard

This commit is contained in:
shinya
2025-07-11 13:23:55 +08:00
parent f69c7e9d0d
commit d6467db6cc
4 changed files with 30 additions and 476 deletions

View File

@@ -176,10 +176,11 @@ function PlayPageClient() {
return null;
}
const firstEpisodeUrl = source.episodes[0];
const testResult = await getVideoResolutionFromM3u8(
firstEpisodeUrl
);
const episodeUrl =
source.episodes.length > 1
? source.episodes[1]
: source.episodes[0];
const testResult = await getVideoResolutionFromM3u8(episodeUrl);
return {
source,