Shoutcast plugin returns count-1 items when asking for genres
Submitted by Enrique Ocaña González
Assigned to gri..@..e.bugs
Created attachment 252477 Proposed patch
The Shoutcast plugin is returning one item less than requested when asking for the genres. It returns the proper number of items when asking for the stations, though.
This problem causes troubles on applications which rely on the number of items returned to implement pagination.
I'm attaching a patch that solves the problem (for me) by differentiating the way in which to_send and the GrlMedia production callback end condition is evaluated for genres and for stations.
Patch 252477, "Proposed patch":