Use broader selectors for get_fonts media type filter.
This commit is contained in:
parent
8b7027a7a3
commit
8c888353e5
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ class Epub:
|
||||||
|
|
||||||
def get_fonts(self, *, soup=False):
|
def get_fonts(self, *, soup=False):
|
||||||
return self.get_manifest_items(
|
return self.get_manifest_items(
|
||||||
filter='[media-type^="application/font"],[media-type^="font/"]',
|
filter='[media-type*="font"],[media-type*="opentype"]',
|
||||||
soup=soup,
|
soup=soup,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue