diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c92b49..196f99b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.8] - 2023-09-20 + +### Fixed + +- Fixed media importing broken for some users. + ## [1.5.7] - 2023-09-17 ### Fixed @@ -111,7 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.0] - 2022-01-17 Initial release - +[1.5.8]: https://github.com/abdnh/AnkiApp-importer/compare/1.5.7...1.5.8 [1.5.7]: https://github.com/abdnh/AnkiApp-importer/compare/1.5.6...1.5.7 [1.5.6]: https://github.com/abdnh/AnkiApp-importer/compare/1.5.5...1.5.6 [1.5.5]: https://github.com/abdnh/AnkiApp-importer/compare/1.5.4...1.5.5 diff --git a/src/ankiapp_importer.py b/src/ankiapp_importer.py index 152a971..be14511 100644 --- a/src/ankiapp_importer.py +++ b/src/ankiapp_importer.py @@ -239,6 +239,8 @@ class AnkiAppImporter: def __init__(self, mw: AnkiQt, filename: str): self.mw = mw self.BLOB_REF_PATTERNS = ( + # Use Anki's HTML media patterns too for completeness + *(re.compile(p) for p in mw.col.media.html_media_regexps), re.compile(r"{{blob (?P.*?)}}"), # AnkiApp uses a form like `