[mythtv-users] find_orphans.py for master
Yianni
yiannividalis at hotmail.com
Thu Sep 18 15:06:06 UTC 2014
> It should still work, however it may be affected by changes in the
> primary key in the `recorded` table. That's a bindings issue, not
> specifically a script issue.
Calling it gives:
yianni at storage:~> find_orphans.py
2014-09-18 17:58:48.807730 I [330] pythonbindings Could not access Default at al2kpro/myth/
2014-09-18 17:58:48.838641 I [330] pythonbindings Could not access LiveTV at al2kpro/myth/livetv/
2014-09-18 17:58:48.842269 I [330] pythonbindings Could not access DB Backups at al2kpro/myth/backups/
2014-09-18 17:58:49.280432 I [330] pythonbindings Could not access Default at al2kpro/myth/tvstorage/
2014-09-18 17:58:49.283748 I [330] pythonbindings Could not access LiveTV at al2kpro/myth/tvlivestorage/
2014-09-18 17:58:49.398398 I [330] pythonbindings Could not access Music at al2kpro/store/readonly/mp3/
2014-09-18 17:58:49.402571 I [330] pythonbindings Could not access MusicArt at al2kpro/store/readonly/MythMusicArt/
2014-09-18 17:58:49.405682 I [330] pythonbindings Could not access DB Backups at al2kpro/store/readonly/mythbackups/
2014-09-18 17:58:49.556904 I [330] pythonbindings Could not access Default at storage/myth/
2014-09-18 17:58:49.558928 I [330] pythonbindings Could not access LiveTV at storage/myth/livetv/
2014-09-18 17:58:49.560832 I [330] pythonbindings Could not access DB Backups at storage/myth/backups/
2014-09-18 17:58:49.562413 I [330] pythonbindings Could not access Default at storage/myth/tval2kpro/
2014-09-18 17:58:49.563860 I [330] pythonbindings Could not access LiveTV at storage/myth/tvliveal2kpro/
2014-09-18 17:58:49.660468 I [330] pythonbindings Could not access DB Backups at storage/myth/mythbackups/
2014-09-18 17:58:49.673751 I [330] pythonbindings Could not access Default at storage/myth/disk2/tval2kpro/
2014-09-18 17:58:49.675244 I [330] pythonbindings Could not access LiveTV at storage/myth/disk2/tvliveal2kpro/
Traceback (most recent call last):
File "/home/yianni/bin/find_orphans.py", line 313, in <module>
main()
File "/home/yianni/bin/find_orphans.py", line 269, in main
results = populate(host)
File "/home/yianni/bin/find_orphans.py", line 26, in __call__
return self._instance()
File "/home/yianni/bin/find_orphans.py", line 137, in __call__
self.refresh_content()
File "/home/yianni/bin/find_orphans.py", line 181, in refresh_content
elif rec.doubleorphan:
File "/home/yianni/bin/find_orphans.py", line 62, in doubleorphan
return self.deletepending and ((datetime.now - self.lastmodified).days> 1)
TypeError: unsupported operand type(s) for -: 'instancemethod' and 'datetime'
Am I missing something? I ran it on the MB.
More information about the mythtv-users
mailing list