2010-11-30, 05:58
outleradam Wrote:I committed MythDataDeleter to the SVN.
MythDataDeleter enables a proper deletion of a recording as a mythicalLibrarian UserJob under MythTV/0.24.
MythDataDeleter is a full standalone python program. You can find the manual here http://www.mythtv.org/wiki/MythDataDeleter
To utilize under mythicalLibrarian with 0.24:
The 0.23 depreciation workaround will be:Code:sudo curl "http://mythicallibrarian.googlecode.com/svn/trunk/pythonBindings/MythDataDeleter" > /usr/local/bin/MythDataDeleter
chmod +x /usr/local/bin/MythDataDeleter
echo "test \"$RequiresDoover\" != \"1\" && /usr/local/bin/MythDataDeleter \"$InputFile\" --writeFile --output=\"$MoveDir/$ShowFileName.info.txt\" |tee -a \"$mythicalLibrarian\output.log\""|sudo tee -a "/etc/mythicalLibrarian/JobSucessful "
mythicalLibrarian --update
/etc/mythicalLibrarian/JobSucessful
Please let me know if there are any problems.Code:if [ "$RequiresDoover" != "1" ]; then
echo "REMOVING - $FileBaseName - THUMBNAILS - DATABASE ENTRIES"|tee -a "$mythicalLibrarian"/output.log
mysql -u$MySQLuser -p$MySQLpass -e "use '$MySQLMythDb' ; delete from recorded where basename like '$FileBaseName'; "
rm -f "$originaldirname/$FileBaseName".*
fi
As of now, SYMLINK=Disabled is depreciated and will be removed soon after next stable revision.
Ok, I don't quite know what all this means. Do I need to add another user job to my mythtv setup to delete recordings, or will your script continue to delete my recordings from my mythtv database, just using a new method?