mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-28 03:02:18 +01:00
Change to with/without www. code to work with https also.
This commit is contained in:
parent
539426b41d
commit
8cf6f210e6
1 changed files with 2 additions and 2 deletions
|
|
@ -223,11 +223,11 @@ def getClassFor(url):
|
|||
domain = domain.replace("www.","")
|
||||
#logger.debug("trying site:without www: "+domain)
|
||||
cls = getClassFromList(domain)
|
||||
fixedurl = fixedurl.replace("http://www.","http://")
|
||||
fixedurl = re.sub(r"^http(s?)://www\.",r"http\1://",fixedurl)
|
||||
if not cls:
|
||||
#logger.debug("trying site:www."+domain)
|
||||
cls = getClassFromList("www."+domain)
|
||||
fixedurl = fixedurl.replace("http://","http://www.")
|
||||
fixedurl = re.sub(r"^http(s?)://",r"http\1://www.",fixedurl)
|
||||
|
||||
if cls:
|
||||
fixedurl = cls.stripURLParameters(fixedurl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue