Allow better programmatic control of playlist and queue
There are a number of intents available for Tasker and Llama (and similar apps) to control Podcast Addict: https://podcastaddict.uservoice.com/knowledgebase/articles/217903-how-to-control-podcast-addict-from-3rd-parties-app
There is a request for an alarm clock feature: https://podcastaddict.uservoice.com/forums/211997-general/suggestions/4448071-alarm-clock
There is a playlist feature.
With a couple of more intents it would be possible to implement an alarm clock trivially in Tasker or Llama.
Suggested intents:
- Clear playlist. This could be invoked before a podcasts update, and the existing "add to playlist" feature against a podcast and "start playing the playlist" intent then used to play a particular podcast in response to an external event (such as time of day)
- Play most recent episode of a specific podcast. This would need to take an argument describing the podcast and would start playing the most recent episode. This could be used to play a particular podcast in response to an external event (such as time of day).
The second is cleanest for an alarm clock feature, but the "clear playlist" feature could provide the greatest flexibility. Both would be ideal!

Completed
=========
A first beta has been published with the Alarm feature.
Please join the Beta on the Play Store app page, then update the app to get it.
I will need your help to test this on many different devices and situations to make sure this works fine.
For now everything except the Snooze feature has been implemented.
You can find more details in the Changelog (https://podcastaddict.com/changelog/2021_11)
Thanks!
-
Marcus Rudolph commented
Alternatively if there was a way to select a specific playlist then you could get most of the way to a podcast alarm using existing functionality. Currently selecting a podcast puts it on the "custom" playlist whereas downloading and adding it to a playlist via the menu adds it to the "Audio" playlist. If we had an intent for choosing the playlist (and maybe a new playlist option) then you could jerryrig it without clearing the playlist.
Selecting a podcast to play directly would be ideal but that would also require exposing the internal podcast name list in order to get the intent to work.
-
Andrew Flegg commented
This can be done with a shell script:
FILE=$(ls /storage/*/Android/data/com.bambuna.podcastaddict/files/podcast/*$1*/*.mp3 | sort | tail -n 1)
echo $FILE
am broadcast --user 0 -a com.bambuna.podcastaddict.service.player.stop
am start --user 0 -a android.intent.action.VIEW -t audio/mp3 -d "file://$FILE" com.bambuna.podcastaddictThis can be run with something like:
sh play-latest-podcast.sh Funk
It's a bit of a hack, and relies on alphanumeric ordering of the downloaded podcasts.