spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Cache songs instead of downloading externally.

Open devanarayanan44 opened this issue 1 year ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Pain

If I download a song and play it from the artist page or from a playlist, it plays online. I can't view the lyrics of downloaded tracks. I can't go to the album or artist from the downloaded tracks.

Suggested solution

Cache the songs (like inner tune) and add a separate option for downloading externally.

Useful resources

No response

Additional information

No response

devanarayanan44 avatar Sep 10 '23 14:09 devanarayanan44

Does caching music really make sense? Most of the users doesn't listen to the same song twice in a day (or even weeks) without special reason. So if we cache songs (save them on the storage) we also must need to set a custom cache limit after which old songs will get removed So if songs are getting added constantly & old ones are getting removed to make space then is there any point of caching here? We're doing nothing but wasting space in glorified way. Which official Spotify app does a lot btw (over 2-3GB occupied cache space)

Btw caching song is a really tough thing to implement & time consuming (implementation for each platform)

KRTirtho avatar Sep 10 '23 15:09 KRTirtho

I assume the idea is to have a button to make tracks available offline (apart from download) for listening through spotube and enjoying the lyrics, by caching the respective content. The problem of a cache limit would be eliminated if the user has to manage his cached content himself, e.g. through the respective button, a more advanced option would be a 'cached-content' interface.

Actually this was the behaviour I also expected when first seeing the download option.

ZenKyma avatar Sep 11 '23 09:09 ZenKyma

I assume the idea is to have a button to make tracks available offline (apart from download) for listening through spotube

Exactly.

devanarayanan44 avatar Sep 11 '23 11:09 devanarayanan44

Does caching music really make sense? Most of the users doesn't listen to the same song twice in a day (or even weeks) without special reason. So if we cache songs (save them on the storage) we also must need to set a custom cache limit after which old songs will get removed So if songs are getting added constantly & old ones are getting removed to make space then is there any point of caching here? We're doing nothing but wasting space in glorified way. Which official Spotify app does a lot btw (over 2-3GB occupied cache space)

Btw caching song is a really tough thing to implement & time consuming (implementation for each platform)

A song cache function would be very useful and helpful. I would be very happy about such a function.

siggi1984 avatar Sep 13 '23 08:09 siggi1984

Caching is probably useful, since i'm always listening to my Liked Tracks.... I mean... i know i can use mass download but it's kind of pain in the ass imo.

AozoraDev avatar Sep 15 '23 18:09 AozoraDev

an alternative/enhancement is to simply offer a setting to download all songs you listen to by default, songs will be available in the download specified

OmG3r avatar Oct 19 '23 13:10 OmG3r

It's actually somewhat possible now since spotube now uses a custom streaming proxy inside the app, so we could cache the stream in file. It might occupy more storage.

KRTirtho avatar Jul 09 '24 12:07 KRTirtho

Great news! It's totally expected to occupy storage when you cache music locally, I guess that's the deal for enjoying it offline ;)

ZenKyma avatar Jul 09 '24 13:07 ZenKyma

It's actually somewhat possible now since spotube now uses a custom streaming proxy inside the app, so we could cache the stream in file. It might occupy more storage.

Does that mean that the songs you listen to are saved and can be played offline the next time you play them? That would be great and would save mobile data for those who don't have that much.

siggi1984 avatar Jul 10 '24 04:07 siggi1984