jmshrv / finamp

A Jellyfin music client for mobile
Mozilla Public License 2.0
1.95k stars 128 forks source link

Custom Location Downloads #842

Open snarkywolverine opened 2 months ago

snarkywolverine commented 2 months ago

Hello!

I see that there's some support in the android app for downloading to a custom location - though there's also a huge warning about it being buggy.

Are there steps I can take as a user to work around the permissions issues? I was hoping there'd be something documented (similar to https://github.com/jmshrv/finamp/issues/134#issuecomment-1376841753 ) to help me get this to work, even if there are some extra hoops to jump through.

Thanks!

jmshrv commented 2 months ago

The biggest thing you can do is switch to the redesign beta - the download system was completely overhauled and is now much more reliable. You can join the beta on Google Play :)

Chaphasilor commented 2 months ago

Also, did you apply that command you linked yet? Did it help?

snarkywolverine commented 2 months ago

Thanks for the quick reply - I'll give the beta a try. The linked command above allowed me to download to the app data folder on my SD card - but I still couldn't read that file from elsewhere (which was my original goal).

snarkywolverine commented 2 months ago

Update - I'm on the beta, but still haven't cracked the code. I can download to the default directory just fine - both on the SD card and internal storage. However, specifying a different directory results in failures. In the logs, I see a TaskException "Operation not permitted" and an exception TaskHttpException, response code 416: Range Not Satisfiable when downloading ".

I haven't tried rerunning the above command yet...but since I can write to the appdir on the SD card, I suspect that's not the issue.

I looked at my Jellyfin server logs, expecting to see some details on the HTTP 416 ... but there's nothing relevant in that log.

Any other ideas I should try, or should I include more log information?

Samsung A32 5G, Android 13

jmshrv commented 2 months ago

hmm, could you send those Finamp logs? Custom paths in Android are still a massive pain so it wouldn't surprise me if the new system still isn't perfect (although in my mind the old system was practically broken for custom paths anyway)