2010-11-27, 18:44
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:
/etc/mythicalLibrarian/JobSucessful
Please let me know if there are any problems.
As of now, SYMLINK=Disabled is depreciated and will be removed soon after next stable revision.
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:
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
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.