epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.02k stars 60 forks source link

[Question] [SubSonic Api] getAlbumList2 with type byYear, toYear < fromYear returns empty resultset #482

Closed GioF71 closed 2 weeks ago

GioF71 commented 2 weeks ago

Hello, I was trying to add a feature which would show the newest albums (not the recently added, but actually newest releases first) in my Subsonic Plugin for Upmpdcli. I was planning to use the type byYear in getAlbumList2, with fromYear greater than toYear. This should supposedly return the albums in descending chronological order. However, it seems to me it gives an empty result. If I use the ascending order, everything looks ok instead. Can you please verify if this is actually the case? Thank you very much! Giovanni

epoupon commented 2 weeks ago

The first year in the range. If fromYear > toYear a reverse chronological list is returned Completely missed that! Will implement this behavior.

GioF71 commented 2 weeks ago

Thank you!!

GioF71 commented 2 weeks ago

Hello, thank you. Do you have some docker image with this change? If you don't, please don't work on that, I can wait. Thank you!

epoupon commented 2 weeks ago

Yes, there is a docker image epoupon/lms:67ebbdce

GioF71 commented 2 weeks ago

Thank you! I will try this as soon as possible

GioF71 commented 2 weeks ago

Hello, I thought I wrote an update here, but maybe I didn't send it after all. I just wanted to tell you that I have been able to implement the feature on the subsonic plugin for upmpdcli. Thank you, will be waiting for the release.