From 8c888353e5c7c5084f0613e183045cf8ce44b01e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 26 Aug 2020 17:08:12 -0700 Subject: [PATCH] Use broader selectors for get_fonts media type filter. --- epubfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epubfile.py b/epubfile.py index 3003ce3..e4be293 100644 --- a/epubfile.py +++ b/epubfile.py @@ -726,7 +726,7 @@ class Epub: def get_fonts(self, *, soup=False): return self.get_manifest_items( - filter='[media-type^="application/font"],[media-type^="font/"]', + filter='[media-type*="font"],[media-type*="opentype"]', soup=soup, )