mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Fix archived collection name on apkg import
This commit is contained in:
parent
bf5254e882
commit
592e7e240c
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ impl ExchangeData {
|
|||
}
|
||||
|
||||
fn collection_to_tempfile(archive: &mut ZipArchive<File>) -> Result<NamedTempFile> {
|
||||
let mut zip_file = archive.by_name(Meta::new_legacy().collection_filename())?;
|
||||
let meta = Meta::from_archive(archive)?;
|
||||
let mut zip_file = archive.by_name(meta.collection_filename())?;
|
||||
let mut tempfile = NamedTempFile::new()?;
|
||||
io::copy(&mut zip_file, &mut tempfile)?;
|
||||
Ok(tempfile)
|
||||
|
|
Loading…
Reference in a new issue