mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 09:25:58 +01:00
Add cleanup method to profiles to support logging out.
This commit is contained in:
parent
29bbe3e72a
commit
ad25f2057f
2 changed files with 7 additions and 0 deletions
|
|
@ -160,6 +160,10 @@ def process_profile(args, options, logger=None):
|
|||
finally:
|
||||
os.chdir(cwd)
|
||||
finally:
|
||||
try:
|
||||
profile.cleanup()
|
||||
except:
|
||||
pass
|
||||
if tdir and os.path.isdir(tdir):
|
||||
if options.keep_downloaded_files:
|
||||
print 'Downloaded files in ', tdir
|
||||
|
|
|
|||
|
|
@ -212,6 +212,9 @@ def parse_feeds(self):
|
|||
return articles
|
||||
|
||||
|
||||
def cleanup(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def process_html_description(cls, tag):
|
||||
src = '\n'.join(tag.contents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue