fix: fix mikan rss extractors

This commit is contained in:
2025-02-25 02:05:03 +08:00
parent 5bc5d98823
commit f327ea29f1
22 changed files with 2504 additions and 159 deletions

View File

@@ -1,8 +1,11 @@
use bytes::Bytes;
use reqwest::IntoUrl;
use super::{bytes::fetch_bytes, HttpClient};
use super::{bytes::fetch_bytes, client::HttpClientTrait};
pub async fn fetch_image<T: IntoUrl>(client: Option<&HttpClient>, url: T) -> color_eyre::eyre::Result<Bytes> {
pub async fn fetch_image<T: IntoUrl, H: HttpClientTrait>(
client: &H,
url: T,
) -> color_eyre::eyre::Result<Bytes> {
fetch_bytes(client, url).await
}