Skip to content

in queue': undefined method browse #45

@lordkarl

Description

@lordkarl

Getting this when I ask for a queue with more than one item in it.

/var/lib/gems/1.9.1/gems/sonos-0.3.5/lib/sonos/endpoint/content_directory.rb:24:in queue': undefined methodbrowse' for #Sonos::Device::Speaker:0x0000000104df98 (NoMethodError)

Here is the code (with line numbers added):
18 # Paginate
19 # TODO: This is ugly and inflexible
20 if starting_index == 0
21 start = starting_index
22 while hash[:items].count < hash[:total]
23 start += requested_count
24 hash[:items] += browse(start, requested_count)[:items]
25 end
26 end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions