Created
July 5, 2014 21:02
-
-
Save jasperla/c344cfbe50eaaee161c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):008:0> speaker.queue | |
=> {:total=>0, :items=>[]} | |
irb(main):009:0> speaker.add_spotify_to_queue({:id => '3FIC2jEXBHTSEb0ZdoLvpJ', :type => 'album'}) | |
=> 1 | |
irb(main):010:0> speaker.add_spotify_to_queue({:id => '2CwulIyrmEYwbUWzcEVIhR'}) | |
=> 11 | |
irb(main):011:0> speaker.add_spotify_to_queue({:type => 'starred'}) | |
=> 12 | |
irb(main):012:0> speaker.queue | |
=> {:total=>12, :items=>[{:queue_id=>"Q:0/1", :title=>"Kill The Noise (Part I)", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a1dq8HSHtmc3y4kLGqywRS9%3fsid%3d9%26flags%3d32", :duration=>"0:07:50", :id=>"x-sonos-spotify:spotify%3atrack%3a1dq8HSHtmc3y4kLGqywRS9?sid=9&flags=32"}, {:queue_id=>"Q:0/2", :title=>"Deal With It", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0FBmjDE2mZ25mq494fdS4j%3fsid%3d9%26flags%3d32", :duration=>"0:03:37", :id=>"x-sonos-spotify:spotify%3atrack%3a0FBmjDE2mZ25mq494fdS4j?sid=9&flags=32"}, {:queue_id=>"Q:0/3", :title=>"Real Life?", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a1bpiVDi5y1cbMy0UkccQL1%3fsid%3d9%26flags%3d32", :duration=>"0:03:41", :id=>"x-sonos-spotify:spotify%3atrack%3a1bpiVDi5y1cbMy0UkccQL1?sid=9&flags=32"}, {:queue_id=>"Q:0/4", :title=>"She Likes To Party", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a5869Dms0f1b3vjvV8FxEy3%3fsid%3d9%26flags%3d32", :duration=>"0:04:47", :id=>"x-sonos-spotify:spotify%3atrack%3a5869Dms0f1b3vjvV8FxEy3?sid=9&flags=32"}, {:queue_id=>"Q:0/5", :title=>"Talk To Me", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0T1hCjV6uAhfaq2TKNggSV%3fsid%3d9%26flags%3d32", :duration=>"0:04:05", :id=>"x-sonos-spotify:spotify%3atrack%3a0T1hCjV6uAhfaq2TKNggSV?sid=9&flags=32"}, {:queue_id=>"Q:0/6", :title=>"Dying feat. Ultra Violet Sound & Emily Hudson", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a3Hwrgak91wAycSfTVd8mqn%3fsid%3d9%26flags%3d32", :duration=>"0:04:41", :id=>"x-sonos-spotify:spotify%3atrack%3a3Hwrgak91wAycSfTVd8mqn?sid=9&flags=32"}, {:queue_id=>"Q:0/7", :title=>"Kill The Noise (Dillon Francis Remix)", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a3Ifx6lCMbrjZbAAUnGhlpV%3fsid%3d9%26flags%3d32", :duration=>"0:04:43", :id=>"x-sonos-spotify:spotify%3atrack%3a3Ifx6lCMbrjZbAAUnGhlpV?sid=9&flags=32"}, {:queue_id=>"Q:0/8", :title=>"Dying feat. Ultra Violet Sound & Emily Hudson (Brown & Gammon Remix)", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0MHRDZ9sbEWl46lhK9lyN1%3fsid%3d9%26flags%3d32", :duration=>"0:05:09", :id=>"x-sonos-spotify:spotify%3atrack%3a0MHRDZ9sbEWl46lhK9lyN1?sid=9&flags=32"}, {:queue_id=>"Q:0/9", :title=>"Kill The Noise (Alvin Risk Remix)", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a002L6PcvIrXF30Sl48eUso%3fsid%3d9%26flags%3d32", :duration=>"0:04:02", :id=>"x-sonos-spotify:spotify%3atrack%3a002L6PcvIrXF30Sl48eUso?sid=9&flags=32"}, {:queue_id=>"Q:0/10", :title=>"Deal With It (KOAN Sound Remix)", :artist=>"Kill The Noise", :album=>"Kill Kill Kill", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a3UYMUN80QYhs58NtHbdnNB%3fsid%3d9%26flags%3d32", :duration=>"0:04:28", :id=>"x-sonos-spotify:spotify%3atrack%3a3UYMUN80QYhs58NtHbdnNB?sid=9&flags=32"}, {:queue_id=>"Q:0/11", :title=>"Shotgun", :artist=>"Anton Zaslavski", :album=>"Shotgun", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a2CwulIyrmEYwbUWzcEVIhR%3fsid%3d9%26flags%3d32", :duration=>"0:04:28", :id=>"x-sonos-spotify:spotify%3atrack%3a2CwulIyrmEYwbUWzcEVIhR?sid=9&flags=32"}, {:queue_id=>"Q:0/12", :title=>"The Monster", :artist=>"Eminem", :album=>"The Marshall Mathers LP2", :album_art=>"http://192.168.178.113:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a5U8hKxSaDXB8cVeLFQjvwx%3fsid%3d9%26flags%3d32", :duration=>"0:04:10", :id=>"x-sonos-spotify:spotify%3atrack%3a5U8hKxSaDXB8cVeLFQjvwx?sid=9&flags=32"}]} | |
irb(main):013:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment