sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.49k stars 105 forks source link

LastModified field is set to 0? #509

Open mstcl opened 1 month ago

mstcl commented 1 month ago

gonic version: 0.16.4

It appears that the LastModified field is set to 0, whereas the example API implementation returns a timestamp for when the index was last modified. Is this a design choice?

It seems like the Album struct has ModifiedAt which is already displayed on the admin panel. Perhaps the time of the most recently modified album can stand in for this LastModified field? This would be useful for index caching logic, for example.