Just to clarify - for myself, and everybody else who might have trouble:
My understanding from looking at the code is that the cleanup functionality of podget uses its playlists to figure out what files to purge. As I didn't care too much about playlists, I made them go to /dev/null, only to find out cleanup doesn't work (neither does the new simulate function Dave put in for me - thanks nevertheless).
Anyway - this is what I'm using to purge my old podcasts:
Great script! I know this thread is very old but I just discovered podget a few weeks ago. If you happen to get this post, how can I add the ability to remove *.ogg files also at the same time as *.mp3?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All --
Just to clarify - for myself, and everybody else who might have trouble:
My understanding from looking at the code is that the cleanup functionality of podget uses its playlists to figure out what files to purge. As I didn't care too much about playlists, I made them go to /dev/null, only to find out cleanup doesn't work (neither does the new simulate function Dave put in for me - thanks nevertheless).
Anyway - this is what I'm using to purge my old podcasts:
find /mymusicfolder/Podcasts/ -mtime +15 -type f -name "*.mp3" -exec rm -fv {} \;
This purges every file older than 15 days in the given directory - adjust to your liking. Add it to your crontab to run daily and be done.
Have fun!
Marc,
Great script! I know this thread is very old but I just discovered podget a few weeks ago. If you happen to get this post, how can I add the ability to remove *.ogg files also at the same time as *.mp3?
kwisher,
I haven't tested this for deleting but it works to find ogg and mp3 files in my collection. So I would think this line would be worth testing:
find /mymusicfolder/podcasts -mtime +15 -name "*.mp3" -o -name "*.ogg" -exec rm -fv {} \;
Let us know if it works for you!
Dave
PS: I didn't immediately reply as I hoped Marc was still keeping up with these posts. Sorry for the delay.