onthespot icon indicating copy to clipboard operation
onthespot copied to clipboard

[BUG] unable to download in .mp3

Open sys-admn-ploopy opened this issue 6 months ago • 3 comments

Describe the bug As the title says, I am unable to download filed in .mp3 files, with the downloads failing after max retries. Downloading in "raw format" works okay, but it would be nice to have song metadata/ album art... Not sure if I am doing something wrong on my end

I do have ffmpeg downloaded to PATH but it doesn't seem to be recognized:

[2024-08-19 22:30:50,789 :: worker.downloader.SESSION_DL_TH-a :: worker/downloader.py -> 222:      download_track() :: ERROR] -> Download failed for track by id '2cDCojn6uIBM6A5xTAbl3H', Unexpected error: Traceback (most recent call last):
  File "worker/downloader.py", line 168, in download_track
  File "utils/spotify.py", line 217, in convert_audio_format
  File "subprocess.py", line 408, in check_call
  File "subprocess.py", line 389, in call
  File "subprocess.py", line 1024, in __init__
  File "subprocess.py", line 1901, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
 !

for reference, my output for brew install ffmpeg:

➜  ~ brew install ffmpeg
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
Warning: ffmpeg 7.0.2 is already installed and up-to-date.
To reinstall 7.0.2, run:
  brew reinstall ffmpeg

Would appreciate any advice! tbh I may have downloaded ffmpeg incorrectly tbh...

System Information:

  • OS: MacOS
  • OnTheSpot Version: 0.5

Additional context

sys-admn-ploopy avatar Aug 20 '24 02:08 sys-admn-ploopy