MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Electronic Program Guide » WebEPG


WebEPG everything related to WebEPG in here

Reply
 
Thread Tools Display Modes
Old 2007-01-21, 01:42   #1 (permalink)
Portal User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default search match= any character

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"?
bredita is offline   Reply With Quote
Old 2007-01-21, 14:24   #2 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

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.
James is offline   Reply With Quote
Old 2007-01-21, 15:24   #3 (permalink)
Portal User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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

Last edited by bredita; 2007-01-21 at 15:28.
bredita is offline   Reply With Quote
Old 2007-01-21, 16:09   #4 (permalink)
Portal User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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 is offline   Reply With Quote
Old 2007-01-21, 21:46   #5 (permalink)
Portal User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.
bredita is offline   Reply With Quote
Reply

Bookmarks

Tags
character, match, search

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LCD plugin supporting more than 70 display types (now with full graphics support!!!) JoeDalton Support 919 2007-04-19 12:08
Search Button Wilco General Development (no feature request here!) 5 2007-01-07 13:47
Typing in a search for a show? Am I missing something? ASiDiE Improvement Suggestions 10 2006-12-16 21:00
ProjectX skin guide search problem CodeMonkey Skins 5 2005-04-14 16:54
Music: search algorithm tomtom21000 Improvement Suggestions 1 2005-03-10 02:57


All times are GMT +1. The time now is 04:34.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden