pmvhaven fix

This commit is contained in:
Simon
2026-06-15 21:40:09 +00:00
parent b761325018
commit c19e3ebbea

View File

@@ -175,6 +175,16 @@ impl PmvhavenProvider {
}
}
// Search API returns hlsMasterPlaylistUrl instead of videoUrl/key.
let hls_url = video
.get("hlsMasterPlaylistUrl")
.and_then(|v| v.as_str())
.unwrap_or("")
.trim();
if Self::is_direct_media_url(hls_url) {
return Some(hls_url.to_string());
}
None
}