[mythtv-users] Cleanup recordings not in database

Ramon Hofer ramonhofer at bluewin.ch
Sat Jun 25 12:03:56 UTC 2011


On 06/25/2011 01:37 PM, Ramon Hofer wrote:
> On 06/24/2011 06:40 PM, Raymond Wagner wrote:
>> 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?
> Yes, I ran the script and didn't delete anything.
> Then I ran it again and told it to delete.
>
> How can I include that missing include?
>
I don't know why but somehow the error has disappeared :-)

Thanks all for your help!


More information about the mythtv-users mailing list