fixed warnings
This commit is contained in:
@@ -974,14 +974,14 @@ impl ShooshtimeProvider {
|
||||
.map(|value| self.normalize_url(&value));
|
||||
|
||||
let mut formats = Vec::new();
|
||||
if let Some(url) = &primary_url {
|
||||
if primary_url.is_some() {
|
||||
let format_url = self.proxied_video(options, page_url, Some(&primary_quality));
|
||||
formats.push(
|
||||
VideoFormat::new(format_url, primary_quality.clone(), "mp4".to_string())
|
||||
.format_id(primary_quality.clone()),
|
||||
);
|
||||
}
|
||||
if let Some(url) = &alt_url {
|
||||
if alt_url.is_some() {
|
||||
let format_url = self.proxied_video(options, page_url, Some(&alt_quality));
|
||||
formats.push(
|
||||
VideoFormat::new(format_url, alt_quality.clone(), "mp4".to_string())
|
||||
|
||||
Reference in New Issue
Block a user