Use broader selectors for get_fonts media type filter.

This commit is contained in:
Ethan Dalool 2020-08-26 17:08:12 -07:00
parent 8b7027a7a3
commit 8c888353e5

View file

@ -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,
)