sonos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1f39f8de922f6c8dbbea4249cd76096b7e9d40fb
parent 21301baf45df7d7868615461b6bcd67857dc412b
Author: Brian Swetland <swetland@frotz.net>
Date:   Sun, 24 Jul 2011 22:30:35 -0700

Sonos.java: ensure that index doesn't reset every 100 tracks

Signed-off-by: Brian Swetland <swetland@frotz.net>

Diffstat:
Mnet/frotz/sonos/Sonos.java | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/frotz/sonos/Sonos.java b/net/frotz/sonos/Sonos.java @@ -169,7 +169,7 @@ public class Sonos { /* descend in to the contained results */ value.unescape(); xml.init(value); - n += processBrowseResults(xml,_id,cb); + n = processBrowseResults(xml,n,_id,cb); } catch (Exception x) { System.err.println("OOPS " + x); x.printStackTrace(); @@ -177,9 +177,8 @@ public class Sonos { } } while (n < total); } - int processBrowseResults(XML result, String _id, SonosListener cb) throws XML.Oops { + int processBrowseResults(XML result, int n, String _id, SonosListener cb) throws XML.Oops { SonosItem item = this.item; - int n = 0; if (trace_browse) { System.out.println("--------- list -----------"); result.print(System.out,1024);