mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
fix #4220
This commit is contained in:
parent
13bd10e1cb
commit
ffe69cb328
1 changed files with 4 additions and 1 deletions
|
@ -1531,7 +1531,10 @@ class Abstract_Wallet(PrintError):
|
|||
baseurl = 'file://' + rdir
|
||||
rewrite = config.get('url_rewrite')
|
||||
if rewrite:
|
||||
try:
|
||||
baseurl = baseurl.replace(*rewrite)
|
||||
except BaseException as e:
|
||||
self.print_stderr('Invalid config setting for "url_rewrite". err:', e)
|
||||
out['request_url'] = os.path.join(baseurl, 'req', key[0], key[1], key, key)
|
||||
out['URI'] += '&r=' + out['request_url']
|
||||
out['index_url'] = os.path.join(baseurl, 'index.html') + '?id=' + key
|
||||
|
|
Loading…
Add table
Reference in a new issue