by Trapier Marshall
Version 8 (November 20, 2024)
Download (46 downloads)
Generalization of "Prevent Spotify from closing" [1] to any media player. Modified description from the original:
> I got really annoyed with s̶p̶o̶t̶i̶f̶y̶ media players getting killed due to low resources. So i made this flow that restarts s̶p̶o̶t̶i̶f̶y̶ ̶a̶g̶a̶i̶n̶ them if i̶t̶s̶ they are killed while playing music. With this, you need to pause the music and then close s̶p̶o̶t̶i̶f̶y̶ the player.
CHANGELOG
v8: cast replay prevention works for casting the local screen
v7: casting prevents replay
v6: chrome, camera, firefox postpone replay
v5: truth test "media playing?" with half second delay to accomodate apps such as podcast addict that might not trigger ["media playing?"->no] when they are paused.
v4: restore foreground with "app start" rather than "recents"
v3: debounce short notification blips
v2: blacklist firefox
KNOWN ISSUES
- Triggered when non-media player notifications are dismissed such as "podcast downloaded"
TODO
- [ ] filter for the specific media session notification
[1] "Prevent Spotify from closing" by Artifank https://llamalab.com/automate/community/flows/22502