You are here

Updates to starhubgo.com.ini

10 posts / 0 new
Last post
Harroguk
Offline
Joined: 7 years
Last seen: 4 years
Updates to starhubgo.com.ini

Hey guys,

I am looking for someone who can help me with updating the starhubgo.com.ini file so that when I use it in plex it recognises season numbers as well as episode numbers.

 

Currently plex just flags everything as a "Movie" I assume this is because it is not detecting season numbers correctly.

I took a look at the starhubgo.com site and it appears that they append the season number to the end of the series name if they have it...

https://www.starhubgo.com/singleChannelLiveListing?channelId=9520542&sel...

i.e.

Paw Patrol 2

Thomas & Friends 19

Hairy Legs 4

However I am unable to work out the syntax I should use to scrape this info.

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

Thanks for the help.

 

I will take a look tomorrow as I am in APAC timezone (obviously) and evenings are family time for me.

In plex no progtams show as "series" everything shows as "movie". I imported a good feed for BBC1 UK TV (and just overlayed it on a channel it wasnt for) and that displayed correctly as a series.

 

Other channels I am interested in (and also display incorrectly) are Mediacorp Channel 5, Channel News Asia and Okto.

 

Thanks again for the suggestions. I will reply tomorrow.

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

So I attempted the changes that you suggested above to no avail.

Everything is still identified as a "Movie" in Plex.

An example snip from my guide.xml is...

  <programme start="20170822163000 +0000" stop="20170822173000 +0000" channel="Ch 5">
    <title lang="en">The Flash 2 (HD)</title>
    <sub-title lang="en">(PG-Action Violence)Family of Rogues</sub-title>
    <desc lang="en">When Barry and the team find out Captain Cold has been kidnapped, they form an uneasy alliance with his sister, Lisa. However, Barry feels double-crossed when he finds out Snart is working with his father, Lewis Snart on a heist. Meanwhile, Joe is faced with a difficult decision(n)</desc>
    <category lang="en">Drama</category>
    <category lang="en">Series</category>
    <category lang="en">General</category>
    <episode-num system="onscreen">E3</episode-num>
  </programme>

 With a bit of trial and error I have worked out that if I use episode-num system="xmltv_ns"

<episode-num system="xmltv_ns">2.3.</episode-num>

Then the series is correctly identified as a show however, as I dont have series numbers the shows are not correctly identified...

There is no such show as...

America's Got Talent 12 (HD)

It should be America's Got Talent

Series 12

 

 

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

I managed to build a URL that will give a JSON response...

https://www.starhubgo.com/live/getLiveChannelPrograms?pCode=V4bmQyOqnbswtz9daXLyKFGCO8Zp&channelIds=["8735373","8413941","9528553"]&startTime=2017-08-18T04:00:00.000Z&endTime=2017-08-19T04:00:00.000Z&pageSize=8000&localDate=2017-08-18&requestQuery=multiasset

As predicted they dont include the series number in the JSON however they do generally include it on the end of the program name, in various formats depending on the channel...

Series Numbers (on end of titles) examples

name: "America's Got Talent 12 (HD)",
name: "Arts 21 (HD)",
name: "Body And Soul 5 (HD)",
name: "Doc McStuffins 3 (HD)",
name: "Horrid Henry 4 (HD)",
name: "Just For Laughs Gags 16 (HD)",
name: "League Of Super Evil 1 & 2 (HD)",
name: "Lion Mums 2 (HD)",
name: "Mat Yoyo 3 (HD)",
name: "Mata Mata 3 (HD)",
name: "Paw Patrol 2 (HD)",
name: "Power List Asia 6 (HD)",
name: "Sesame Street 44 (HD)",
name: "The Big Bang Theory 10 (HD)",
name: "The Dr Oz Show 8 (HD)",
name: "The Flash 2 (HD)",
name: "Tobot 4 (HD)",
name: "World's Scariest 3 (HD)",
name: "Undercover Asia 2(HD)",
name: "Growing Up 4",
name: "LEGO Ninjago 6",
name: "Moon Face 2",
name: "Planet Earth 2",
name: "Steam Punks Season 2",
name: "True Files 2",
name: "Yo Gabba Gabba Sr 3",

 

Not Series numbers (on end of titles)

name: "News 5 (HD)",
name: "Daniel Tiger's Neighborhood Season 1 #1-40",
name: "Super 100 (HD)",
name: "National Day Rally 2017",
name: "FINA\/airweave Swimming World Cup 2017",

 

Using Roman Numerals to indicate Season number (for no apparent reason)

name: "The Flash II (HD)",
name: "The X Factor UK XIII (HD)",
name: "The Ellen DeGeneres Show XIV (HD)",
name: "Wheel Of Fortune XXXIV (HD)",

 

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

Awesome sauce.

 

I will trst tomorrow and let you know how it goes.

 

Thanks again for all of the help

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

So, looking in my guide it looks like the " (HD)" is being stripped correctly however it doesnt look like anything is being moved into the "Season Number" field, examples are below.

Extract from guide.xml...

 <programme start="20170818083000 +0000" stop="20170818092000 +0000" channel="Ch 5">
    <title lang="en">The Ellen DeGeneres Show XIV</title>
    <sub-title lang="en">Kat Dennings, Morris Chestnut, OneRepublic</sub-title>
    <desc lang="en">(Encore) Kat Dennings, Morris Chestnut, Ellen DeGeneres &amp; Ryan Tedder play "Celebrity Shuffleboard". OneRepublic perform their hit "Kids"(n)</desc>
    <category lang="en">Entertainment</category>
    <category lang="en">General</category>
    <episode-num system="xmltv_ns">.23.</episode-num>
  </programme>

Extract from JSON stream for the above show...

"8": {
"id": "127849510",
"type": "episode",
"episode_number": 24,
"display_locale": "en_GB",
"description": "(Encore) Kat Dennings, Morris Chestnut, Ellen DeGeneres & Ryan Tedder play \"Celebrity Shuffleboard\". OneRepublic perform their hit \"Kids\".",
"genre": "Entertainment",
"subgenre": "General",
"episode_title": "Kat Dennings, Morris Chestnut, OneRepublic",
"name": "The Ellen DeGeneres Show XIV (HD)",
"program_start_time": "2017-08-18T08:30:00.000Z",
"program_end_time": "2017-08-18T09:20:00.000Z",
"parental_rating": "0",
"language": "eng",
"HD": false,
"images": [],
"offers": [],
"collections": [],
"durationInSec": 3000,
"durationInMin": 50,
"durationInPixel": 250,
"programDetailsInOneLine": "50 Mins"
},

 

Extract from Guide.xml

<programme start="20170818070000 +0000" stop="20170818080000 +0000" channel="Ch 5">
    <title lang="en">The Dr Oz Show 8</title>
    <sub-title lang="en">True Crime Tuesdays: What Happened To Chandra Levy?</sub-title>
    <desc lang="en">(Encore) The 2001 murder of Washington intern Chandra Levy is the focus. Also: why some doctors say the Mediterranean diet is better than meds(n)</desc>
    <category lang="en">Others</category>
    <category lang="en">General</category>
    <episode-num system="xmltv_ns">.14.</episode-num>
  </programme>

Extract from JSON stream for the above show...

"6": {
"id": "127850628",
"type": "episode",
"episode_number": 15,
"display_locale": "en_GB",
"description": "(Encore) The 2001 murder of Washington intern Chandra Levy is the focus. Also: why some doctors say the Mediterranean diet is better than meds.",
"genre": "Others",
"subgenre": "General",
"episode_title": "True Crime Tuesdays: What Happened To Chandra Levy?",
"name": "The Dr Oz Show 8 (HD)",
"program_start_time": "2017-08-18T07:00:00.000Z",
"program_end_time": "2017-08-18T08:00:00.000Z",
"parental_rating": "0",
"language": "eng",
"HD": false,
"images": [],
"offers": [],
"collections": [],
"durationInSec": 3600,
"durationInMin": 60,
"durationInPixel": 300,
"programDetailsInOneLine": "60 Mins"
},

 

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

Yup, deleted guide each time I change the .ini

Harroguk
Offline
Joined: 7 years
Last seen: 4 years
Blackbear199 wrote:

what channel is this from so i can look..

 

<channel update="i" site="starhubgo.com" site_id="8735373" xmltv_id="Ch 5">(HD)</channel>
Harroguk
Offline
Joined: 7 years
Last seen: 4 years

Boom, everything is looking good to me now.

Thanks a lot for all of the help with this.

 

Would you like me to submit a pull request for the changes that you have made to this file or will you submit them for others (or not)?

Harroguk
Offline
Joined: 7 years
Last seen: 4 years

For anyone that finds this later...

Pull request created.

https://github.com/SilentButeo2/webgrabplus-siteinipack/pull/268

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