mirror of
https://github.com/flibusta-apps/batch_downloader.git
synced 2025-12-06 06:15:37 +01:00
Fix
This commit is contained in:
@@ -100,6 +100,16 @@ pub async fn get_filename(object_type: ObjectType, object_id: u32, file_format:
|
||||
},
|
||||
};
|
||||
|
||||
let result_filename = {
|
||||
let postfix = match object_type {
|
||||
ObjectType::Sequence => "s",
|
||||
ObjectType::Author => "a",
|
||||
ObjectType::Translator => "t",
|
||||
};
|
||||
|
||||
format!("{result_filename}_{postfix}")
|
||||
};
|
||||
|
||||
let final_filename = {
|
||||
let transliterator = Transliterator::new(gost779b_ru());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user