Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

Reply

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

Aquarius17
Music Fan

Hi atbcmw,

 

thank you very much for this cool workaround - works fine👍🏼

 

Greetz - Thomas 😊

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

bu5q9x70qhws9bf
Regular

Thanks atbcmw, this workaround works perfect for playlists. Really great information.

This works as well, when Spotify is offline.

When I started this post here, open Albums using AutoSpotify or Send Intend method mentioned above were working, when Spotify was online and offline.

Now this is not the case anymore. Using the Tasker Browse URL method, this is as well working only, when Spotify is online.
For some strange reason, once an Album has been opened, when Spotify is online, this is working as well, when Spotify is offline.
But this seems to be the case for only one Album at the time.

Does anybody has a workaround to open an Albums, when Spotify is offline?

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

atbcmw
Casual Listener

Hi,

 

I am glad this workaround works for you.

 

@bu5q9x70qhws9bf : As for albums, I suggest you create a playlist from albums you want to listen offline.

 

You can do as follow :

Capture.PNG

This will create a playlist named after the album like this :

Capture2.PNG

 

 

From what I gathered on Spotify devs' release notes, the reason for the album vs playlist deep linking process (the process we use through the Browse URL action) being so different is that the album offline feature was released not so long ago whether the playlist offline feature has existed for a while now. Thus I guess they implemented the album offline feature differently.

 

I would have liked to get my hands on the Spotify Android Manifest to give further thought to this, but it is time consuming to say the least.

 

Anyway, I hope this other workaround answers your question @bu5q9x70qhws9bf :)

 

Bye,

Benjamin

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

trohn_javolta
Casual Listener

Hello, I have some questions to this:

I'd just like to shuffle play everything I have in "Songs". Is this also possible? If yes, how? Or would I have to make a playlist where I'd need to save every song again in the playlist?

Until now I managed to do this way via tasker:

unlock screen

open spotify

press library, songs and shuffle button via autoinput plugin

 

That's not very elegant nor future proof. So I want to change that.

Would I still need to unlock screen and open the app with your method?

Also, where do I get the stuff I paste into the URL line?

 

Edit: Ok, figured out how to get to a specific playlist.

But how do you get spotify to start playback? I never was successfull with any other task than autoinput.

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

bu5q9x70qhws9bf
Regular

Hi,

@atbcmw: Thanks a lot for your comments and workaround. 

 

@trohn_javolta: "Regarding where do I get the stuff I paste into the URL line?"

Press Playlist/ sharing / Copy Link. Now you need to edit created Spotify link to the format shown in the example.

I also adapted profile to convert it. Same procedure as above, but the Spotify link is changed to the uri on the clipboard directly, no editing needed.

 

Regarding "Would I still need to unlock screen and open the app with your method?": I think so actually.

 

Regarding "I'd just like to shuffle play everything I have in "Songs"." in an "elegant"way. I think it would be good to have a list of all available Spotify URL formats, like the play example. Or a list of all send intents.

But: this seems not being wanted from Spotify and I could not find it at least. It points as well to what atbcmw wrote trying to get some information out of the Manifesto.

Anyhow: You can also try using Autoweb plugin and "Get library tracks". I guess this works only up to a certain limit.

More information might be available here:

https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-saved-tracks

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

trohn_javolta
Casual Listener

Thx for the reply. Seems I edited mine during your answer.

Got it to open a playlist, but how do you get spotify to start playback?

I tried the media control button "play" and specified spotify as app in tasker but nothing happens.

Highlighted

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

bu5q9x70qhws9bf
Regular

Right: forgotten to mention, that you need to add :play the end (see example from atbcmw).

Or you change Text in the SetClipboard action to %url1:play in the profile I provided.

 

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

bu5q9x70qhws9bf
Regular

Just found out that following seems to work:

 

A1: Send Intent

Action:android.intent.action.VIEW

Cat:Default

Data:spotify:user:spotify:playlist:37i9dQZF1DWWMOmoXKqHTD:play

Package:com.spotify.music

Target:Activity

 

So, instead of:

Action:android.media.action.MEDIA_PLAY_FROM_SEARCH

use:

Action:android.intent.action.VIEW

 

It even starts the Playlist when Spotify is offline (note the :play at the end of Data).

This method is as well not working for Albums when Spotify is offline.

Re: Tasker cannot start a Playlist anymore, Send intent does not wrok anymore ...

trohn_javolta
Casual Listener

Does this play all saved songs?

SUGGESTED POSTS