mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
use ggemini 0.13.0 version from repository
This commit is contained in:
parent
596589a2f4
commit
e135332698
2 changed files with 5 additions and 10 deletions
|
|
@ -528,8 +528,8 @@ impl Page {
|
|||
}
|
||||
);
|
||||
} else { // browse
|
||||
match response.meta.mime {
|
||||
Some(gemini::client::connection::response::meta::Mime::TextGemini) => {
|
||||
match response.meta.mime.unwrap().value.to_lowercase().as_str() {
|
||||
"text/gemini" => {
|
||||
// Read entire input stream to buffer
|
||||
gemini::client::connection::response::data::Text::from_stream_async(
|
||||
response.connection.stream(),
|
||||
|
|
@ -592,12 +592,7 @@ impl Page {
|
|||
}
|
||||
);
|
||||
},
|
||||
Some(
|
||||
gemini::client::connection::response::meta::Mime::ImagePng |
|
||||
gemini::client::connection::response::meta::Mime::ImageGif |
|
||||
gemini::client::connection::response::meta::Mime::ImageJpeg |
|
||||
gemini::client::connection::response::meta::Mime::ImageWebp
|
||||
) => {
|
||||
"image/png" | "image/gif" | "image/jpeg" | "image/webp" => {
|
||||
// Final image size unknown, show loading widget
|
||||
let status = content.to_status_loading(
|
||||
Some(Duration::from_secs(1)) // show if download time > 1 second
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue