heqvyfetish fix for favs
This commit is contained in:
@@ -854,16 +854,7 @@ impl HeavyfetishProvider {
|
||||
let order = ["2160p", "1440p", "1080p", "720p", "480p", "360p", "240p"];
|
||||
let mut formats = Vec::new();
|
||||
|
||||
for quality in order {
|
||||
let Some(url) = seen.get(quality) else {
|
||||
continue;
|
||||
};
|
||||
let format = VideoFormat::new(url.clone(), quality.to_string(), "mp4".to_string())
|
||||
.format_id(quality.to_string())
|
||||
.http_header("Referer".to_string(), page_url.to_string())
|
||||
.http_header("User-Agent".to_string(), BROWSER_UA.to_string());
|
||||
formats.push(format);
|
||||
}
|
||||
|
||||
|
||||
Ok(formats)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user