You are here

MLB Extra Innings via tvpassport

6 posts / 0 new
Last post
J
Offline
Has donated long time ago
Joined: 7 years
Last seen: 5 years
MLB Extra Innings via tvpassport

Is it possible to get MLB games to show as the title instead of subtitle when using TVPassport ini?

Example:

<programme start="20170416131000 -0400" stop="20170416161000 -0400" channel="MLB Extra Innings 1">

<title lang="en">Baseball</title>

<sub-title lang="en">Detroit Tigers vs. Cleveland Indians</sub-title>

<desc lang="en">Baseball</desc>

<category lang="en">Sports</category>

<category lang="en">Baseball</category>

<rating system="US">

<value>TVG</value>

</rating>

</programme>

If this isn't something that can be done easily to work with non MLB channels too could you advise of a way to swap this around post process or possibly a duplicate ini I could use for just MLB channels?

J
Offline
Has donated long time ago
Joined: 7 years
Last seen: 5 years

Much appreciated, I completely misunderstood the purpose of that tool when I read up on it, makes sense now, many thanks.

J
Offline
Has donated long time ago
Joined: 7 years
Last seen: 5 years

Got stuck at the first hurdle...

My REX:

<settings>
  <filename>C:\REXresult.xml</filename>
  <title>'subtitle'</title>
  <sub-title>'description'</sub-title>
</settings>

This is to change:

  <programme start="20170427131000 -0400" stop="20170427161000 -0400" channel="MLB Extra Innings 1">
    <title lang="en">Baseball</title>
    <sub-title lang="en">Seattle Mariners vs. Detroit Tigers</sub-title>
    <desc lang="en">Baseball</desc>
    <category lang="en">Sports</category>
  </programme>

To:

  <programme start="20170427131000 -0400" stop="20170427161000 -0400" channel="MLB Extra Innings 1">
    <title lang="en">Seattle Mariners vs. Detroit Tigers</title>
    <sub-title lang="en">Baseball</sub-title>
    <desc lang="en">Baseball</desc>
    <category lang="en">Sports</category>
  </programme>

Unfortunately this rule applies to the whole of my guide xml & not just the MLB channels.

I see you can link REX to certain elements like "'subtitle(, )'", is it possible to use a keyword here instead like Baseball or is there a better method to only run REX on certain channels?

evansataz
Offline
Joined: 7 years
Last seen: 7 years

What i did for MLB was make change in site ini and set the title to subtitle and subtitle to title so it would show the teams as the title and show baseball as subtitle

index_title.modify          {substring(type=regex)|'index_temp_4' "<st>([^<]*)"}
index_subtitle.modify       {substring(type=regex)|'index_temp_4' "<t>([^<]*)"}

 

Worked fine for my MLB EPG

J
Offline
Has donated long time ago
Joined: 7 years
Last seen: 5 years

You Sir, are the real MVP! Thanks!

J
Offline
Has donated long time ago
Joined: 7 years
Last seen: 5 years
evansataz wrote:

What i did for MLB was make change in site ini and set the title to subtitle and subtitle to title so it would show the teams as the title and show baseball as subtitle

index_title.modify          {substring(type=regex)|'index_temp_4' "<st>([^<]*)"}
index_subtitle.modify       {substring(type=regex)|'index_temp_4' "<t>([^<]*)"}

 

Worked fine for my MLB EPG

Finally got round to trying this, I'm not getting it! Could you share the block of text this appears in so I can understand it clearly? (sorry)

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