If would be usefull to have a '--cleanup' option to remove unnescessary data from the log files, for example if a feed only lists recent podcasts or you have deleted a feed.
I was thinking about the 'mobile' configuration, where the config/log files are stored on the media player, as was just concerned that the logs would get quite large and have loads of junk in them after a couple of years usage...
Mungewell.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, thats a reasonable use case. So presumably running
peapod.py --cleanup
should remove lines from download.log where the podcast is no longer on the filesystem or in the feed?
Removing files that belong to old feeds is slightly harder as the download.log file doesn't actually record where the download came from.
I'll take a look at the code and see if I can come up with a plan.
In the longer term I'd like to move to using sqlite as back-end which would make this kind of thing much easier.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1332696
Originator: NO
Why do you want to remove all the old information?
What is the benefit?
Thanks,
Huw
Logged In: YES
user_id=39509
Originator: YES
I was thinking about the 'mobile' configuration, where the config/log files are stored on the media player, as was just concerned that the logs would get quite large and have loads of junk in them after a couple of years usage...
Mungewell.
Logged In: YES
user_id=1332696
Originator: NO
OK, thats a reasonable use case. So presumably running
peapod.py --cleanup
should remove lines from download.log where the podcast is no longer on the filesystem or in the feed?
Removing files that belong to old feeds is slightly harder as the download.log file doesn't actually record where the download came from.
I'll take a look at the code and see if I can come up with a plan.
In the longer term I'd like to move to using sqlite as back-end which would make this kind of thing much easier.