yyyyyyyan / bandcamper

Bandcamp downloader
MIT License
44 stars 9 forks source link

Add `ext` as possible option with `--otherdir` #18

Open Brisppy opened 9 months ago

Brisppy commented 9 months ago

This PR allows the use of {ext} with --otherdir. This is done by grabbing the extension from the last track inside the album directory and using its' metadata as albums can only be downloaded in one format (as far as I'm aware). Not sure if there's a better way of doing this but I'm open to anything.

Also wanted to bring something else up with --output. By default if using just --output you end up with a spam of extra folders containing just album covers (due to the --otherdir default). I think it would be nice to clean these up automatically, potentially by removing the extra files if --output is provided but not --otherdir, or try and create a --otherdir based on the provided --output format.

Again thanks for making this project!