[mythtv-users] Deleted recording - no disk space returned
Michael T. Dean
mtdean at thirdcontact.com
Thu Nov 11 22:37:19 UTC 2010
On 11/11/2010 05:34 PM, Nick Rout wrote:
> On Fri, Nov 12, 2010 at 8:51 AM, Michael T. Dean wrote:
>> http://www.mythtv.org/wiki/Find_orphans.py is the supported script.
>>
>> It's purely informational (and, therefore, can not corrupt your database or
>> delete all your recordings if you don't use it properly--things that
>> happened with the old scripts) and requires that you do (and, therefore,
>> agree to) the final cleanup. So, for example, you would delete recordings
>> with missing files using mythfrontend's Watch/Delete Recordings screen; or
>> you would rm or mv video (or other) files with no recording metadata
>> (usually move the video files into MythVideo, and potentially use Previously
>> Recorded to allow the episode to re-record).
> Looks promising, but I get:
>
> nick at media:~$ ./find_orphans.py
> 2010-11-12 11:32:43.098 Python Database Connection: Using connection
> settings from /home/nick/.mythtv/config.xml
> 2010-11-12 11:32:43.115 Python Database Connection: Using connection
> settings from /home/nick/.mythtv/config.xml
> 2010-11-12 11:32:43.116 Python Database Connection: Using connection
> settings from /home/nick/.mythtv/config.xml
> Traceback (most recent call last):
> File "./find_orphans.py", line 145, in<module>
> main()
> File "./find_orphans.py", line 41, in main
> with db as c:
> AttributeError: 'MythDB' object has no attribute '__exit__'
>
>
> Am I missing something?
Only works with 0.24+ bindings. Are you still on 0.23?
Mike
More information about the mythtv-users
mailing list