From 7417d8a45f4a28864925e083f12bfb6c5f789ecd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 24 Jul 2021 12:53:37 -0700 Subject: [PATCH] Replace colon with hash, for port numbers going to folder names. --- OpenDirDL/opendirdl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenDirDL/opendirdl.py b/OpenDirDL/opendirdl.py index 782a33d..11187d8 100644 --- a/OpenDirDL/opendirdl.py +++ b/OpenDirDL/opendirdl.py @@ -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)