Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Add each edition to a Series for better organization
Browse files Browse the repository at this point in the history
  • Loading branch information
dlo9 committed Jul 31, 2019
1 parent 70b6a63 commit be71a15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pocket.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Pocket(BasicNewsRecipe):
oldest_article = 7
max_articles_per_feed = 100
archive_downloaded = True
series_name = 'Pocket'

# Inherited developer settings
auto_cleanup = True
Expand Down Expand Up @@ -246,3 +247,7 @@ class Pocket(BasicNewsRecipe):
# (e.g. reauthorization needed) so there is no archiving to do
if self.config.state == PocketConfig.AuthState.Authorized:
self.archive()

# TODO: This works with EPUB, but not mobi/azw3
def postprocess_book(self, oeb, opts, log):
oeb.metadata.add('series', self.series_name)

0 comments on commit be71a15

Please sign in to comment.