mirror of
https://github.com/djibux/BoilR.git
synced 2026-12-01 01:41:59 +01:00
Add support for WideGrid images (#45)
This commit is contained in:
1 parent
1f9d18c43a
commit
3f5c99c30e
2 files changed
+5
No files matched your search
@@ -86,6 +86,7 @@ async fn search_fo_to_download(
|
||||
let images = vec![
|
||||
format!("{}_hero.png", s.app_id),
|
||||
format!("{}p.png", s.app_id),
|
||||
format!("{}.png", s.app_id),
|
||||
format!("{}_logo.png", s.app_id),
|
||||
format!("{}_bigpicture.png", s.app_id),
|
||||
];
|
||||
@@ -118,6 +119,7 @@ async fn search_fo_to_download(
|
||||
ImageType::Logo,
|
||||
ImageType::Hero,
|
||||
ImageType::Grid,
|
||||
ImageType::WideGrid,
|
||||
ImageType::BigPicture,
|
||||
];
|
||||
let mut to_download = vec![];
|
||||
@@ -168,6 +170,7 @@ async fn search_fo_to_download(
|
||||
ImageType::Hero => Hero(Some(hero_parameters)),
|
||||
ImageType::BigPicture => Grid(Some(big_picture_parameters)),
|
||||
ImageType::Grid => Grid(Some(grid_parameters)),
|
||||
ImageType::WideGrid => Grid(Some(big_picture_parameters)),
|
||||
ImageType::Logo => Logo(Some(logo_parameters)),
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
pub enum ImageType {
|
||||
Hero,
|
||||
Grid,
|
||||
WideGrid,
|
||||
Logo,
|
||||
BigPicture,
|
||||
}
|
||||
@@ -11,6 +12,7 @@ impl ImageType {
|
||||
match self {
|
||||
ImageType::Hero => format!("{}_hero.png", app_id),
|
||||
ImageType::Grid => format!("{}p.png", app_id),
|
||||
ImageType::WideGrid => format!("{}.png", app_id),
|
||||
ImageType::Logo => format!("{}_logo.png", app_id),
|
||||
ImageType::BigPicture => format!("{}_bigpicture.png", app_id),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user