scdl-org / scdl

Soundcloud Music Downloader
GNU General Public License v2.0
3.35k stars 336 forks source link

File missed after convert to .flac #337

Closed karta1133852 closed 4 years ago

karta1133852 commented 4 years ago

I had downloaded the tracks from a user and use --flac to convert .wav to .flac But it seems that it cannot find the converted file. And if I not using --flac option, it can download .wav file successfully.

Uploaded tracks n°1 of 194 Downloading Edward Shakhov - Chimes (Layer 1) [OST World Of Warships] Downloading the original file. filename : Edward Shakhov - Chimes (Layer 1) [OST World Of Warships].wav [################################] 24272/24272 - 00:00:04 Converting to .flac... Commands: ['ffmpeg', '-i', "'Edward Shakhov - Chimes (Layer 1) [OST World Of Warships].wav'", "'Edward Shakhov - Chimes (Layer 1) [OST World Of Warships].flac'", '-loglevel', 'fatal'] Setting tags... Extracting date: 2020-03-25T10:17:12Z 2020-03-25 10:17:12 Error trying to set the tags... [Errno 2] No such file or directory: 'Edward Shakhov - Chimes (Layer 1) [OST World Of Warships].flac' Cannot update utime of file Edward Shakhov - Chimes (Layer 1) [OST World Of Warships].flac Downloaded.

flyingrub commented 4 years ago

You do not have ffmpeg installed correctly on your system. Install it and make sure you it is available in your PATH.

karta1133852 commented 4 years ago

You do not have ffmpeg installed correctly on your system. Install it and make sure you it is available in your PATH.

Well, I can run ffmpeg in the ternimal for sure. Both fail in Windows 10 and Ubuntu 18.04

whatisthisidont commented 4 years ago

I have a similar problem on macOS, but I can't download tracks even when not converting to FLAC. I have ffmpeg installed correctly and available in my PATH, too.

Found a track
Downloading aaaa
filename : aaaa.mp3
https://api-v2.soundcloud.com/media/soundcloud:tracks:----/----/stream/hls?client_id=-----
Setting tags...
Extracting date: 2017-11-16T23:54:24Z 2017-11-16 23:54:24
Error trying to set the tags...
[Errno 2] No such file or directory: 'aaaa.mp3'
Cannot update utime of file
aaaa.mp3 Downloaded.
flyingrub commented 4 years ago

This should be fixed on the latest master branch. Could you update and test if it does still happens ?

karta1133852 commented 4 years ago

This should be fixed on the latest master branch. Could you update and test if it does still happens ?

It works! Thanks :)