diff --git a/fanficfare/adapters/adapter_fireflyfansnet.py b/fanficfare/adapters/adapter_fireflyfansnet.py index a6abba78..160815d7 100644 --- a/fanficfare/adapters/adapter_fireflyfansnet.py +++ b/fanficfare/adapters/adapter_fireflyfansnet.py @@ -133,7 +133,7 @@ class FireFlyFansNetSiteAdapter(BaseSiteAdapter): # which is usualy FireFly on this site, but I'm going to get them # anyway.a category = soup.find('span', {'id': 'MainContent_txtItemDetails'}) - category = stripHTML(unicode(category).replace(u"\xc2\xa0", ' ')) + category = stripHTML(unicode(category).replace(u"\xa0", u' ')) metad = category.split(' ') for meta in metad: if ":" in meta: diff --git a/fanficfare/adapters/adapter_fireflypopulliorg.py b/fanficfare/adapters/adapter_fireflypopulliorg.py index a49b8abc..07539ed1 100644 --- a/fanficfare/adapters/adapter_fireflypopulliorg.py +++ b/fanficfare/adapters/adapter_fireflypopulliorg.py @@ -186,7 +186,7 @@ class FireflyPopulliOrgSiteAdapter(BaseSiteAdapter): # There alot of nbsp's (non broken spaces) in here, so I'm going to remove them # I'm also getting rid of the bold tags and the nextline characters to make it # easier to get the information below - story = repr(story).replace(b'\\xa0', '').replace(' ',' ').replace( + story = repr(story).replace(u'\\xa0', '').replace(' ',' ').replace( '','').replace('','').replace(r'\n','') story = self.make_soup(story).find('p') story_a = story.find('a') @@ -319,7 +319,7 @@ class FireflyPopulliOrgSiteAdapter(BaseSiteAdapter): # the end of the section, which has alot of extraneous things, then adding my own div # wrapper, recreating the soup, then getting that div from the soup again, before sending to # the writers. - story = repr(story).replace(b'\\xa0', '').replace(' ',' ').replace(r'\n','').strip() + story = repr(story).replace(u'\\xa0', '').replace(' ',' ').replace(r'\n','').strip() story = story[12:] story = story[:story.find('
Please <')] story = '