mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-10-30 12:50:24 +08:00
Allow https links from SV forum stories, too.
This commit is contained in:
1 parent
d5403e2705
commit
21872601db
1 file changed
+3
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user