diff --git a/fanficfare/adapters/base_xenforoforum_adapter.py b/fanficfare/adapters/base_xenforoforum_adapter.py index 406ab25..8d830b9 100644 --- a/fanficfare/adapters/base_xenforoforum_adapter.py +++ b/fanficfare/adapters/base_xenforoforum_adapter.py @@ -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))