You are here

Swap Title and Subtitle if Category = Sports

3 posts / 0 new
Last post
pdxbrave
Offline
Donator
Joined: 8 months
Last seen: 1 month
Swap Title and Subtitle if Category = Sports

Is it possible to do conditional changes using REX?

For sports events most of the time it looks like this for me:
NBA Basketball
Denver Nuggets vs Phoenix Suns

I would like to swap those around so it'd be like this:
Denver Nuggets vs Phoenix Suns
NBA Basketball

I would only want to do this for listings where the Category=Sports, and if the Subtitle isn't blank. To get really fancy it would be even better if it only swapped if Category=Sports and Subtitle contains "at" or "vs".

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 7 hours

not possible.
you cant use arguments with rex.

are you referring to tvpassport.com.ini?
if so the open the ini in editor and look for these lines..

*index_title.modify {set('index_temp_2' not "")|'index_temp_2'} *team names as **title** for channels like mlb extra innings,nhl center ice,ect
*index_subtitle.modify {set('index_temp_2' not "")|'index_temp_2'} **team names as **subtitle** for channels like mlb extra innings,nhl center ice,ect

remove the * from the beginning of the line to enable whatever option you want.

pdxbrave
Offline
Donator
Joined: 8 months
Last seen: 1 month

Thank you for all the help.

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