Replace colon with hash, for port numbers going to folder names.

This commit is contained in:
voussoir 2021-07-24 12:53:37 -07:00
parent f9e2c16d9a
commit 7417d8a45f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -663,6 +663,7 @@ def download(
cur.execute('SELECT url FROM urls LIMIT 1')
url = cur.fetchone()[0]
outputdir = url_split(url)['domain']
outputdir = outputdir.replace(':', '#')
if isinstance(bytespersecond, str):
bytespersecond = bytestring.parsebytes(bytespersecond)