![]() ![]() |
Feb 1 2011, 10:41 PM
Post
#321
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Rick,
It's not source specific as the regex is only run on my generated guide and that has each category on a separate line. It won't deal with interwoven categories but I haven't seen many (any actually) instances of this, but yes it could happen. A guide with repeated categories is still valid, but I figured best to eliminate them. If a couplem slip through then no big problem. ^(.*)(\r?\n\1)+$::$1 Looks for a string that starts ^ Matches everything up to (.*) a carriage return \r (optional)? or new line \n Looks for a second instance of what was matched \1 [this contains every thing in (.*) as the first back reference ] One or more times + And the string then ends $ This entire string of the first line and second line/s is then replaced with the first back reference $1 The \1 and $1 are the same only stupid microsoft require the replace to be $1 even though for the match pattern it was \1 In perl the line would be ^(.*)(\r?\n\1)+$::\1 Which makes more sense. |
|
|
|
Feb 2 2011, 12:32 AM
Post
#322
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Calvi,
that makes sense I think. Now a really simple Question What am I doing wronge CODE (.*)><category::$1>\r\n<category;; </category>::</category>\r\n;; ^[.\t]*$\r?\n::;; I thought it was a quick way to split categories over lines not perfect but I thought as a start but it does not work |
|
|
|
Feb 2 2011, 05:04 PM
Post
#323
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Rick,
are your categories not split over lines? SafeXMLTV always splits the categories over lines, then the postreplace is run so you do not need to worry about it. In the interest of the exercise though... Splitting would be easy, just... "><"::">\n<" except vbscript cannot parse text strings for escape characters so you must search for "><" and replace with ">" &vblf & "<" And no you cant "><"::">" & vblf & "<" so I would have to parse the replace line for potential escape characters eg split \n and concatenate within SafeXMLTV. Or a better solution... "><"::">%0A<" And I can add UnEscape to Safexmltv when parsing the input. %0A will then be converted to a vblf. Great fun!!! this vbscript regex engine, standard regex on the left (search), all sorts of crap on the right (replace), $1 instead of \1, %0A instead of \n etc. Further Reading...http://msdn.microsoft.com/en-us/library/ew...v=vs.71%29.aspx This post has been edited by Calvi: Feb 2 2011, 05:07 PM |
|
|
|
Feb 2 2011, 08:53 PM
Post
#324
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Rick, are your categories not split over lines? SafeXMLTV always splits the categories over lines, then the postreplace is run so you do not need to worry about it. calvi, below is how one of the programms in the output from safexmltv as it appears when shown in notepad its actually stranger than I thought it was. CODE <programme start="20110202203000 +1100" stop="20110202213000 +1100" channel="7 Digital"><title lang="en">Criminal Minds</title><sub-title lang="en">Safe Haven</sub-title><desc>Nebraskan and Iowan families suddenly find themselves the target of a psychopath, but while the BAU is intent on identifying him before he takes other victims, Spicer Ellie is also keeping Agent Derek Morgan busy. Credits: Joe Mantegna,Thomas Gibson,Shemar Moore,Paget Brewster</desc><credits> <actor>Joe Mantegna</actor> <actor>Thomas Gibson</actor> <actor>Shemar Moore</actor> <actor>Paget Brewster</actor> </credits><category>previously-captured</category><category>Mystery</category><category>previously-captured</category><category>Drama</category><rating system=""> <value>M</value> </rating></programme> As you can see the catagories are not split. Actually I found that entry so hard to believe I have attached a ziped version of the whole output xmltv so you can see it for your self. the rest of your post I'm am going to read slowly a few times and check that reference Thanks Rick
Attached File(s)
|
|
|
|
Feb 13 2011, 12:58 PM
Post
#325
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Sorry Ratall, been crazy busy last two weeks.
Notepad is the answer.... SafeXMLTV splits the line with a vblf only. Windows expects a Carriage Return and a Linefeed otherwise won't display the line break. If you use Wordpad for instance you will see they are actually split. I never cared because I always use PSPad for editing, and the regex looks for either so it does not matter. Anyway, I will change all vblf to vbCrLf then the splits will appear properly in notepad as well. I'll also sort out the empty stuff etc mentioned previously and release it in 10.4 Just need to get some spare time. |
|
|
|
Feb 25 2011, 04:32 PM
Post
#326
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Version 10.4 Released
*Modified the Remove overlaps code to use the same priority methods, ie. the priority of SubTitle over Empty, Match etc is preserved during the overlap removal. *XML Output is now CR LF instead of LF only. *Detect and remove duplicate items in each output program, eg if there are two or more <category>News</category> then the duplicates are removed. *Removed duplicate line regex from config.xml* as its superseded by above ^(.*)(\r?\n\1)+$::$1 *Added empty line between programmes for legibility. *Improved some logging to make more sense This post has been edited by Calvi: Feb 27 2011, 07:09 AM |
|
|
|
Mar 8 2011, 06:49 AM
Post
#327
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Calvi
Downloaded 10.4 a while ago works great thanks again for the fine work Rick |
|
|
|
Mar 12 2011, 05:45 PM
Post
#328
|
|
|
Participant Group: Members Posts: 37 Joined: 2-August 05 Member No.: 3,298 Card: None |
Just upgraded from an old 8.1 version to 10.4 - I found a problem with your xmltv.bat file - you need to add quotes around the %CD% near the top. You also need to fix an error on the line for TV Scheduler 2 - on the last If Exist line, you're referencing the wrong variable. I'll include my fixed file below:
CODE @echo off
echo ******************************************************************************* echo XMLTV Download Batch Program, by John Calvi, 2006-2011. echo _______________________________________________________________________________ set xmltvdir="%CD%" Set wsfree="C:\Program Files\WebScheduler\data\MatchList.xml" Set wsprof="C:\Documents and Settings\All Users\Application Data\Blue Bit Solutions\DVB Web Scheduler Pro\data\MatchList.xml" Set tvschd="C:\Documents and Settings\All Users\Application Data\Blue Bit Solutions\TV Scheduler Pro\data\MatchList.xml" Set tvsch2="C:\Program Files\TV Scheduler Pro\data\MatchList.xml" If Exist %wsfree% xcopy %wsfree% %xmltvdir% /Y If Exist %wsprof% xcopy %wsprof% %xmltvdir% /Y If Exist %tvschd% xcopy %tvschd% %xmltvdir% /Y If Exist %tvsch2% xcopy %tvsch2% %xmltvdir% /Y xmltv.vbs |
|
|
|
May 1 2011, 08:10 AM
Post
#329
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Thanks Mark,
I have updated to 10.5 (was waiting for something else to fix first). 10.5 (xmltv.bat & config.xml) *Updated to "7.30" from "The 7.30 Report" in <tzdetect> *Updated EPGScan to 1.0.2.0 *Fixed bug in xmltv.bat (thanks MarkG) This post has been edited by Calvi: May 1 2011, 08:23 AM |
|
|
|
May 12 2012, 09:26 PM
Post
#330
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Hi,
Not a lot of activity on this thread of late so I thought Id show Calvi that poeple are still using it and I felt like sharing. I am not an expert at regex but I thought people may be interested in some of the things I'm using pre and post prossesing for 1. grabing episode info imbedded in the discription and moving it to the subtitle ( I use this in the prereplace) CODE lang="en">::>;; </title>\r\n.*?<desc(.*)\(ser(ies)? ([0-9]{1,3}) ep(isode)? ([0-9]{1,3})\)(.*)</desc>::</title><sub-title>Series $3 Episode $5</sub-title><desc$1 (Ser$2-$3 Ep$4-$5)$6</desc>;; </title>\r\n.*?<desc(.*)\(Ep(isode)? ([0-9]{1,3})\) \(([12][0-9][0-9][0-9])\)(.*)</desc>::</title><sub-title>Episode $3($4)</sub-title><desc$1 (Ep$2 $3) ($4) $5</desc>;; </title>\r\n.*?<desc(.*)\(ep(isode)? ([0-9]*?)\)(.*)</desc>::</title><sub-title>Episode ($2)</sub-title><desc$1 ($2)$3</desc>;; </title>\r\n.*?<desc(.*)\((.{3,})\).*\(([12][0-9][0-9][0-9])\)(.*)</desc>::</title><sub-title>$2 ($3)</sub-title><desc$1 ($2 ($3))$4</desc>;; </title>\r\n.*?<desc(.*)\(([0-9]{1,3})\)(.*)</desc>::</title><sub-title>$2</sub-title><desc$1 ($2)$3</desc>;; <sub-title>(.*)\([12][0-9][0-9][1-9]-[0-1][0-9]-[0-3][0-9]\)<::<sub-title>$1<;; <sub-title>\([12][0-9][0-9][1-9]\)<::<sub-title>$1<;; the first line(note the space infront of lang) is to save putting extra .*s in you should change it to match you language or insert the extra wildcards(.*) but be careful as it can effect your field counts. witch could result in the need to edit your field insertions. the order is important as once the subtitle is created it is skipped the last 2 lines are to deal with a couple of possible side effects and elimminate a annoying habit of one station adding the date of first transmission to repeats. 2. TVS has a couple of movies shows where the title is in the discription. To move the title to its rightful place (I use this in postreplace) CODE <title>(((Wednesday |Sunday )Night|Morning) Movie|Schlocky Horror Picture Show)</title>\r\n<desc>(.*)\((PG|MA|AV|M|G)\)(.*)(-.*)</desc>::<title>$6</title><desc>$4($5)$6$7</desc>;; <title>(((Wednesday |Sunday )Night|Morning) Movie|Schlocky Horror Picture Show)</title>\r\n<desc>(.*)\((PG|MA|AV|M|G)\)(.*)</desc>::<title>$6</title><desc>$4($5)$6</desc>;; order is again important I do alot of other wierd and wonderfulls with pre and post replace but I thought you would find these interesting. Hopfully these are usefull and will encourage others to experiment and get the most out of their guides. have fun |
|
|
|
Jun 2 2012, 01:12 PM
Post
#331
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Rick,
thanks for sharing, it's great to hear people are still getting good value out of it. Development still proceeds (at glacial pace, but then I encounter few issues these days). New version on first page... 10.6 (Full Package) *Fixed bug with special characters in matchlists and repeat items. *Removed timezone detection from default configuration. (causes more trouble than it fixes) *Removed TTC from default configuration. (epgscan no longer in caps for Nine and Seven) *Updated to EPGScan 1.0.3.3 |
|
|
|
Jun 2 2012, 01:50 PM
Post
#332
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Calvi,
Just tried to download new version but link still points to 10.5 will try again later. Ta |
|
|
|
Jun 5 2012, 08:03 PM
Post
#333
|
|
|
Forum Regular Group: Members Posts: 829 Joined: 8-November 04 Member No.: 1,988 Card: DVICO FusionHDTV |
Oops,
sorry about that, uploaded now! |
|
|
|
Sep 10 2012, 08:52 PM
Post
#334
|
|
|
Forum Regular Group: Members Posts: 238 Joined: 27-August 05 From: Sydney, Australia Member No.: 3,513 Card: DNTV tinyUSB |
I've been using these great scrips for a LONG time but need some help excluding items from the EPG as my regex skills are basically nil!
My PVR software has a rule to record "House Husbands" but it's also picking up things like "The Farmer Wants A Wife - Love Bites (Includes SNEAK PEEK - HOUSE HUSBANDS)" --> ARGGHHHHH!! So can somebody please help me with the syntax to remove the "(Includes .......)" or maybe even "( ...... )" from the titles in the EPG? I also need to remove "- New" from titles as these seem to be cropping up a bit now and I don't want them in the title. And finally in the config.xml, the lines in the original file has; <prereplace> <![CDATA[ Do I need to remove the <! to uncomment this, or is what's there correct as it is? Many thanks Richard This post has been edited by rpalmer68: Sep 10 2012, 10:52 PM |
|
|
|
Sep 10 2012, 11:03 PM
Post
#335
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
I've been using these great scrips for a LONG time but need some help excluding items from the EPG as my regex skills are basically nil! My PVR software has a rule to record "House Husbands" but it's also picking up things like "The Farmer Wants A Wife - Love Bites (Includes SNEAK PEEK - HOUSE HUSBANDS)" --> ARGGHHHHH!! So can somebody please help me with the syntax to remove the "(Includes .......)" or maybe even "( ...... )" from the titles in the EPG? I also need to remove "- New" from titles as these seem to be cropping up a bit now and I don't want them in the title. And finally in the config.xml, the lines in the original file has; <prereplace> <![CDATA[ Do I need to remove the <! to uncomment this, or is what's there correct as it is? Many thanks Richard try CODE <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title>;; if you need the attributes (like lang="en" etc) most don't you could try CODE <title(.*)>(.*)\(Includes.*\)</title>(?i)::<title$1>$2</title>;; <title(.*)>(.*)- New</title>(?i)::<title$1>$2</title>;; and leave the CODE <prereplace> <![CDATA[ alone you need it to start the character data block comments in XML start with <!-- and end with --> Rat |
|
|
|
Sep 11 2012, 01:01 PM
Post
#336
|
|
|
Forum Regular Group: Members Posts: 238 Joined: 27-August 05 From: Sydney, Australia Member No.: 3,513 Card: DNTV tinyUSB |
Thanks Rat,
I have just updated from 9.3 to 10.6 to use this new feaure and now I get a VBScript error. Line: 1610 Char: 7 Error: Type mismatch: 'CInt' Code: 800A000D Source: Microsoft VBScript runtime Error This log gets to this point; ******************************************************************************** SafeXMLTV 10.6 by J.Calvi. Program Log HTPC1 11/09/2012 ******************************************************************************** 12:52:17 PM Program Started.. 12:52:17 PM Meedio not installed on this Computer 12:52:17 PM Loading Config file..config.xml 12:52:17 PM Configuration Item..charset = ISO-8859-1 12:52:17 PM Configuration Item..exclude = \(Simulcast\)|To Be Advised(?i) 12:52:17 PM Configuration Item..prereplace = [\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\xa0]::;; <title.*>.*?movie.?: ?(.*)?<(?i)::<title>$1<;; <title.*>(.*) ?\(new.*\).*<(?i)::<title>$1<;; <title.*>(.*) - series premiere<(?i)::<title>$1<;; <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title> 12:52:17 PM Configuration Item..postreplace = <category.*>(Action.*?|.*?Adventure.*?)<(?i)::<category>Action<;; <category.*>(Anim.*?|Cartoon)<(?i)::<category>Animation<;; <category.*>(.*?Art.*?|.*?Culture.*?|Theatre)<(?i)::<category>Art<;; <category.*>Auto.*?<(?i)::<category>Auto<;; <category.*>(.*?Comed.*?|.*?Satire.*?|.*?Sitcom.*?|.*?Situation.*?)<(?i)::<category>Comedy<;; <category.*>(Child.*?|Family|.*?Youth.*?)<(?i)::<category>Children<;; <category.*>.*?Cycl*?<(?i)::<category>Cycling<;; <category.*>.*?Docu*?<(?i)::<category>Documentary<;; <category.*>.*?Drama*?<(?i)::<category>Drama<;; <category.*>.*?Education*?<(?i)::<category>Education<;; <category.*>(.*?Entertain.*?|.*?Gossip*?)<(?i)::<category>Entertainment<;; <category.*>.*?Game*?<(?i)::<category>Game Show<;; <category.*>(.*?Cook*?|.*?Travel.*?|.*?Food.*?|.*?Leisure.*?|.*?Renovat.*?|.*?Home.*?|.*?Health.*?|.*?How To.*?)<(?i)::<category>Lifestyle<;; <category.*>(.*?Movie*?|.*?Film.*?)<(?i)::<category>Movie<;; <category.*>.*?Music*?<(?i)::<category>Music<;; <category.*>(.*?Mystery*?|.*?Thriller.*?|.*?Crime.*?|.*?Murder.*?)<(?i)::<category>Mystery<;; <category.*>(.*?News*?|.*?Current.*?|.*?Business.*?|.*?Politic.*?)<(?i)::<category>News<;; <category.*>.*?Real*?<(?i)::<category>Reality<;; <category.*>(.*?Sci-Fi*?|Science Fiction|Fantasy)<(?i)::<category>Sci-Fi<;; <category.*>(.*?Science*?|.*?Tech.*?)<(?i)::<category>Science<;; <category.*>.*?Sport*?<(?i)::<category>Sport<;; <category.*>(.*?Talk*?|.*?Variety.*?)<(?i)::<category>Variety<;; <category.*>.*?Western*?<(?i)::<category>Western< 12:52:17 PM Configuration Item..repeatexclude = allnew|premiere|newepisode 12:52:17 PM Configuration Item..repeattag = </programme>::<previously-shown></previously-shown> 12:52:17 PM Configuration Item..dcredits = True 12:52:17 PM Configuration Item..resolvex = True 12:52:17 PM Configuration Item..validate = True 12:52:17 PM Configuration Item..timezone = auto 12:52:17 PM Configuration Item..tzoffset = +0000 12:52:17 PM Configuration Item..tzdetect = 12:52:17 PM Configuration Item..tzdetectupperlimit = 120 12:52:17 PM Configuration Item..tzdetectlowerlimit = 60 12:52:17 PM Configuration Item..tzlookaheadmaximum = 40 12:52:17 PM Configuration Item..overrunners = .*MasterChef.*(?i)::10::^.*::2;; .*Kitchen Rules.*(?i)::10::^.*::2;; .*Biggest Loser.*(?i)::10::^.*::2;; .*Who do you think you are.*(?i)::10::^.*::2;; The X Factor(?i)::10::^.*::2;; So you think you can dance(?i)::10::^.*::2;; Dancing with the stars(?i)::10::^.*::2;; Australian Idol(?i)::10::^.*::2 12:52:17 PM Configuration Item..xmlfile = xmltv.xml 12:52:17 PM Configuration Item..mapfile = channelmap.xml 12:52:17 PM Configuration Item..matchfile = matchlist.xml 12:52:17 PM Configuration Item..repeatfile = repeatlist.txt 12:52:17 PM Configuration Item..captures = 12:52:17 PM Configuration Item..mindur = 1 12:52:17 PM Configuration Item..maxdur = 725 12:52:17 PM Configuration Item..mround = 5 12:52:17 PM Configuration Item..seconds = 1 12:52:17 PM Configuration Item..mindays = 1 12:52:17 PM Configuration Item..maxdays = 7 12:52:17 PM Configuration Item..xmldays = 7 12:52:17 PM Configuration Item..xmlroll = 23 12:52:17 PM Configuration Item..logdays = 7 12:52:17 PM Configuration Item..logroll = 23 12:52:17 PM Configuration Item..minprog = 10 12:52:17 PM Configuration Item..remmaxolappct = 90 12:52:17 PM Configuration Item..repmaxolapmin = 10 12:52:17 PM Configuration Item..repmaxolappct = 50 12:52:17 PM Configuration Item..repmaxgapmin = 15 12:52:17 PM Configuration Item..repmaxgappct = 25 12:52:17 PM Configuration Item..channelpairs = 12:52:17 PM Configuration Item..sources = DVBGuide\\abc::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\nine::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\sbs::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\seven::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\ten::300::+All::SubTitle::Full::+0000::NC icetv::180::NONE::SubTitle::Full::+0000::NC;; abcjc::180::NONE::Empty::Full::+0000::NC;; sbsgrabber\\sbs1::300::NONE::Empty::Full::+0000::NC;; sbsgrabber\\sbs2::300::NONE::Empty::Full::+0000::NC;; dwxmltv::300::NONE::Empty::Full::+0000::NC;; tvguide.org::300::NONE::Empty::Full::+0000::NC;; 12:52:17 PM Configuration Item..location = sydney 12:52:17 PM Loaded Config file..config.xml Containing..40 Configuration Items 12:52:17 PM Loaded Match file..matchlist.xml Containing..24 Match List Items 12:52:17 PM Loaded Repeat file..repeatlist.txt Containing..0 Repeat List Items 12:52:17 PM Captures Folder does not exist.. 12:52:17 PM Saved Repeat file..repeatlist.txt Containing..0 Repeat List Items Any ideas why? Thanks Richard |
|
|
|
Sep 11 2012, 01:37 PM
Post
#337
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
Thanks Rat, I have just updated from 9.3 to 10.6 to use this new feaure and now I get a VBScript error. Line: 1610 Char: 7 Error: Type mismatch: 'CInt' Code: 800A000D Source: Microsoft VBScript runtime Error This log gets to this point; ******************************************************************************** SafeXMLTV 10.6 by J.Calvi. Program Log HTPC1 11/09/2012 ******************************************************************************** 12:52:17 PM Program Started.. 12:52:17 PM Meedio not installed on this Computer 12:52:17 PM Loading Config file..config.xml 12:52:17 PM Configuration Item..charset = ISO-8859-1 12:52:17 PM Configuration Item..exclude = \(Simulcast\)|To Be Advised(?i) 12:52:17 PM Configuration Item..prereplace = [\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\xa0]::;; <title.*>.*?movie.?: ?(.*)?<(?i)::<title>$1<;; <title.*>(.*) ?\(new.*\).*<(?i)::<title>$1<;; <title.*>(.*) - series premiere<(?i)::<title>$1<;; <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title> 12:52:17 PM Configuration Item..postreplace = <category.*>(Action.*?|.*?Adventure.*?)<(?i)::<category>Action<;; <category.*>(Anim.*?|Cartoon)<(?i)::<category>Animation<;; <category.*>(.*?Art.*?|.*?Culture.*?|Theatre)<(?i)::<category>Art<;; <category.*>Auto.*?<(?i)::<category>Auto<;; <category.*>(.*?Comed.*?|.*?Satire.*?|.*?Sitcom.*?|.*?Situation.*?)<(?i)::<category>Comedy<;; <category.*>(Child.*?|Family|.*?Youth.*?)<(?i)::<category>Children<;; <category.*>.*?Cycl*?<(?i)::<category>Cycling<;; <category.*>.*?Docu*?<(?i)::<category>Documentary<;; <category.*>.*?Drama*?<(?i)::<category>Drama<;; <category.*>.*?Education*?<(?i)::<category>Education<;; <category.*>(.*?Entertain.*?|.*?Gossip*?)<(?i)::<category>Entertainment<;; <category.*>.*?Game*?<(?i)::<category>Game Show<;; <category.*>(.*?Cook*?|.*?Travel.*?|.*?Food.*?|.*?Leisure.*?|.*?Renovat.*?|.*?Home.*?|.*?Health.*?|.*?How To.*?)<(?i)::<category>Lifestyle<;; <category.*>(.*?Movie*?|.*?Film.*?)<(?i)::<category>Movie<;; <category.*>.*?Music*?<(?i)::<category>Music<;; <category.*>(.*?Mystery*?|.*?Thriller.*?|.*?Crime.*?|.*?Murder.*?)<(?i)::<category>Mystery<;; <category.*>(.*?News*?|.*?Current.*?|.*?Business.*?|.*?Politic.*?)<(?i)::<category>News<;; <category.*>.*?Real*?<(?i)::<category>Reality<;; <category.*>(.*?Sci-Fi*?|Science Fiction|Fantasy)<(?i)::<category>Sci-Fi<;; <category.*>(.*?Science*?|.*?Tech.*?)<(?i)::<category>Science<;; <category.*>.*?Sport*?<(?i)::<category>Sport<;; <category.*>(.*?Talk*?|.*?Variety.*?)<(?i)::<category>Variety<;; <category.*>.*?Western*?<(?i)::<category>Western< 12:52:17 PM Configuration Item..repeatexclude = allnew|premiere|newepisode 12:52:17 PM Configuration Item..repeattag = </programme>::<previously-shown></previously-shown> 12:52:17 PM Configuration Item..dcredits = True 12:52:17 PM Configuration Item..resolvex = True 12:52:17 PM Configuration Item..validate = True 12:52:17 PM Configuration Item..timezone = auto 12:52:17 PM Configuration Item..tzoffset = +0000 12:52:17 PM Configuration Item..tzdetect = 12:52:17 PM Configuration Item..tzdetectupperlimit = 120 12:52:17 PM Configuration Item..tzdetectlowerlimit = 60 12:52:17 PM Configuration Item..tzlookaheadmaximum = 40 12:52:17 PM Configuration Item..overrunners = .*MasterChef.*(?i)::10::^.*::2;; .*Kitchen Rules.*(?i)::10::^.*::2;; .*Biggest Loser.*(?i)::10::^.*::2;; .*Who do you think you are.*(?i)::10::^.*::2;; The X Factor(?i)::10::^.*::2;; So you think you can dance(?i)::10::^.*::2;; Dancing with the stars(?i)::10::^.*::2;; Australian Idol(?i)::10::^.*::2 12:52:17 PM Configuration Item..xmlfile = xmltv.xml 12:52:17 PM Configuration Item..mapfile = channelmap.xml 12:52:17 PM Configuration Item..matchfile = matchlist.xml 12:52:17 PM Configuration Item..repeatfile = repeatlist.txt 12:52:17 PM Configuration Item..captures = 12:52:17 PM Configuration Item..mindur = 1 12:52:17 PM Configuration Item..maxdur = 725 12:52:17 PM Configuration Item..mround = 5 12:52:17 PM Configuration Item..seconds = 1 12:52:17 PM Configuration Item..mindays = 1 12:52:17 PM Configuration Item..maxdays = 7 12:52:17 PM Configuration Item..xmldays = 7 12:52:17 PM Configuration Item..xmlroll = 23 12:52:17 PM Configuration Item..logdays = 7 12:52:17 PM Configuration Item..logroll = 23 12:52:17 PM Configuration Item..minprog = 10 12:52:17 PM Configuration Item..remmaxolappct = 90 12:52:17 PM Configuration Item..repmaxolapmin = 10 12:52:17 PM Configuration Item..repmaxolappct = 50 12:52:17 PM Configuration Item..repmaxgapmin = 15 12:52:17 PM Configuration Item..repmaxgappct = 25 12:52:17 PM Configuration Item..channelpairs = 12:52:17 PM Configuration Item..sources = DVBGuide\\abc::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\nine::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\sbs::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\seven::300::+All::SubTitle::Full::+0000::NC;; DVBGuide\\ten::300::+All::SubTitle::Full::+0000::NC icetv::180::NONE::SubTitle::Full::+0000::NC;; abcjc::180::NONE::Empty::Full::+0000::NC;; sbsgrabber\\sbs1::300::NONE::Empty::Full::+0000::NC;; sbsgrabber\\sbs2::300::NONE::Empty::Full::+0000::NC;; dwxmltv::300::NONE::Empty::Full::+0000::NC;; tvguide.org::300::NONE::Empty::Full::+0000::NC;; 12:52:17 PM Configuration Item..location = sydney 12:52:17 PM Loaded Config file..config.xml Containing..40 Configuration Items 12:52:17 PM Loaded Match file..matchlist.xml Containing..24 Match List Items 12:52:17 PM Loaded Repeat file..repeatlist.txt Containing..0 Repeat List Items 12:52:17 PM Captures Folder does not exist.. 12:52:17 PM Saved Repeat file..repeatlist.txt Containing..0 Repeat List Items Any ideas why? Thanks Richard CODE DVBGuide\\ten::300::+All::SubTitle::Full::+0000::NC should read CODE DVBGuide\\ten::300::+All::SubTitle::Full::+0000::NC;; Rat |
|
|
|
Sep 11 2012, 09:48 PM
Post
#338
|
|
|
Forum Regular Group: Members Posts: 238 Joined: 27-August 05 From: Sydney, Australia Member No.: 3,513 Card: DNTV tinyUSB |
Well spotted Rat, but that wasn't in fact the issue but it did make me look closer at the sources section, which I had just copied from my previous config file.
There is a new option in the source settings for "Tries" that I didn't have previosuly, so I needed to add a 1:: or 0:: after the timout value on each line. Missed that the other 5 times I checked the config file! Many thanks Richard |
|
|
|
Sep 16 2012, 09:36 AM
Post
#339
|
|
|
Forum Regular Group: Members Posts: 238 Joined: 27-August 05 From: Sydney, Australia Member No.: 3,513 Card: DNTV tinyUSB |
try CODE <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title>;; and leave the CODE <prereplace> <![CDATA[ alone you need it to start the character data block comments in XML start with <!-- and end with --> Rat It doesn't look like the above worked I'm afraid. I still have entries in the EPG like; <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title> I tried your code; CODE <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title> and also what I now have in the config.xml as that matched the other lines already in there. CODE <title.*>(.*) \(Includes.*\)</title>(?i)::<title>$1< <title.*>(.*) - New</title>(?i)::<title>$1< Neither have worked. I have attached my config.xml in case I've done something wrong in there. Any ideas? Thanks Richard This post has been edited by rpalmer68: Sep 16 2012, 09:42 AM
Attached File(s)
|
|
|
|
Sep 16 2012, 11:53 AM
Post
#340
|
|
|
Participant Group: New Members Posts: 24 Joined: 24-October 09 From: Australia Member No.: 12,668 Card: DNTV TinyTwin USB |
It doesn't look like the above worked I'm afraid. I still have entries in the EPG like; <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title> I tried your code; CODE <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; <title.*>(.*)- New</title>(?i)::<title>$1</title> and also what I now have in the config.xml as that matched the other lines already in there. CODE <title.*>(.*) \(Includes.*\)</title>(?i)::<title>$1< <title.*>(.*) - New</title>(?i)::<title>$1< Neither have worked. I have attached my config.xml in case I've done something wrong in there. Any ideas? Thanks Richard I think you will have to wait on Calvi for this one. the regex I supplied is valid and should have worked. I can not look at your file at the monent as downloads are blocked on this network. I'll give you a quick break down it may help you understand how it should work. <title - matches the literal text "<title .* - the "." matches any character(bar line breaks) the "*" tells the parser to execute the previous 0 or more times so the combination says any group of characters. > - literally matches the character ">" ( - opens a sub selection can be used in the replace part as $n ($1 in this case) .* - matches any string we have already covered this ) - closes the sub selection \ - is an escape character that tells the parser to ignor an special functions of the next character ( - is matched as the literal character "(" because of the previous "\" Includes - matches the literal text "Includes" .* - matches any string we have already covered this \) - matches the literal character ")" we already covered it </title> - matches the literal text "</title>" (-i) - tells the parse to treat upper and lower case the same in this match (in more upto date parsers this would only apply from this piont on but in this case it applies to the whole match) so with <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; acting on <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title bold is matched text underlined is match in the sub match <title matches <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.* <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> (.*) <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> (.*)\(Includes <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> (.*)\(Includes.* <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> (.*)\(Includes.*\) <title lang="en"> Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title <title.*> (.*)\(Includes.*\)</title>(-i) <title lang="en"> Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title at the :: the system removes all the matched text preserveing the text in the sub match leaving <sub-title <title> inserts the literal string "<title>" thus <title><sub-title <title>$1 adds the 1st sub selection(group) thus <title>Britannia Hospital (1982) <sub-title <title>$1</title> adds the literal string "</title>" <title>Britannia Hospital (1982) </title><sub-title thus this CODE <title.*>(.*)\(Includes.*\)</title>(?i)::<title>$1</title>;; converts this CODE <title lang="en">Britannia Hospital (1982) (Includes SNEAK PEEK - HOUSE HUSBANDS at 2:02 AM)</title><sub-title to this CODE <title>Britannia Hospital (1982) </title><sub-title I add the <sub-title to show why you need to match the </title> Sorry I can be of no further help at this time hopefully Calvi come on and sort you out. Rat |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 26th May 2013 - 02:08 AM |