2010-01-31, 20:55
Thanks, that line of code is exactly the type of thing I was looking for. But, I've also thought of another solution and will share it if anyone else is looking to do the same thing.
So, I've got mythicalLibrarian in MOVE mode so that it moves the files then symlinks to them from their original location. Then I DO NOT allow mythtv to follow the Symlinks. That way when I delete a file from MythTV it just removes the link and the database info but leaves the file. This way I can delete the files from XBMC and it has no effect on MythTV.
To get MythTV to automatically remove recordings I could use the code Outleradam gave me, but instead, I'm setting each recording rule up to record 3 episodes, expiring the old and recording the new. This way there will always be three of each episode recored. But I have the mythicalLibrarian user job run for each episode as soon as it's done recording. This means I have the MythTV data for the last three episodes recorded in case mythicalLibrarian fails but I don't ever need to manually delete recordings.
I hope that makes sense. Once again, great script, thanks!
So, I've got mythicalLibrarian in MOVE mode so that it moves the files then symlinks to them from their original location. Then I DO NOT allow mythtv to follow the Symlinks. That way when I delete a file from MythTV it just removes the link and the database info but leaves the file. This way I can delete the files from XBMC and it has no effect on MythTV.
To get MythTV to automatically remove recordings I could use the code Outleradam gave me, but instead, I'm setting each recording rule up to record 3 episodes, expiring the old and recording the new. This way there will always be three of each episode recored. But I have the mythicalLibrarian user job run for each episode as soon as it's done recording. This means I have the MythTV data for the last three episodes recorded in case mythicalLibrarian fails but I don't ever need to manually delete recordings.
I hope that makes sense. Once again, great script, thanks!