missing comma

This commit is contained in:
manetta 2021-02-17 17:16:09 +01:00
parent ad1cb276b9
commit 1638748a21

View File

@ -48,7 +48,7 @@ def download(self, message):
parsed_url = urlparse(message.url) parsed_url = urlparse(message.url)
filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's
print('as the file: ', filename) print('as the file: ', filename)
path = os.path.join(self.output, message.room media_type) path = os.path.join(self.output, message.room, media_type)
if not os.path.isdir(path): if not os.path.isdir(path):
os.mkdir(path) os.mkdir(path)
file_path = os.path.join(path, filename) file_path = os.path.join(path, filename)