mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Accept .zip as an alias for .apkg
The legacy importer does this already, because some web servers and clients sniff the content type of .apkg files, and "helpfully" rename them to .zip
This commit is contained in:
parent
72389b97be
commit
6a95141fd9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def import_file(mw: aqt.main.AnkiQt, path: str) -> None:
|
|||
showInfo(tr.importing_anki2_files_are_not_directly_importable())
|
||||
elif is_collection_package(filename):
|
||||
maybe_import_collection_package(mw, path)
|
||||
elif filename.endswith(".apkg"):
|
||||
elif filename.endswith(".apkg") or filename.endswith(".zip"):
|
||||
import_anki_package(mw, path)
|
||||
else:
|
||||
showWarning(
|
||||
|
|
Loading…
Reference in a new issue