mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-26 14:14:44 +08:00
feat: optimize prefer and VideoCard
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user