7
7
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
10
9
from urlparse import urldefrag
11
13
from calibre.ebooks.oeb.base import CSS_MIME, OEB_DOCS
15
16
class ManifestTrimmer(object):
17
26
oeb.logger.info('Trimming unused files from manifest...')
20
29
for term in oeb.metadata:
21
30
for item in oeb.metadata[term]:
22
31
if item.value in oeb.manifest.hrefs: