Author Topic: Asking VC if a certain show is on from EGP  (Read 1755 times)

0 Members and 1 Guest are viewing this topic.

Brian

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 3
    • View Profile
Asking VC if a certain show is on from EGP
« on: February 06, 2021, 04:19:28 PM »
I set up a custom payload:

\Epg12.db
select idEpg, sTitle from epgtags

Titles are now in the payload. I'm stuck on asking VC if a certain show is on or if it will be on. For example: Are the Blackhawks on? When are the Blackhawks on? Is it possible for VC to tell me something like "The Blackhawks will start at 6pm"?

Thanks!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Asking VC if a certain show is on from EGP
« Reply #1 on: February 06, 2021, 05:54:25 PM »
I have no idea personally.  That information may not even be in the Kodi database.  There may be another way to query Kodi or maybe you need to scrape a website.  I don't have EPG capabilities here.

Brian

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 3
    • View Profile
Re: Asking VC if a certain show is on from EGP
« Reply #2 on: February 08, 2021, 12:49:45 PM »
Here's an example from the payload

Quote
    <payload>
        <value />
        <phrase>Mission Unstoppable</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>
    <payload>
        <value />
        <phrase>Hope in the Wild</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>
    <payload>
        <value />

I'm thinking it might be better to ask if something is on and it would search the epg and post the results. Right now I have Xjson.raw > GUI.ActivateWindow > "window": "tvsearch" ,"parameters": [ "epg12db://? ]
 
Would you happen to know what the parameters should be to perform a search query?

Thanks again!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Asking VC if a certain show is on from EGP
« Reply #3 on: February 12, 2021, 12:43:01 PM »
The only official information that might be able to help will be here:

https://kodi.wiki/view/JSON-RPC_API/v10

But there does not seem to be much there for the EPG stuff.

You might find it easier and more effective to scrape a web page, assuming you can find one that has programming information appropriate for your area or whatever TV channels you watch.