mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-08 00:53:05 +01:00
Don't do URL quoting on file: URLs. Fix for spaces->+ breaking default cover.
This commit is contained in:
parent
b192fd0ad1
commit
ac16bfaeb3
1 changed files with 2 additions and 1 deletions
|
|
@ -1102,7 +1102,8 @@ class Configuration(configparser.SafeConfigParser):
|
|||
cache hits.
|
||||
'''
|
||||
|
||||
url = quote_plus(ensure_binary(url),safe=';/?:@&=+$,%&#')
|
||||
if not url.startswith('file:'): # file fetches fail on + for space
|
||||
url = quote_plus(ensure_binary(url),safe=';/?:@&=+$,%&#')
|
||||
|
||||
if self.getConfig('force_https'): ## For developer testing only.
|
||||
url = url.replace("http:","https:")
|
||||
|
|
|
|||
Loading…
Reference in a new issue