mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-10-06 01:22:16 +00:00
fix: do not cache local media paths
This commit is contained in:
@@ -290,7 +290,7 @@ impl PixivAPI {
|
||||
let mut unpacked = 0u64;
|
||||
let mut extension = "jpg";
|
||||
for i in 0..archive.len() {
|
||||
let mut entry = archive.by_index(i).map_err(|e| e.to_string())?;
|
||||
let entry = archive.by_index(i).map_err(|e| e.to_string())?;
|
||||
if entry.size() > 64 * 1024 * 1024 {
|
||||
return Err(format!("frame {i} exceeds size cap"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user