mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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):
|
def parse_feeds(self):
|
||||||
|
'''
|
||||||
|
Create list of articles from a list of feeds.
|
||||||
|
'''
|
||||||
feeds = self.get_feeds()
|
feeds = self.get_feeds()
|
||||||
articles = {}
|
articles = {}
|
||||||
for title, url in feeds:
|
for title, url in feeds:
|
||||||
@ -213,6 +216,10 @@ class DefaultProfile(object):
|
|||||||
|
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
'''
|
||||||
|
Called after LRF file has been generated. Use it to do any cleanup like
|
||||||
|
logging out of subscription sites, etc.
|
||||||
|
'''
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user