You are here

UK S K Y

8 posts / 0 new
Last post
moe122
Offline
Has donated long time ago
Joined: 2 years
Last seen: 11 months
UK S K Y

Hi,

I'm looking for some help. I have tried looking over the internet with no luck. When looking at the EPG on S k y . c o m website, it provides you with a numeric value for "eg" and "esg". I believe they correspond to the programme genre and sub-genre. Can anyone provide the corresponding genre/sub-genre list please?

Thanks in advance

M

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 4 hours

not sure if they are 100% correct and also forget how i came up with the category names as it was ages ago but heres how i did it..

index_category.scrub {regex||"es?g":(\d+),||}

*
index_category.modify {replace(type=regex)|"^0$"|Other}
index_category.modify {replace(type=regex)|"^1$"|Shopping}
index_category.modify {replace(type=regex)|"^2$"|Kids}
index_category.modify {replace(type=regex)|"^3$"|Entertainment}
index_category.modify {replace(type=regex)|"^4$"|Other}
index_category.modify {replace(type=regex)|"^5$"|Series}
index_category.modify {replace(type=regex)|"^6$"|Movie}
index_category.modify {replace(type=regex)|"^7$"|Sport}
index_category.modify {replace(type=regex)|"^8$"|} *???
index_category.modify {replace(type=regex)|"^9$"|Variety}
index_category.modify {replace(type=regex)|"^10$"|Gaming & Dating}
index_category.modify {replace(type=regex)|"^11$"|Documentary}
index_category.modify {replace(type=regex)|"^12$"|Music}
index_category.modify {replace(type=regex)|"^13$"|Religious}
index_category.modify {replace(type=regex)|"^14$"|International}
index_category.modify {replace(type=regex)|"^15$"|Special}

as u can see i couldnt at the time figure out what category number 8 was so i remove it.
edit:
now that i thought about it i think i found them in one of the javascript files.
again no idea which one it was as it was long ago.
pretty sure the categories are based on what you see on the site,i also think category 8 was hd channels.
thats why i removed it.

moe122
Offline
Has donated long time ago
Joined: 2 years
Last seen: 11 months

Firstly, thanks for your reply :) So I started off with the link below which has channel genre and EPG genre. I just combined the 2 together, just to check if they match the EPG data. I then created an array with channel code, programme title, eg, sg to see if it matches (attached). Skimming through, some match, some do not. I have also tried to match yours and again some match and some do not. I was assuming eg = genre and esg = subgenre e.g. Movies and Action but then it could be as your post suggests eg = genre and esg = secondary genre. Im not sure if it is possible, but I would be really grateful if you could somehow locate the correct descriptions from the S K Y website.

https://github.com/Mermade/openSky/wiki/channel-identifiers

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 4 hours

i went through every file in could fine and i couldnt find it.
if category is important you could use their accessibility site.
https://live.tvgenius.net/accessible/text/index.html?colour=one&tvgRegio...

my guess is the eg and esg categories are hard coded in the users set top box firmware so it will show for them.

it comes at a price of loosing actor,productiondate and maybe other stuff that i didnt see that their full tvguide has.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 4 hours

figured it out.

based on the categories Here

categories start at line 534.

the esg is a subcategory or the eg.
so the esg sub categories change with the eg category.
thats why we couldnt make any sense of the eg/esg number conbination.

first we need to scrub the eg and esg separate.

index_category.scrub {regex||"eg":(\d+),||}
index_temp_8.scrub {regex||"esg":(\d+),||}

then a bunch of code to load a element with the correct esg categories based on the eg value.

global_temp_8.modify {set|None\|Specialist\|Children\|Entertainment\|Music & Radio\|News & Documentary\|Movie\|Sports}
if {('index_category' "1")|1}
global_temp_9.modify {set|None\|Adult\|Events\|Shopping\|Gaming}
if {('index_category' "2")|1}
global_temp_9.modify {set|None\|Cartoon\|Comedy\|Drama\|Educational\|Under 5\|Factual\|Magazine\|Game Shows\|Games}
if {('index_category' "3")|1}
global_temp_9.modify {set|None\|Action\|Comedy\|Detective\|Drama\|Game Show\|Sci-Fi\|Soap\|Animation\|Chat Show\|Cooking\|Factual\|Fashion\|Gradening\|Travel\|Technology\|Arts\|Lifestyles\|Home\|Magazine\|Medical\|Review\|Antiques\|Motors\|Art & Literature\|Ballet\|Opera}
if {('index_category' "4")|1}
global_temp_9.modify {set|None\|Classical\|Folk and Country\|National Music\|Jazz\|Opera\|Rock&Pop\|Alternative Music\|Events\|Club and Dance\|Hip Hop\|Soul/R&B\|Dance\|Ballet\|####\|Current Affairs\|Features\|Arts & Literature\|Factual\|####\|####\|Lifestyle\|News and Weather\|Easy Listening\|Discussion\|Entertainment\|Religious}
if {('index_category' "5")|1}
global_temp_9.modify {set|None\|Business\|World Culture\|Adventure\|Biography\|Educational\|Feature\|Politics\|News\|Nature\|Religion\|Science\|Showbiz\|War Documentary\|Historical\|Ancient\|Transport\|DocuDrama\|World Affairs\|Features\|Showbiz\|Politics\|Transport\|World Affairs}
if {('index_category' "6")|1}
global_temp_9.modify {set|None\|Action\|Animation\|####\|Comedy\|Family\|Drama\|####\|Sci-Fi\|Thriller\|Horror\|Romance\|Musical\|Mystery\|Western\|Factual\|Fantasy\|Erotic\|Adventure\|War}
if {('index_category' "7")|1}
global_temp_9.modify {set|None\|American Football\|Athletics\|Baseball\|Basketball\|Boxing\|Cricket\|Fishing\|Football\|Golf\|Ice Hockey\|Motor Sports\|Racing\|Rugby\|Equestrian\|Winter Sports\|Snooker/Pool\|Tennis\|Wrestling\|Darts\|Water Sports\|Other}

then get the correct eg and esg category names and combine them back into the category element.

index_temp_8.modify {substring(type=element)|'global_temp_9' 'index_temp_8' 1}
index_temp_8.modify {clear("None")}
index_category.modify {substring(type=element)|'global_temp_8' 'index_category' 1}
index_category.modify {clear("None")}
index_category.modify {addend('index_temp_8' not "")|\|'index_temp_8'}

a es or esg value of 0 means there is none.

moe122
Offline
Has donated long time ago
Joined: 2 years
Last seen: 11 months

So correct me if I'm wrong eg is the main category 0-7 (and corresponds to your global_temp_8 value) then esg is the subcategory (and corresponds to your global_temp_9 value)?

Also what location are you using to get data for actors?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 4 hours

thats correct about the eg and esg.
for actors far as i know there is none.

moe122
Offline
Has donated long time ago
Joined: 2 years
Last seen: 11 months

Thanks, I'm not sure how you managed to find the link above but it was really useful.

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