That’s what I used to do before opting for online streaming.
Some minor gripes is that these files seemingly dont come with metadata, and you cant download a whole playlist or album at a time, both being huge bummers :/
I’m pretty sure yt-dlp can do this. Why not try Seal on F-droid.
Check out Cloudstream. It requires extensions to function and some of them include torrent providers.