[mythtv-users] Problem running find_orphans.py
James Crow
crow.jamesm at gmail.com
Fri Jan 7 20:40:05 UTC 2011
Hello list,
I am trying to clean up my recording files and database meta data. I
use the mythwikiscript to download the find_orphans.py script. When I
run find_orphans.py it shows me several shows that have meta data, but
no file is found. If I try to delete the meta data the script bombs.
Some of the other script functions completed ok. It is only "Delete
orphaned recording entries" that is failing.
I am running Mythbuntu 10.04 amd64.
james at james-desktop:~/bin$ dpkg -l |grep myth | egrep "(python|backend)"
ii libmyth-python
2:0.24.0+fixes.20110106.c6c50df-0ubuntu0mythbuntu1 A python library to
access some MythTV features
ii mythtv-backend
2:0.24.0+fixes.20110106.c6c50df-0ubuntu0mythbuntu1 A personal video
recorder application (server)
james at james-desktop:~/bin$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.24-101-gc6c50df
MythTV Branch : fixes/0.24
Network Protocol : 63
Library API : 0.24.20101129-1
QT Version : 4.6.2
Options compiled in:
linux debug using_alsa using_jack using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl
using_bindings_python using_directfb using_dvb using_firewire
using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv
using_joystick_menu using_lirc using_mheg using_opengl_video
using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11
using_xrandr using_xv using_bindings_perl using_bindings_python
using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads
using_live using_mheg
This is the output from find_orphans.py:
<-- snip initial program output -->
Please select from the following
1. Delete orphaned recording entries
2. Delete zero byte recordings
3. Refresh list
> 1
The following recordings will be deleted
james-desktop: Barney & Friends - The Big Garden; Get Happy!
1291_20101227122800.mpg
james-desktop: Barney & Friends - The Magic Lamp, a Travel Adventure
1291_20101229122800.mpg
<-- snip many rows of output -->
james-desktop: The Talk
1071_20101224135900.mpg
james-desktop: The Talk
1071_20101229135900.mpg
james-desktop: Two and a Half Men - Big Flappy Bastards
1211_20100808175900.mpg
Count: 79
Are you sure you want to continue?
> yes
Traceback (most recent call last):
File "./find_orphans.py", line 225, in <module>
main()
File "./find_orphans.py", line 209, in main
opt[1](opt[2])
File "./find_orphans.py", line 129, in delete_recs
rec.delete(True, True)
File "/usr/lib/pymodules/python2.6/MythTV/dataheap.py", line 215, in delete
return self.getProgram().delete(force, rerecord)
AttributeError: 'NoneType' object has no attribute 'delete'
james at james-desktop:~/bin$
Any help appreciated.
Thanks,
James
More information about the mythtv-users
mailing list