From 875c894f914ab2ff2102eaa3f86b60d17ac120fb Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 12 Nov 2012 12:29:51 -0600 Subject: [PATCH] Allow 'On Hiatus' status for fimfiction.net. --- fanficdownloader/adapters/adapter_fimfictionnet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fanficdownloader/adapters/adapter_fimfictionnet.py b/fanficdownloader/adapters/adapter_fimfictionnet.py index 416cf624..3eb6e915 100644 --- a/fanficdownloader/adapters/adapter_fimfictionnet.py +++ b/fanficdownloader/adapters/adapter_fimfictionnet.py @@ -125,10 +125,12 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter): self.story.setMetadata("numChapters", len(self.chapterUrls)) # In the case of fimfiction.net, possible statuses are 'Completed', 'Incomplete', 'On Hiatus' and 'Cancelled' - # For the sake of bringing it in line with the other adapters, 'Incomplete' and 'On Hiatus' become 'In-Progress' + # For the sake of bringing it in line with the other adapters, 'Incomplete' becomes 'In-Progress' # and 'Complete' beomes 'Completed'. 'Cancelled' seems an important enough (not to mention more strictly true) # status to leave unchanged. - status = storyMetadata["status"].replace("Incomplete", "In-Progress").replace("On Hiatus", "In-Progress").replace("Complete", "Completed") + # Nov2012 - 'On Hiatus' is now passed, too. It's easy now for users to change/remove if they want + # with replace_metadata + status = storyMetadata["status"].replace("Incomplete", "In-Progress").replace("Complete", "Completed") self.story.setMetadata("status", status) self.story.setMetadata("rating", storyMetadata["content_rating_text"])