slash replace for trubleshoting download

This commit is contained in:
localhost_frssoft 2022-11-14 16:23:17 +03:00
parent 52b2b208e3
commit 5a61354112

View File

@ -17,6 +17,6 @@ def download_track(url, name=None):
if not name:
name = url.split(r'/')[-1]
with open(name, 'wb') as f:
with open(name.replace(r'/', '_'), 'wb') as f:
f.write(r.content)
return name