I want detect if plus or tick sign appears in the notification created by Spotify in the notification bar. Can AutoNotification help me to achieve this?
Have you tried using the "Get All Values" option and see if that brings up any text that might tell you the state? Thanks
Yes, i've tried that already. I found that the plus and tick signs are pictures, and using %animagesbig() shows all pictures including the plus and tick signs. %antextsbig() does not give any text that concerns the plus or tick sign unfortunately. What i would like to know is: Can Autonotification capture only images visible in the ongoing notification of Spotify, and NOT all images?
Yes, it can only capture images on existing notifications. Right now you could check if the image is the same by using AutoPhoto if you have access to the Alpha AutoApps... Do you?
%animagesbig() variable outputs 2 distinct images for ➕ and ✔ respectively. But in Spotify notification, only one of them is visible. Why is it so?
Oh, I see what you mean. The image is there but being hidden probably. In that case I don't think you can distinguish the 2 states, sorry Are all the texts exactly the same in both situations?
Yes. Have you an idea how i could detect the change in state using any of your plugins or any other method?
What I actually want to do is to add the currently playing song to my music using KWGT, hence without actually clicking on ➕in Spotify ongoing notification or inside the Spotify app, and if a song has already been added to my music, i want ✔ to appear on the widget instead of ➕. Therefore i want to know if the playing song has been added to my music or not. I've attached a screenshot of the KWGT homescreen widget.
Ok, that can be done with AutoWeb if you add this endpoint to it: https://developer.spotify.com/web-api/check-users-saved-tracks/ Can you add it or should I do it for you?
Ok, I've added the action to the Spotify API. You'll need a patched version of AutoWeb that you can get here: https://dl.dropboxusercontent.com/u/9787157/apk/AutoWeb.apk Import the Spotify API. Then you should be able to search for the current song with the Search action and then check if that song is in your library with the Check User's saved tracks action. Hope this helps!
I've tried to configure it in Tasker, but i keep getting error messages... Didn't know it was that hard...
"error" : "status" : 400, "message" : "No search query" or "Missing payload" and AutoWeb action error. App locked. Please start the trial or unlock the full version. See the screenshot to see what happens when I try to get my email address.
Sorry about that, my mistake, can you please try with this version? https://dl.dropboxusercontent.com/u/9787157/apk/AutoWeb.apk Also, can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance