Menu

Cleanup clarification

Help
2006-05-28
2013-04-07
  • marc_in_lux

    marc_in_lux - 2006-05-28

    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!

     
  • Kevin Wisher

    Kevin Wisher - 2012-09-08

    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?

     
  • Dave Vehrs

    Dave Vehrs - 2012-09-19

    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.

     

Log in to post a comment.