* If TiVo requests a negative ItemCount with no starting point, that means go to the end of the list.
This commit is contained in:
parent
090a5cf022
commit
8e2d9a72e6
@ -612,6 +612,10 @@ SendContainer(struct upnphttp * h, const char * objectID, int itemStart, int ite
|
|||||||
" where %s and (%s)",
|
" where %s and (%s)",
|
||||||
which, myfilter);
|
which, myfilter);
|
||||||
totalMatches = (ret > 0) ? ret : 0;
|
totalMatches = (ret > 0) ? ret : 0;
|
||||||
|
if( itemCount < 0 && !args.start )
|
||||||
|
{
|
||||||
|
args.start = totalMatches + itemCount;
|
||||||
|
}
|
||||||
|
|
||||||
sql = sqlite3_mprintf("SELECT o.OBJECT_ID, o.CLASS, o.DETAIL_ID, d.SIZE, d.TITLE,"
|
sql = sqlite3_mprintf("SELECT o.OBJECT_ID, o.CLASS, o.DETAIL_ID, d.SIZE, d.TITLE,"
|
||||||
" d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM,"
|
" d.DURATION, d.BITRATE, d.SAMPLERATE, d.ARTIST, d.ALBUM,"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user