You are here

Removing "New:" from the title of my programmes

5 posts / 0 new
Last post
elsmandino
Offline
Joined: 10 years
Last seen: 1 year
Removing "New:" from the title of my programmes

Hi,

I have noticed that Sky have been adding the prefix "New:" to the beginning of the title of first runs of some of its programmes - seems to be most prevalent on ITV.

Is there any way to remove this before importing it into Argus TV?  

 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Guessing it is uk-sky.ini.

You could remove it by adding

description.modify {remove(type=regex)|"^\s*New\s*\:\s*"}

in the siteini.

elsmandino
Offline
Joined: 10 years
Last seen: 1 year

Hi Francis.

It is indeed the uk-sky.ini

I copied and pasted the extra code into the ini and it did not seem to do anything.

Was I correct in putting it in, so the preceeding line would read like this?

description.scrub {regex||<p class=\"bubble-programme-description description\">(.+?)</p>||}
description.modify {remove(type=regex)|"^\s*New\s*\:\s*"}

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

Yes of course, title instead of description.

And if you use incremental mode, you should also do the remove on the index titles.

So:

index_title.modify {remove(type=regex)|"^\s*New\s*\:\s*"}
title.modify {remove(type=regex)|"^\s*New\s*\:\s*"}
elsmandino
Offline
Joined: 10 years
Last seen: 1 year

Thank you both so much!

Works perfectly now.

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