Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Implement Artist view in Offline Mode #462

Closed
enduring78 opened this issue Jun 18, 2023 · 10 comments · Fixed by #568
Closed

[Feature Request] Implement Artist view in Offline Mode #462

enduring78 opened this issue Jun 18, 2023 · 10 comments · Fixed by #568
Labels
hacktoberfest Issues available for Hacktoberfest redesign-beta Issues related to the beta/redsigned version of Finamp

Comments

@enduring78
Copy link

Currently, when in Offline Mode, I can't search or view the artists tab because it isn't implemented.

I have searched the issue tracker but couldn't find a issue asking for this, so I made one!

@NoSadBeHappy
Copy link

Yeah I was wondering what the reason is that it hasn't been implemented yet? What issue have you run into when making it? I would be happy to help.

@jmshrv
Copy link
Owner

jmshrv commented Aug 23, 2023

I'll give a technical description here to be thorough. TL;DR: Finamp can't model relationships beyond album/playlist -> song right now

Here's a little diagram that I wrote up in 5 minutes:

Drawing comparing Finamp's current download system vs ideas for a new one. Text explanation below.

Finamp currently models downloads with DownloadedParent and DownloadedSong. This is a very simple relationship - parents contain songs. This works for albums and playlists, but isn't suitable for artists (or genres and other higher-level categories). It's a single-level relationship.

The new system will allow DownloadedParent objects to depend on other DownloadedParent objects. This'll make downloads look much more like a graph, and will allow us to add third-level collections like artists and genres. This solution will make migrating from the old system relatively easy, which would avoid the pretty bad proposition in the downloads plan where downloads will disappear on upgrade.

The new system is still in the theoretical stage (I'd like to get #220 sorted first)

I haven't mentioned how images are implemented, partly because it isn't relevant here, partly because I've forgotten exactly how they're implemented and they're kind of stapled on (which further makes me want to rip out the current download system).

@jmshrv
Copy link
Owner

jmshrv commented Aug 23, 2023

(the drawing is 6809x11992, apologies if your computer exploded loading it)

@Chaphasilor
Copy link
Collaborator

a little diagram that I wrote up in 5 minutes

https://media.tenor.com/aAsftu-ZFLUAAAAC/ron-swanson-parks-and-rec.gif

Also, I'm not sure if the redesign is independent of this. An improved artists screen (all albums, all songs, etc.) might require some rework anyway? Unless the offline stuff is fully independent...

@NoSadBeHappy
Copy link

Wow thanks for the description! So basically right now finamp literally doesen't know what artist the song is by when you download it. That makes sense. I don't know how to implement it, but isn't there a way to get metadata from jellyfin? Could finamp just save that, and then use that to sort?

@jmshrv
Copy link
Owner

jmshrv commented Aug 24, 2023

We get the name of the artist, but not enough to easily "recreate" the artist screen.

When getting artists in online mode, Finamp calls the /Artists/AlbumArtists endpoint to get the list of artists. From there, we can request a specific artist using the same call as albums/playlists. This call includes much more info, which is required to actually display the artist (especially when Finamp starts showing artist metadata instead of just a list of albums).

@NoSadBeHappy
Copy link

Ah, okay thank you for the clarification.

@ldexterldesign
Copy link

ldexterldesign commented Oct 31, 2023

👋

Thanks for software! 😍

So looking forward to playing (my own FLAC) music, offline, on my smartphone again since switching to iOS

To clarify - and for the benefit of others who may come here - is this issue the reason/bottleneck to playing music offline or is there something I'm missing..? 😕

Yours hopefully

@ldexterldesign
Copy link

ldexterldesign commented Oct 31, 2023

To clarify - and for the benefit of others who may come here - is this issue the reason/bottleneck to playing music offline or is there something I'm missing..? 😕

Ahh, I seem to have got things working - playing is possible just not via certain views 👌

Aside, for me, an app restart was required before I got an updated view - will create/update a (new) issue if I experience it again

Apologies for noise 😔🧥

👋

@Chaphasilor Chaphasilor linked a pull request Jan 6, 2024 that will close this issue
@Chaphasilor Chaphasilor moved this to Done in Finamp Redesign Jan 25, 2024
@Chaphasilor
Copy link
Collaborator

@enduring78 @NoSadBeHappy the download system has been improved as part of the redesign beta. Artist support for offline mode is now available, and we have an improved artists screen that also shows top songs. You can check it out here: https://github.com/jmshrv/finamp/releases/tag/0.9.2-beta

I'll close this issue for now since it should be resolved.

@Chaphasilor Chaphasilor added the redesign-beta Issues related to the beta/redsigned version of Finamp label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Issues available for Hacktoberfest redesign-beta Issues related to the beta/redsigned version of Finamp
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants