(2013-03-06 08:56)ubuntite Wrote:(2013-01-19 08:17)outleradam Wrote: The Symlink=Disabled is kinda a depricated feature. There is a script called MythDataDeleter. http://www.mythtv.org/wiki/MythDataDeleter We wrote that right after mythicalLibrarian switched to MythDataGrabber. MythDataDeleter will do what you want.
So, Symlink=Disabled doesn't seem to be deleting my database entries.
How do I go about implementing MythDataDeleter?
In case this might help someone, this is what I did.
My goal was to:
- move a recorded show to my NAS
- transcode it to an x264 .mp4 & delete the .mpg
- delete the related .txt and .nfo files on the NAS that get generated for the show
- delete the show from the myth database
- delete the show's thumbnails from the myth recordings directory
The first this I did was to make sure to set Symlink=Move in mythicalLibrarian.
Next I copied this code into /usr/local/bin/MythDataDeleter and did a sudo chmod 755 on it.
Then I inserted the following code into mythicalLibrarian directly underneath "#Insert Custom User Job here" within the "#Successful Completion of mythicalLibrarian" section of the "### USER JOBS ###" section.
ffmpeg -i "$MoveDir/$ShowFileName.$OriginalExt" -vcodec libx264 -vpre veryfast -deinterlace "$MoveDir/$ShowFileName.mp4"
/usr/local/bin/MythDataDeleter --filename="$InputFileBasename" --DBPin="$DBPin" --DBHostName="$DBHostName" --DBName="$MySQLMythDb" --DBUserName="$MySQLuser" --DBPassword="$MySQLpass"
The next thing I would like to accomplish is to automatically remove the commercial breaks when I do the transcoding. Can anyone give me some assistance? Thanks.