From 76b1ab3dacf988a4557f52130f54d6b174728440 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 5 Apr 2017 15:15:34 -0500 Subject: [PATCH] Change a few outliers to use status: Completed instead of Complete. --- fanficfare/adapters/adapter_fireflyfansnet.py | 2 +- fanficfare/adapters/adapter_fireflypopulliorg.py | 2 +- fanficfare/adapters/adapter_shriftweborgbfa.py | 2 +- fanficfare/adapters/adapter_trekfanfictionnet.py | 2 +- fanficfare/adapters/adapter_wwwlushstoriescom.py | 2 +- fanficfare/adapters/adapter_wwwutopiastoriescom.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fanficfare/adapters/adapter_fireflyfansnet.py b/fanficfare/adapters/adapter_fireflyfansnet.py index 65fb59f0..a7982312 100644 --- a/fanficfare/adapters/adapter_fireflyfansnet.py +++ b/fanficfare/adapters/adapter_fireflyfansnet.py @@ -110,7 +110,7 @@ class FireFlyFansNetSiteAdapter(BaseSiteAdapter): # complete self.chapterUrls.append((self.story.getMetadata('title'), self.url)) self.story.setMetadata('numChapters', 1) - self.story.setMetadata('status', 'Complete') + self.story.setMetadata('status', 'Completed') ## some stories do not have a summary listed, so I'm setting it here. summary = soup.find('span', {'id': 'MainContent_txtItemDescription'}) diff --git a/fanficfare/adapters/adapter_fireflypopulliorg.py b/fanficfare/adapters/adapter_fireflypopulliorg.py index 8716d1c2..884d8b2a 100644 --- a/fanficfare/adapters/adapter_fireflypopulliorg.py +++ b/fanficfare/adapters/adapter_fireflypopulliorg.py @@ -114,7 +114,7 @@ class FireflyPopulliOrgSiteAdapter(BaseSiteAdapter): # Since this is a site with the entire story on one page and there are no updates, I'm going # to set the status to complete. - self.story.setMetadata('status', 'Complete') + self.story.setMetadata('status', 'Completed') # use BeautifulSoup HTML parser to make everything easier to find. soup = self.make_soup(data) diff --git a/fanficfare/adapters/adapter_shriftweborgbfa.py b/fanficfare/adapters/adapter_shriftweborgbfa.py index 09926515..19835704 100644 --- a/fanficfare/adapters/adapter_shriftweborgbfa.py +++ b/fanficfare/adapters/adapter_shriftweborgbfa.py @@ -114,7 +114,7 @@ class BFAArchiveShriftwebOrgSiteAdapter(BaseSiteAdapter): # Since this is a site with the entire story on one page and there are no updates, I'm going # to set the status to complete. - self.story.setMetadata('status', 'Complete') + self.story.setMetadata('status', 'Completed') # use BeautifulSoup HTML parser to make everything easier to find. soup = self.make_soup(data) diff --git a/fanficfare/adapters/adapter_trekfanfictionnet.py b/fanficfare/adapters/adapter_trekfanfictionnet.py index 3e372e6d..6c28cb46 100644 --- a/fanficfare/adapters/adapter_trekfanfictionnet.py +++ b/fanficfare/adapters/adapter_trekfanfictionnet.py @@ -168,7 +168,7 @@ class TrekFanFictionNetSiteAdapter(BaseSiteAdapter): ## Since this site doesn't "update" the stories, I'm goig to set the status ## to Complete - self.story.setMetadata('status', "Complete") + self.story.setMetadata('status', "Completed") ## Getting the number of words ## I'm going to but using the entry-content that will be the same diff --git a/fanficfare/adapters/adapter_wwwlushstoriescom.py b/fanficfare/adapters/adapter_wwwlushstoriescom.py index d2a4d0e7..26f9c5ee 100644 --- a/fanficfare/adapters/adapter_wwwlushstoriescom.py +++ b/fanficfare/adapters/adapter_wwwlushstoriescom.py @@ -167,7 +167,7 @@ class WWWLushStoriesComAdapter(BaseSiteAdapter): # XXX # The stories on this site are all on one page, so we use the original URL self.chapterUrls.append((self.story.getMetadata('title'),self.url)) self.story.setMetadata('numChapters',len(self.chapterUrls)) - self.story.setMetadata('status', 'Complete') + self.story.setMetadata('status', 'Completed') #Need to get the metadata from the author's story page # The try/except is still needed, because some author pages are no longer on the site, but diff --git a/fanficfare/adapters/adapter_wwwutopiastoriescom.py b/fanficfare/adapters/adapter_wwwutopiastoriescom.py index 1bfa92e9..ff14f2ca 100644 --- a/fanficfare/adapters/adapter_wwwutopiastoriescom.py +++ b/fanficfare/adapters/adapter_wwwutopiastoriescom.py @@ -139,7 +139,7 @@ class WWWUtopiastoriesComAdapter(BaseSiteAdapter): # the status to complete self.chapterUrls.append(('',url)) self.story.setMetadata('numChapters',1) - self.story.setMetadata('status', 'Complete') + self.story.setMetadata('status', 'Completed') for detail in soup.findAll('li'):