pmvhaven fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user