witchi / gallery-remote

Gallery Remote is a desktop client that lets you interact with the Gallery web based photo management system
http://gallery.menalto.com
GNU General Public License v2.0
1 stars 0 forks source link

Album desc. not returned in Gallery Remote API #12

Open witchi opened 10 years ago

witchi commented 10 years ago

Hi,

The Gallery 2 Remote API defines that the 'fetch-albums-prune' command can return additional album information as indicated in the 'extrafields' field. In the current implementation the 'extrafields' response contains "Summary" and "Description". However only the "Summary" field actually has a value returned in the response ("album.summary"), the "Description" doesn't. This can be fixed very easily by adding "$response->setProperty('album.description.'.$i,$album->getDescription());" in the foreach loop of the fetchAlbums function in GalleryRemote.inc. It will require a new return field however (e.g. "album.description") so it may require a version change of the protocol.

If this is not feasible then at least the fields in "extrafields" should be adapted to indicate that only the "Summary" is returned as extra information.