[mythtv-users] Plex integration

Ben Kamen bkamen at benjammin.net
Mon Jan 4 01:00:54 UTC 2016


On 2016-01-03 6:34 PM, Ben Kamen wrote:
>
> Ok - a few more minutes and I understand this better. (I've never connected to my backend via http[s] and port 6544.
>
> I'm looking at https://www.mythtv.org/wiki/Services_API now...
>
> (never had in past -- didn't need to.)
>
> I'll see what I can figure out from here.
>
> ta ta.

I found it...

The Myth Backend is serving up timestamps withOUT the 'Z' at the end of the string where the __init__.py strings were set up as such:


         shouldStart = datetime.datetime.strptime(programStart,"%Y-%m-%dT%H:%M:%SZ")
         didStart = datetime.datetime.strptime(recordingStart,"%Y-%m-%dT%H:%M:%SZ")
         shouldEnd = datetime.datetime.strptime(programEnd,"%Y-%m-%dT%H:%M:%SZ")
         didEnd = datetime.datetime.strptime(recordingEnd,"%Y-%m-%dT%H:%M:%SZ")


I took out the Z's to match the string and poof.

It's working fine now.

This is fabulous.

  -Ben


More information about the mythtv-users mailing list