I’m using gPodder, but you can use Podfox too.
Podfox is probably better, there’s no GUI. openSUSE doesn’t have the latest gPodder, and the Flatpak gPodder has no gpo, the command line interface.
cat podcasts_download.sh
#!/usr/bin/bash
/usr/bin/gpo update
/usr/bin/gpo download
/usr/bin/gpo resume
And if you want a notification:
cat podcasts.sh
#!/bin/bash
TARGET=/media/fast_stuff/Downloads
inotifywait -m -e create -e move --format "%w%f" -r $TARGET \
| while read FILENAME
do
D=$(date)
echo "New podcast $FILENAME $D" > /dev/pts/0
done
Using move_self, probably means the actual folder, not the files in it. So changed it to move, so maybe I’ll get notifications when it’s done downloading now. When it first tried downloading, it couldn’t. So you need to resume downloads too. You won’t get a notification about it finishing downloading if it failed, if you don’t have move in it.
And if you want a systemd service file:
cat .config/systemd/user/podcasts.service
[Unit]
Description=Podcasts notify
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/home/rectum/podcasts.sh
Restart=on-failure
[Install]
WantedBy=default.target
Earthfiles Podcast downloaded at some point, just no notification.