The host name correction logic (ISFDBHostCorrection in common/library.py) expects 'www.isfdb.org' and doesn't account for the fact that we also support "isfdb.org" (without the leading "www.") as of 2022. The following code has been proposed as a replacement for the current function:
def ISFDBHostCorrection(value, mode = 'start'):
# Replace www.isfdb.org with the current host/Wiki location and adjust http/https
if not value:
return value
if mode == 'start':
value = re.sub(r'^https?://(www.)?isfdb.org/wiki/', '%s://%s/' % (PROTOCOL, WIKILOC), value)
elif mode == 'all':
value = re.sub(r'https?://(www.)?isfdb.org/wiki/', '%s://%s/' % (PROTOCOL, WIKILOC), value)
Anonymous