Detect Podcast Playing on Spotify

Rev

New member
Hi there, I have just started to use the MacroDroid app. I already made a few macros and I'm really excited about the possibilities.

That said, I want to know if it is possible to differentiate what is being played on the Spotify app. I have some actions that I'd like to do only when a podcast is playing and not the music.

I'm not sure if that is something possible to do with the app, but if that's the case, do you guys have any suggestions on how to achieve this on another app like Tasker or Automate?
 

md_sgf

Well-known member
MacroDroid only has a basic "Music/Sound Playing" trigger.

Tasker has "Music Track Changed" event (and GetMusicActive() action), and can return artist, title, genre, etc.

Automate has "Media playing" decision block. Similar to Tasker action.

You might be able to differentiate between podcast and music by checking artist, title, genre, etc.
 
  • Like
Reactions: Rev

Dimlos

Well-known member
The trigger did not work when switching between music and podcasts, so I made it an action.

Information on artists and tracks can be found on broadcast intent, but information on music could be obtained, but not on podcasts.
 

Attachments

  • macro.jpg
    macro.jpg
    888.5 KB · Views: 4
  • spotify_playing-.macro
    8.1 KB · Views: 1
  • Like
Reactions: Rev

Rev

New member
MacroDroid only has a basic "Music/Sound Playing" trigger.

Tasker has "Music Track Changed" event (and GetMusicActive() action), and can return artist, title, genre, etc.

Automate has "Media playing" decision block. Similar to Tasker action.

You might be able to differentiate between podcast and music by checking artist, title, genre, etc.
Hi. Thank you for taking your time to answer me, and sorry for taking a few days to answer, I've been very busy.

I've checked the Automate app, and I've created a flow that gives me a notification with title, artist, album, and duration. However, it only shows me one notification, and as soon as I dismiss it, it stops the flow. My first milestone for what I want is to show me different notifications each time I change tracks. I'll post something in an Automate community. Thank you for your help.
 

Rev

New member
The trigger did not work when switching between music and podcasts, so I made it an action.

Information on artists and tracks can be found on broadcast intent, but information on music could be obtained, but not on podcasts.
Hi, thank you for taking your time to answer me. Sorry it took some time to answer, I've been busy.
So, I downloaded the macro and tested but nothing happened. How did it behave on your device?
Also, the link helped me understand some things, thanks. I know basic programming, but a lot is still uncharted. I saved it for when I have more time to make better use of this information.
 

Dimlos

Well-known member
I may not have explained it well enough.
If you run the macro while music or podcasts are playing on Spotify, it will show up in the notification.
It depends on the language setting of the device as it is determined by the content of the notification.
The macro is designed to work in English.
Shizuku setup is required.
 
Top