| | #1 (permalink) |
| Portal User Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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"? |
| | |
| | #2 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| 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. |
| | |
| | #3 (permalink) |
| Portal User Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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. |
| | |
| | #4 (permalink) |
| Portal User Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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 ![]() |
| | |
| | #5 (permalink) |
| Portal User Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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. |
| | |
![]() |
| Bookmarks |
| Tags |
| character, match, search |
| Thread Tools | |
| Display Modes | |
| |
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 |