👀

🔜 📺

(It looks like dirt right now, but the point is, it works.)

( @getchannels )

And after some tweaks, it looks *far* better.

Feeling pretty good about this. I tuned Channels to a random live TV station and then opened Callsheet.

Only currently supporting @getchannels.

I plan/hope to include Plex support as well, but their API is… way WAY more involved. 😢 And I think I may need an entitlement from Apple to do it, so I'm at their whims as well. 😭

Regardless, feeling pretty good about the Channels integration so far. 😎 Beta testers, expect something in a few days.

Generally, when you tap one of these detected Now Playing items, Callsheet will simply do a search for the title.

However, in some cases, @getchannels can provide me more information, and this happens:

Many thanks to @maddox for tag-teaming on this. Still more work to do, but we're getting there. 🙌🏻

Progress is being made, but I had to pull in my first third-party dependency to get this to work. 😭

(THIS IS DEVELOPER UI I know it sucks that's not the point you don't have to tell me I still 💙 you though)

Anyway, this has been a fuckin' SLOG, but I'm pleased and relieved to start to see it working.

A few things here:

• This won't work unless I request and receive a multicast entitlement from Apple; I will be asking tomorrow.
• The Plex APIs are… shall we say… creaky… so I'm not sure how well this will work in the wild
• This would not be possible without “A” and "H". I'm happy to tag them but they're both asleep and I don't want to risk it just in case they're not comfortable. Anyway, when I say "would not be possible", that's not me being cute. It literally wouldn't have happened.

@caseyliss The Plex API is like someone saw some old SOAP XML monstrosity, stood back and thought “huh, not too bad.”

@chrispoole don’t even get me fuckin started

Truth be told the XML bothers me less than the roll-your-own bonjour

@caseyliss ah, I wasn’t hit by that. I was just hacking something together for personal use, against their HTTP endpoints on my local network. Still a PITA.
@chrispoole In their defense, I'm pretty sure most of Plex predates JSON, but XML is still… not preferred.

@caseyliss Yeah agreed… but it is a commercial product, and JSON is hardly new.

I wouldn’t even mind the XML if it was sane in the semantics it presents. To do what I want to do (I think quite a simple use case), I have to call one endpoint, use some of the return values when driving another, refactor a response… it just lacks delight for the person driving the API. Feels like it’s not really meant to be used at all.

@chrispoole From what I've gathered, both from my own looking around, and from people inside, is that the APIs are ancient and creaky and are designed to serve Plex and only Plex.

@caseyliss yeah that feels about right to me too.

Off topic but perhaps relevant to your interests: https://mastodon.social/@samlavigne/110951947092096698
If you’ve not already seen it 💫