[mythtv-users] Cleanup recordings not in database

Raymond Wagner raymond at wagnerrp.com
Fri Jun 24 16:40:53 UTC 2011


On 6/24/2011 08:29, Ramon Hofer wrote:
> On 06/24/2011 02:02 PM, Nick Morrott wrote:
>> On 24 June 2011 11:45, Ramon Hofer<ramonhofer at bluewin.ch>   wrote:
>>> On 06/23/2011 06:44 PM, Michael T. Dean wrote:
>>>> On 06/23/2011 06:38 AM, Ramon Hofer wrote:
>>>>> On 06/14/2011 06:57 PM, Chris Kapp wrote:
>>>>>> Recently I had a hard drive crash that left records in the database
>>>>>> without files and files without database records (I managed to get
>>>>>> some of the files backed up before I completely lost the drive).  I
>>>>>> found this script worked well:
>>>>>>
>>>>>> http://www.mythtv.org/wiki/Find_orphans.p
> Hm, it lists the orphaned recordings but it can't delete them:
>
> The following recordings will be deleted
> ...
>                                                                        Count:          15
> Are you sure you want to continue?
>   >  yes
> Traceback (most recent call last):
>     File "/home/hoferr/bin/find_orphans.py", line 230, in<module>
>       main()
>     File "/home/hoferr/bin/find_orphans.py", line 214, in main
>       opt[1](opt[2])
>     File "/home/hoferr/bin/find_orphans.py", line 135, in delete_recs
>       except MythError:
> NameError: global name 'MythError' is not defined

That specific error was because of a missed include, that resulted in 
the error handling not functioning properly.  The initial error was 
caused by the backend reporting a failure to delete.  Did you run the 
delete once, get a new list of content, and tell it to delete a second time?


More information about the mythtv-users mailing list