2005-03-22, 02:54 AM
This is a new utility called DeleteRecordings.exe that will allow you to keep exactly between X and Y episodes per show.
For example, you want to keep no more than 10 simpsons episodes at a time, but will allow going as low as 5 if space is needed, and maybe only 5 seinfeld episodes but allow it to go as low as 2 if needed.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<config>
<drives>
<drive letter="R" min_free_gb="5.3" />
</drives>
<directories>
<directory path="R:\The Simpsons" min_count="5" max_count="10" />
<directory path="R:\Seinfeld" min_count="2" max_count="5" />
</directories>
</config>
[/QUOTE]
The attached distro file includes a sample config file, a readme with a complete featue list (e.g. will remove comskip, etc files as well), and a batch file to run it in "safe mode" which will tell you what would be deleted, but won't actually do it.
A few notes:
* Inspired by ReplayTV's scheduling feature of "keep X hours of this show"
* Actually had this banged out a couple weeks ago but didn't have time to post it -- the couple references to MaxRecordings in another thread reminded me to get this tested & posted.
* This is pretty simple in that it does not use GBPVR or its database in anyway. A "episodes" ais just defined as a .mpg file in the directory in question. This is good in that this util is simpler in code and more generic in use (i will soon put the extension to use in the cfg file). Also note that gbpvr will remove any db entries for you once it sees that the file is physically gone.
* Source code will be posted momentarily (comments welcome)
For example, you want to keep no more than 10 simpsons episodes at a time, but will allow going as low as 5 if space is needed, and maybe only 5 seinfeld episodes but allow it to go as low as 2 if needed.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<config>
<drives>
<drive letter="R" min_free_gb="5.3" />
</drives>
<directories>
<directory path="R:\The Simpsons" min_count="5" max_count="10" />
<directory path="R:\Seinfeld" min_count="2" max_count="5" />
</directories>
</config>
[/QUOTE]
The attached distro file includes a sample config file, a readme with a complete featue list (e.g. will remove comskip, etc files as well), and a batch file to run it in "safe mode" which will tell you what would be deleted, but won't actually do it.
A few notes:
* Inspired by ReplayTV's scheduling feature of "keep X hours of this show"
* Actually had this banged out a couple weeks ago but didn't have time to post it -- the couple references to MaxRecordings in another thread reminded me to get this tested & posted.
* This is pretty simple in that it does not use GBPVR or its database in anyway. A "episodes" ais just defined as a .mpg file in the directory in question. This is good in that this util is simpler in code and more generic in use (i will soon put the extension to use in the cfg file). Also note that gbpvr will remove any db entries for you once it sees that the file is physically gone.
* Source code will be posted momentarily (comments welcome)