mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-23 23:32:32 -04:00
IGN:...
This commit is contained in:
@@ -139,6 +139,8 @@ class RecursiveFetcher(object, LoggingInterface):
|
||||
if self.keep_only_tags:
|
||||
body = Tag(soup, 'body')
|
||||
try:
|
||||
if isinstance(self.keep_only_tags, dict):
|
||||
self.keep_only_tags = [self.keep_only_tags]
|
||||
for spec in self.keep_only_tags:
|
||||
for tag in soup.find('body').findAll(**spec):
|
||||
body.insert(len(body.contents), tag)
|
||||
|
||||
Reference in New Issue
Block a user