<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DBus OpenUri not playing in Desktop (Linux)</title>
    <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234018#M4262</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/2748854"&gt;@pschorf﻿&lt;/a&gt; and welcome to Spotify Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what happened with the autoplay option, but you can execute PlayPause option right after and it will act the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbus-send  --print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "string:spotify:album:4sb0eMpDn3upAFfyi4q2rw" &amp;amp;&amp;amp; dbus-send  --print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Nov 2015 18:39:24 GMT</pubDate>
    <dc:creator>Dreadlord</dc:creator>
    <dc:date>2015-11-04T18:39:24Z</dc:date>
    <item>
      <title>DBus OpenUri not playing</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1233569#M4261</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using spotify&lt;SPAN&gt;1.0.17.75.g8f111100&lt;/SPAN&gt; on Arch Linux. Whenever I try to play an album via DBus, for instance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbus-send  --print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "string:spotify:album:4sb0eMpDn3upAFfyi4q2rw"&lt;/PRE&gt;&lt;P&gt;It correctly opens the album, but does not start playing it. I remember a previous version of the linux client supported this, is it a regression?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 01:09:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1233569#M4261</guid>
      <dc:creator>pschorf</dc:creator>
      <dc:date>2015-11-04T01:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBus OpenUri not playing</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234018#M4262</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/2748854"&gt;@pschorf﻿&lt;/a&gt; and welcome to Spotify Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what happened with the autoplay option, but you can execute PlayPause option right after and it will act the same:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbus-send  --print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "string:spotify:album:4sb0eMpDn3upAFfyi4q2rw" &amp;amp;&amp;amp; dbus-send  --print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:39:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234018#M4262</guid>
      <dc:creator>Dreadlord</dc:creator>
      <dc:date>2015-11-04T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: DBus OpenUri not playing</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234174#M4263</link>
      <description>&lt;P&gt;That actually plays/pauses whatever I had open before, not the new content.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 23:31:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234174#M4263</guid>
      <dc:creator>pschorf</dc:creator>
      <dc:date>2015-11-04T23:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBus OpenUri not playing</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234220#M4264</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/2748854"&gt;@pschorf﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I was unable to test the script at first place. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a workaround using the deprecated&lt;/P&gt;
&lt;PRE&gt;uri=spotify:album:4sb0eMpDn3upAFfyi4q2rw # We are going to use this variable to access the metadata for the album.
song=$(curl -G "http://ws.spotify.com/lookup/1/?uri=$uri&amp;amp;extras=track" | grep -E -o "spotify:track:[a-zA-Z0-9]+" -m 1) # Get the first track of the Album. We are going to use this variable in next line.
dbus-send &amp;nbsp;--print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause &amp;amp;&amp;amp; dbus-send &amp;nbsp;--print-reply --session --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "string:$song" # Pause the player and the play the first song of the album
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For long term, you can check the &lt;A href="https://developer.spotify.com/web-api/" target="_blank"&gt;Web API&lt;/A&gt;&amp;nbsp;and update the curl line.&lt;/P&gt;
&lt;P&gt;Hope this help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 02:04:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1234220#M4264</guid>
      <dc:creator>Dreadlord</dc:creator>
      <dc:date>2015-11-05T02:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: DBus OpenUri not playing</title>
      <link>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1236347#M4265</link>
      <description>&lt;P&gt;That works! Sorry, I was away from my linux machine for a bit so I couldn't confirm. Thanks very much.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 23:23:23 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Desktop-Linux/DBus-OpenUri-not-playing/m-p/1236347#M4265</guid>
      <dc:creator>pschorf</dc:creator>
      <dc:date>2015-11-09T23:23:23Z</dc:date>
    </item>
  </channel>
</rss>

