mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add support for WideGrid images (#45)
This commit is contained in:
@@ -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