You are here

Help on getting epg data for channels from tvkingdom.jp.sub.channels.ini

5 posts / 0 new
Last post
Appoxo
Offline
Appoxo's picture
Donator
Joined: 1 month
Last seen: 3 weeks
Help on getting epg data for channels from tvkingdom.jp.sub.channels.ini

My WebGrab++ version: docker container by linuxserver.io (5.3.0-ls255)
OS: Host OS is a Debian 11. Linuxserver apparently uses Alpine 3.21

I got access through a provider for some of the terrestrial channels of Osaka.
Initially I wanted to use eonet.jp.ini because it had all the channels I needed but after getting my donators license and trying to pull the data I found out that the eonet source is deprecated.

Now I found out that tvkingdom.jp (tvkingdom.jp.sub.channels.ini) seems to have most of the channels I have.
The page for my content can be found on https://www.tvkingdom.jp/chart/40.action (40 being the number of Osaka on tvkingdom).

The channels I currently got access to are:
NHK総合1・大阪
NHKEテレ1大阪
MBS毎日放送
ABCテレビ1
テレビ大阪1
関西テレビ1
読売テレビ1
BS11イレブン

My issue now is that all of the XMLs in the SiteIni.Pack are missing some channels like "MBS毎日放送" (or at least CTRL + F didnt show any results :/)

Am I reading the XMLs wrong? Did I miss some entry? Any other advice

If you need any other data, please tell me. I am very new to this whole topic

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 min

you will have to be specific as to what your looking for.
its diffficult for use developers as none of us know japanese.
have you tried creating updated channel lists(open ini and read the remarks section).

Appoxo
Offline
Appoxo's picture
Donator
Joined: 1 month
Last seen: 3 weeks

Thank you very much for trying to help me.
I am honestly very lost with the ini file remarks.

As far as I can tell, I feel like I shouldn't tamper the ini files as it wouldn't make much sense when some interact with encrypted ini files.

So I wanna get the EPG for the terrestrial channel for Osaka (大阪).
If I insert "大阪" from tvkingdom.jp.sub.channels.channels.regions.xml into my config.xml I get no entry output (obviously as it doesnt know which channel).
So I went into the tvkingdom.jp.sub.channels.channels.sub-channels.xml and tried to understand what it does.
The site_ids are much more clear but I don't understand how to aquire the channels.
Taking the following line as an example:

NHK総合2・東京

site_id="23##10##101024##101025"
I would believe 23 is the region Tokyo (東京),
10 seems to be the terrestrial section. Because BS(1) is group 21 and BS(2) is group 22.
but what is does 101024 and 101025 mean?

As you seemingly created the ini files for the page (at least according to the remarks), can you give me a rundown/example how to acquire all the terrestrial channels or how to format my xml request to get the channels I want?
According to both ini files (tvkingdom.jp.ini and tvkingdom.jp.sub.channels.ini) there exists a way to spit out all channels for a subpage?

Cheers,
Appoxo

Update
101024 seems to be somehow associated with the channel.

So for Osaka and the channel "NHK 総合1・大阪" this would mean

<?xml version="1.0" encoding="UTF-8"?>

  
    NHK 総合1・大阪
  

So can you tell me what the last part means? It seemingly adds 1 to the id but then one line in the example xml for the line

TOKYO MX2

increments it by 2.

Appoxo
Offline
Appoxo's picture
Donator
Joined: 1 month
Last seen: 3 weeks

Nevermind I managed it myself.
For anyone also having issues, this is the xml entry (I replaced the angled with square brackets:
[channel update="i" site="tvkingdom.jp.sub.channels" site_id="40##10##140960##140962" xmltv_id="NHK-G 1- Osaka"]NHK-G 1- Osaka[/channel]

Essentially for "40##10##140960##140962":
40 = The region -> That can be seen in the source code if you inspect the drop down menu
10 = Terrestrial reception, BS(1) has group 21, BS (2) has 22, ...
140960 = This is some random number tvkingdom.jp seems to have assigned to this channel for this region.
You can get the id by looking at some random show in the tvguide and copying the url (the number in curly brackets)-> https://www.tvkingdom.jp/schedule/{140960}202501310700.action
The remaining of the url is the date and time so 2025-01-31 at 07:00 (am)

Hope it helps someone :)

@Blackbear199: Maybe consider updating the xml to guide people that arent so good with technology :) This way everyone can enjoy some EPG from this awesome page :)

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 min

read the remarks near the top of the ini.
if you goto the epg channels page.
https://webgrabplus.com/epg-channels
find the ini and hover your mouse on the far right(a ! mark means there is comments in the remarks section) it will show you any remarks that are in the ini.

users should check the remarks section for any ini they use for special usage instructions.
may ini have special instructions.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl