mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-25 17:11:27 +00:00
slash replace for trubleshoting download
This commit is contained in:
parent
52b2b208e3
commit
5a61354112
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue