meeb / bandcampsync

Downloads your Bandcamp purchases automatically
BSD 3-Clause "New" or "Revised" License
142 stars 7 forks source link

Sometimes, mp3 files are left with a `*.mp3-320` file extension #18

Closed evmmc closed 5 months ago

evmmc commented 5 months ago

Basically, title.

Steps to reproduce - download a large collection, a number of tracks usually are bound to have the wrong file extension.

Fine the files with:

find  /your/directory/path -name '*.mp3-320'

Workaround: rename the files with:

find /your/directory/path -type f -name '*mp3-320' -exec sh -c 'mv "$1" "${1%-320}"' _ {} \;
meeb commented 5 months ago

This was because single file downloads had to use the bandcamp supplied format as the file extension and this sometimes included the bitrate along with the format. The above commit should fix this and I'll bundle it into a release later. Thanks for the issue.