dmix icon indicating copy to clipboard operation
dmix copied to clipboard

Sort by Newest Albums

Open hurzl opened this issue 11 years ago • 16 comments

AbstractMusic should parse Last-Modified as returned by MPD via listallinfo. Then albums could be sorted by last added.

hurzl avatar Dec 26 '14 23:12 hurzl

It’s not as simple as that, it is ?

1/ it needs the cache

2/ We need to keep track of when an album appeared by last-modified so we can show the last added ones.

Or is Last-Modified per album, and not per "listallinfo" command ?

On 27 déc. 2014, at 00:22, hurzl [email protected] wrote:

Abstract Music should parse Last-Modified as returned by MPD via listallinfo. Then albums could be sorted by last added.

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/671.

abarisain avatar Dec 26 '14 23:12 abarisain

+1 Simply the list of last added to database... it would be very nice

burmar avatar Dec 26 '14 23:12 burmar

  1. yes speaking of cache.
  2. album last-modified is last-modified of last track modified ;-) and can be cached.
  3. Either overall setting to always sort albums by last mod. (easier) or option in the AlbumsFragment

hurzl avatar Dec 27 '14 01:12 hurzl

Okay, I understand, and it would be great to to that (or even have a home with "Recently added") , but I don't really want to change the UI for something that works only with the cache.

Is there no way to get that information with the traditional calls, rather than listallinfo ?

abarisain avatar Dec 27 '14 07:12 abarisain

Is there no way to get that information with the traditional calls, rather than listallinfo ?

probably by doing listallinfo on the directory of the album? (all the albums!)

hurzl avatar Dec 27 '14 11:12 hurzl

Can I stick an oar in here and say listallinfo on directories is unpleasant in Mopidy as the directory structure may not be real and interrogating parts of it may not give you any useful data, or any data at all. There is also a discussion to remove support for listallinfo support entirely from Mopidy (for the same reasons). So using traditional calls would be nice, at least as a fallback perhaps. On 27 Dec 2014 11:46, "hurzl" [email protected] wrote:

Is there no way to get that information with the traditional calls, rather than listallinfo ?

probably by doing listallinfo on the directory of the album?

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/671#issuecomment-68176256.

kingosticks avatar Dec 27 '14 12:12 kingosticks

It's not possible as far as I can see. (If Mopidy wants to mimick MPD it should support the command)

hurzl avatar Dec 27 '14 13:12 hurzl

Somehow use stickers for it? But one has to get the information first anyway. Will it be faster afterwards?

hurzl avatar Dec 27 '14 13:12 hurzl

With what I have in mind (I'd like to show a list of recently added albums), listallinfo on album directories won't work anyway

abarisain avatar Dec 27 '14 13:12 abarisain

For the record, it doesn't want to mimic MPD. It wants to support the MPD protocol where it makes sense to do so for online catalogues :) On 27 Dec 2014 13:16, "Arnaud Barisain Monrose" [email protected] wrote:

With what I have in mind (I'd like to show a list of recently added albums), listallinfo on album directories won't work anyway

— Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/671#issuecomment-68178269.

kingosticks avatar Dec 27 '14 13:12 kingosticks

you are both right But there is no other way to get the mod time of files. And there is no other way to sort by last added. :( Or you want to do something like the local covers mechanism with the http server.

hurzl avatar Dec 27 '14 15:12 hurzl

It now seems to work, but the ArrayIndexerAdapter should be disabled, how to? It should be disabled when sorting by album date, too, btw.

-> https://github.com/hurzl/dmix/commit/5ae7512b762f2075b0870f2d35f1384453f34ee5

hurzl avatar Dec 28 '14 03:12 hurzl

As I would love this feature, can somebody please give a status update on whether and when it might get implemented? Thanks!

bartkl avatar May 17 '16 11:05 bartkl

Hi, Mpdroid's development is pretty much on hiatus. That said, even if it wasn't, we wouldn't implement that due to the lack of server side support

Sorry about that :(

On Tue, May 17, 2016 at 4:24 AM -0700, "A.L. Kleijngeld" [email protected] wrote:

As I would love this feature, can somebody please give a status update on whether and when it might get implemented? Thanks!

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

abarisain avatar May 17 '16 20:05 abarisain

That's a shame, thanks for the update and all previous hard work!

On Tue, May 17, 2016 at 10:25 PM, Arnaud Barisain-Monrose < [email protected]> wrote:

Hi, Mpdroid's development is pretty much on hiatus. That said, even if it wasn't, we wouldn't implement that due to the lack of server side support

Sorry about that :(

On Tue, May 17, 2016 at 4:24 AM -0700, "A.L. Kleijngeld" < [email protected]> wrote:

As I would love this feature, can somebody please give a status update on whether and when it might get implemented? Thanks!

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/abarisain/dmix/issues/671#issuecomment-219842658

bartkl avatar May 17 '16 21:05 bartkl

Sorry to revive this, but this would be a pretty slick feature, +1!

bretello avatar Oct 17 '18 21:10 bretello