forked from varia/bots
missing comma
This commit is contained in:
parent
ad1cb276b9
commit
1638748a21
@ -48,7 +48,7 @@ def download(self, message):
|
||||
parsed_url = urlparse(message.url)
|
||||
filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's
|
||||
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):
|
||||
os.mkdir(path)
|
||||
file_path = os.path.join(path, filename)
|
||||
|
Loading…
Reference in New Issue
Block a user