[mythtv-users] find_orphans.py for master

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Sep 19 02:30:56 UTC 2014


On Thu, 18 Sep 2014 20:22:56 +0300, you wrote:

>
>
>
>
>> Date: Thu, 18 Sep 2014 12:28:23 -0400
>> From: raymond at wagnerrp.com
>> To: mythtv-users at mythtv.org
>> Subject: Re: [mythtv-users] find_orphans.py for master
>>
>> Looks like a typo, should be "datetime.now()". Other than that, you
>> have two backends that are inaccessible.
>
>Thanks for your help, Raymond. I'm running the script on the MB as the linux user that runs mythfrontend (the config.xml) is in my .mythtv folder. I don't know why it shows the backends as inaccessible, they are both active and accessible (I've got mythfrontend on pause atm)
>
>After correcting the typo, the script ran and it found a loooot of discrepancies. I deleted successfully a lot of orphaned data and files, but later it crashes:
>
>Please select from the following
> 1. Delete orphaned recording entries
> 2. Delete zero byte recordings
> 3. Forgotten pending deletion recordings
> 4. Refresh list
>> 2
>The following recordings will be deleted
>  al2kpro: Eurosport360 HD                                                   5300_20140913084917.mpg
>  al2kpro: Eurosport360 HD                                                   5300_20140913084926.mpg
>  al2kpro: Eurosport360 HD                                                   5300_20140913084930.mpg
>  al2kpro: Eurosport360 HD                                                   5300_20140913084954.mpg
>  al2kpro: Eurosport360 HD                                                   5300_20140913084958.mpg
>  al2kpro: Unknown                                                           5134_20140913104946.mpg
>  al2kpro: ??????? ?????? ????????? ???? ?????? - ??????? ??? ?? ??????      4025_20131027080001.mpg
>                                                                                  Count:           7
>Are you sure you want to continue?
>> yes
>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 302, in main
>    opt[1](opt[2])
>  File "/home/yianni/bin/find_orphans.py", line 234, in delete_recs
>    except MythError:
>NameError: global name 'MythError' is not defined
>
>Could it be due to the Greek letters?
>
>By the way, is there any way to pause or redirect the output to a file for reading? In my case there were so many missing entries I could't reach the top of the list :)
>
>Yianni.

You can increase the size of the display buffer in most ssh programs
and terminal programs to help with huge lists.


More information about the mythtv-users mailing list