LaurenceRawlings / savify

Download Spotify songs to mp3 with full metadata and cover art!
MIT License
1.17k stars 80 forks source link

Option to download only audio files higher than certain bitrate #71

Closed rockstar2020 closed 1 year ago

rockstar2020 commented 1 year ago

Hello, First of all thank your for the great code! It's awesome! I have a feature request and am hoping you could consider adding it. Basically I don't like to download any audio files with variable bitrates lower than 200kbps. In fact if the quality of the music is that low I'd rather not have it in my library. Is there a way to add a filter option in the command line which defines the lowest accepted quality? Accordingly in your code first check the highest available bitrates and then only download if it satisfies the filter condition.

For example something like adding [abr>128] after "best" or even as a separate filter tag. See below:

savify "https://open.spotify.com/track/4Dju9g4NCz0LDxwcjonSvI" -q best[abr>128] -f mp3 -o "/path/to/downloads"

Many thanks

rockstar2020 commented 1 year ago

Any thoughts, feedback?!! Many thanks in advance