mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Add cleanup method to profiles to support logging out.
This commit is contained in:
parent
ad25f2057f
commit
a69307c5f1
@ -151,6 +151,9 @@ class DefaultProfile(object):
|
||||
|
||||
|
||||
def parse_feeds(self):
|
||||
'''
|
||||
Create list of articles from a list of feeds.
|
||||
'''
|
||||
feeds = self.get_feeds()
|
||||
articles = {}
|
||||
for title, url in feeds:
|
||||
@ -213,6 +216,10 @@ class DefaultProfile(object):
|
||||
|
||||
|
||||
def cleanup(self):
|
||||
'''
|
||||
Called after LRF file has been generated. Use it to do any cleanup like
|
||||
logging out of subscription sites, etc.
|
||||
'''
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user