Allow https links from SV forum stories, too.

This commit is contained in:
Jim Miller
2015-07-03 11:15:46 -05:00
parent d5403e2705
commit 21872601db
@@ -155,7 +155,9 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
if not url.startswith('http'):
url = self.getURLPrefix()+'/'+url
if (url.startswith(self.getURLPrefix()) or url.startswith('http://'+self.getSiteDomain())) and ('/posts/' in url or '/threads/' in url):
if ( url.startswith(self.getURLPrefix()) or
url.startswith('http://'+self.getSiteDomain()) or
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())
logger.debug("used chapurl:%s"%(url))