casualsnek / onthespot

qt based music downloader written in python
GNU General Public License v2.0
741 stars 53 forks source link

Update spotify.py #50

Closed yuviDX closed 1 year ago

yuviDX commented 1 year ago

Fix conversion error after downloading

casualsnek commented 1 year ago

Can you make a small change? the conversion would fail if the album/track name format contains double quotes ". Can you change f"ffmpeg{ext} -i \"{temp_name}\" -ar 44100 -ac 2 -b:a {bitrate} {config.get('ffmpeg_args').strip()} \"{filename}\"", so that temp_name and filename variables have their quotes in them escaped too by doing temp_name.replace('"', r'\"') !