Strip leading/trailing single or double quotes from chapter URLs. Author typo fix.

This commit is contained in:
Jim Miller
2015-09-23 22:25:59 -05:00
parent ba1c439d28
commit 7f00c56ecf
@@ -166,6 +166,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
url.startswith('https://'+self.getSiteDomain()) ) and ('/posts/' in url or '/threads/' in url):
# brute force way to deal with SB's http->https change when hardcoded http urls.
url = url.replace('http://'+self.getSiteDomain(),self.getURLPrefix())
url = re.sub(r'(^[\'"]+|[\'"]+$)','',url) # strip leading or trailing '" from incorrect quoting.
logger.debug("used chapurl:%s"%(url))
self.chapterUrls.append((name,url))
if url == useurl and 'First Post' == self.chapterUrls[0][0]: