mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-26 08:09:19 +02: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:
|
if not name:
|
||||||
name = url.split(r'/')[-1]
|
name = url.split(r'/')[-1]
|
||||||
|
|
||||||
with open(name, 'wb') as f:
|
with open(name.replace(r'/', '_'), 'wb') as f:
|
||||||
f.write(r.content)
|
f.write(r.content)
|
||||||
return name
|
return name
|
||||||
|
|
Loading…
Reference in New Issue