[mythtv-users] Auto-delete duplicate recordings

Evuraan evuraan at gmail.com
Sun Dec 22 04:22:33 UTC 2013


On Mon, Dec 16, 2013 at 9:56 PM, Jacob Strandlien <kepesk at gmail.com> wrote:
> Hello!  I have been trying to find a way to do this for a couple of days now with no luck.
>
> I have a large archive of recordings on a well-used mythbox (0.27) and I know I have accumulated a lot of duplicates.  I need to free some space, but going through and manually getting rid of the duplicates would be a monumental task.
>
> Is there any mechanism or script available to track down these duplicates, and preferably delete all but the newest recording?  I've searched the web and poked at my interface with no luck.
>
> Thanks!!!

I've 0.25 with hdhr dual doing Over The Air, with terrible EIT
quality, (but whatever, it is free!). I also experience occassional
volley of duplicate recordings at times, (must be the way planets
align!).

You're welcome to use the script I wrote; I've been running it
regularly to remove the duplicates.

wget http://evuraan.info/evuraan/stuff/myth-remove-duplicates.sh.txt
-O myth-remove-duplicates.sh
chmod +x myth-remove-duplicates.sh

Edit to replace RECORDINGDIR, user_name and pass_word with what's
applicable to your setup and run myth-remove-duplicates.sh.


$ ./myth-remove-duplicates.sh
1091_20131221090100.mpg is duplicate
removed `/var/lib/mythtv/recordings/1091_20131221090100.mpg'
1091_20131221070100.mpg is duplicate
removed `/var/lib/mythtv/recordings/1091_20131221070100.mpg'


(My recordings are *.mpg. Most of my duplicates are a minute or so apart. )

Feedback is welcome.


More information about the mythtv-users mailing list