spotifyd icon indicating copy to clipboard operation
spotifyd copied to clipboard

Playing music offline

Open mustaphazorgati opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I don't always have an internet connection. Thus I can't play my music everywhere

Describe the solution you'd like A clear and concise description of what you want to happen. An offline mode like the official spotify client where you can pre-download songs and albums and play them back whenever you're on the go. E.g. in the subway or in the train.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Any solution, even some hacky ones on my side, where I can play music offline is fine :)

Is this enough context, or do you need any more details? :sweat_smile: I am not sure if this is even possible using spotifyd, but asking doesn't cost anthing :wink:

mustaphazorgati avatar Aug 18 '21 16:08 mustaphazorgati

iirc this is against Spotify's terms of use for their API. Would be a nice feature to have, though

muni-corn avatar Sep 22 '21 20:09 muni-corn

Can the cache feature be repurposed for offline support? Perhaps providing a configuration for how long the cache will be retained. Would be nice if we can do it in a per playlist level.

bevsxyz avatar Oct 09 '21 06:10 bevsxyz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '22 07:01 stale[bot]

silly bot.

I'd like to hear the devs' personal opinions on bevsxyz's comment before this issue is closed

muni-corn avatar Jan 07 '22 15:01 muni-corn

@harrisonthorne

iirc this is against Spotify's terms of use for their API

Yes it is against the TOS of Spotify, so is spotifyd.

I think since this is not a spotify player in particular but a daemon, it requires internet to be controlled anyway (afaik). "Abusing" the caching feature could work (at least for not having to download the audio) but not without forking and changing librespot. Also there is other data which is required to be cached, like artist, playlist and song information. I'm not a dev of spotifyd but I doubt this becoming a feature in spotifyd, regardless of someone willing it to do or not.

JojiiOfficial avatar Jan 07 '22 15:01 JojiiOfficial

I think since this is not a spotify player in particular but a daemon, it requires internet to be controlled anyway (afaik).

I would say so, too. spotifyd is a headless application that needs a client to function, which in turn requires an active internet connection. See also this issue why this isn't done on the librespot side, this applies as well to spotifyd. (What could be improved is spotifyds resilience to spotty internet connections and intermediate connection losses, but that is not what this issue is about.)

eladyn avatar Sep 09 '22 16:09 eladyn