search match= any character (1 Viewer)

bredita

New Member
December 8, 2006
4
0
Home Country
Norway Norway
I have this:
<title>Rally: Dakar 2007</title>

And I want to do this:
<Search match=": [.*]$" field="#SUBTITLE" remove="true" />

In order to end up with this:
#TITLE=Rally
#SUBTITLE=Dakar 2007

But I can't figure out a way to do it.
Can anyone help with what I should use in order to match "any character"?
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    This should be possible, haven't tested your regex, but using this the #SUBTITLE will end up with the ':' at the front. Which is not so nice.

    Another way to do this would be in the template:

    <#TITLE>:<#SUBTITLE>

    then if the ':' is not found it will put every thing into <#TITLE> and skip the <#SUBTITLE> tag.
     

    bredita

    New Member
    December 8, 2006
    4
    0
    Home Country
    Norway Norway
    Thanks for your quick reply :)

    I tried a few variations of that.

    Problem is that I want to split it on the first colon : OR the first parenthesis (
    whichever comes first. Prog titles look like this:

    Når katastrofen inntreffer: Gangbrokollaps
    Dr. Phil (675) (R)

    And I also want to "keep" the rerun info (R) in the title.

    I'm also editing the mytvguide.xml to make it display more information. I have succeeded in displaying the #TV.Guide.EpisodeName (subtitle) in the guide, but I dont know what the name of "rerun" and "episode number" is (tried #tv.guide.episodenumber and a few more),
    so I haven't managed to put them on the guide. If I figure out what the name of these are, then I can just display them in the guide instead of putting them in the title :)
     

    bredita

    New Member
    December 8, 2006
    4
    0
    Home Country
    Norway Norway
    I tried your suggestion but it didnt work as expected. So I gave up.

    As suggested in another thread, I have switched to the dagbladet grabber for norway. A lot faster (because it doesn't do description downloads) and good info there too.

    Now I just need to figure out how to display #EPISODE, #TTV and #REPEAT in the guide and I'll be happy :)
     

    bredita

    New Member
    December 8, 2006
    4
    0
    Home Country
    Norway Norway
    I managed to add the subtitle to the dagbladet grabber. It's not pretty, but it works. Sometimes it grabs unwanted info though.

    <Search match=": [A-Za-z0-9 \x21-\x3a\x3f-\xff]{1,256}" field="#SUBTITLE" remove="true" />

    I'm happy with it, for now.
     

    Users who are viewing this thread

    Top Bottom