advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.23k stars 164 forks source link

Setting to allow autodownloading of audiobook when next connected to wifi. #247

Open JamesDean3 opened 2 years ago

JamesDean3 commented 2 years ago

Is your feature request related to a problem? Please describe.

A lot of people have a couple limiting factors,

  1. They may not know how to safely open up their system to the internet.
  2. Data usage may be an issue over their cell network.

Describe the solution you'd like

Depending on the users circumstance, maybe have an option to always have the client download the entire book when starting it over a wifi connection or a particular Wifi connection. This option would help people in both those limiting factors.

If starting a new audiobook over a data, allow streaming but at next connection to a wifi or a particular wifi, have it then download the entire audiobook. (possibly show a prompt before starting stream though? idk). This would allow someone with the experience to run the server securely to have the option to stream, but only when necessary.

I've seen some suggestions that also ask for you to detect if the client is connected to a particular wifi connection, if so then use one address to connect, if not, then use another, the above options could possibly be tied into the same settings page.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Manually downloading a audiobook before leaving the house, but even if I am at home, I would still like it to download my entire audiobook to prevent any possible lagging or maybe if I'm walking around working on stuff outside, I might be on the edge of my wifi, which could possibly cause interruption, having the suggested options above would make it so I wouldn't have to always remember to manually download my audiobook.

Additional context

I don't know if there are any plans in the works for a play list, but if there is, it could also tie into that, for example, allow a user to set an option to always have the next x amount of books in the play list download (when connected to wifi), then prompt asking if the user would like to delete x from phone and start the next book in the play list at the end (instead of having it automatically delete from phone, just in case the audiobook got started without them knowing or the user fell asleep without setting sleep timer or realizing it was at the end of the book).

Thank you for this project! Love your server and client.

JamesDean3 commented 2 years ago

One other thing came to mind, I personally use wireguard to secure any connections i might need, usually from the outside in but some times I use it inside my network as well (usually when I forget to turn it off) I don't know if any other considerations needs to be put into the above suggestions in regards to vpns but figured I would bring it up just in case.

I know its usually easier to have those different variables in mind when coding it the first time instead of having to patch something in later.

elementalest commented 2 years ago

I think adding an option to disable downloading audiobooks locally unless on a specifically allowed wifi network would be the most general and flexible solution.

smoofus commented 1 year ago

Just adding my support for this enhancement! I'm migrating from stitcher since they are closing shop in August and an option to download x number of podcast episodes to mobile when connected to wifi so I don't have to think about it would be dope! That's really the biggest gap for me coming from stitcher.