[mythtv-users] orphans

Jim Abernathy jfabernathy at gmail.com
Mon Sep 28 13:00:59 UTC 2020


On 9/28/20 7:31 AM, Daryl McDonald wrote:
> I'm getting an error when I run "./find_orphans.pl 
> <http://find_orphans.pl>" :
>
> the following recordings will be deleted
>   trieli: Council of Dads - The Sixth Stage                   
> 1321_20200514235900.ts
>   trieli: Council of Dads - Heart Medicine                 
>  1321_20200604235900.ts
>   trieli: Fruitvale Station                   1002_20200706025900.ts
>   trieli: NFL Football - Carolina Panthers at Tampa Bay Buccaneers     
>        1171_20200920165900.ts
>   trieli: The Code                  1503_20200711235900.ts
>   trieli: The Good, the Bad and the Ugly                 
>  1322_20200607205900.ts
>                       Count:           6
> Are you sure you want to continue?
> > yes
> Traceback (most recent call last):
>   File "./find_orphans.py", line 230, in <module>
>     main()
>   File "./find_orphans.py", line 214, in main
>     opt[1](opt[2])
>   File "./find_orphans.py", line 129, in delete_recs
>     rec.delete(True, True)
>   File "/usr/lib/python3/dist-packages/MythTV/dataheap.py", line 377, 
> in delete
>     return self.getProgram().delete(force, rerecord)
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 972, 
> in delete
>     res = int(be.deleteRecording(self, force=force))
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 668, 
> in deleteRecording
>     [command,program.toString()]))
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 962, 
> in toString
>     return BACKEND_SEP.join(self._deprocess())
>   File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 178, 
> in _deprocess
>     data[i] = self._inv_trans[self._field_type[i]](v)
>   File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 113, 
> in <lambda>
>     lambda x: str(int(x.timestamp())),
>   File "/usr/lib/python3/dist-packages/MythTV/utility/dt.py", line 
> 481, in timestamp
>     return ((utc_naive - utc_epoch).total_seconds())
> TypeError: can't subtract offset-naive and offset-aware datetime
>
> Do I need to "touch" these files then re-try?
>
> If so, would that be "sudo touch 
> /drives/storage1/mythtv/recordings/1321_20200514235900.ts" and so on 
> for each?
>
> TIA  Daryl


I recently had issues with the find_orphan script after upgrading to 
v31.  If it's the same issue then... The script was identifying all my 
programs as orphans.  It's a script problem. I found this edit note in 
my version of the script.

#!/usr/bin/python3
# modified from v31 original from wiki 
https://www.mythtv.org/wiki/Find_orphans.py
# I replaced 2 occurances of BackendServerIP with BackendServerAddr

look at the archive(https://lists.archive.carbon60.com/mythtv/users/) 
and search for BackendServerAddr for a discussion on it.

Jim A


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200928/a05f9571/attachment.htm>


More information about the mythtv-users mailing list