![]() ![]() |
Sep 16 2006, 05:15 AM
Post
#1
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
Would it be possible to add some fields to the EPG text match? Specifically I would like to be able to search Info and sub-title. However perhaps it would be easier to allow freeform fields to be entered. What appears as Info field in WS as Repeat is actually <previously-show /> in the xml source I use. Hopefully this will be possible. Also I notice that the EPG match does not include any OR conditions outside regex. It would be much easier to build complex matches if I could add another match which would not be anded with the others, but ORd (if you see what I mean). Anthony |
|
|
|
Sep 16 2006, 08:14 AM
Post
#2
|
|
|
Web Scheduler Developer Group: Developers Posts: 4,495 Joined: 9-July 03 From: Melb Member No.: 9 Card: None |
there is a script around that can add the sub title to the title in XMLTV files so WS can search and use the full title in the file name also. Free form field matches are not possible with the current WS architecture.
OR is possible by creating two "Epg Match" items and then adding both of these to an Auto-Add item. Either Epg Match item will be match for the add thus it is an OR. |
|
|
|
Sep 16 2006, 05:52 PM
Post
#3
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi Null,
Yes I know there is a script around to append the sub-title to the title, but I would of thought that adding sub-title to the WS match field would be easier and more straight forward. If I added the sub-title to the title it would screw up the automatic folder creation stuff you recently added in. Just a suggestion to make WS a bit more flexible. As you can probably guess I want to only record episodes a series I don't have, hence the request for sub-title match and ORing. Adding separate match items for each episode would make a significant number of match items (over 80) so it would get quite unmanagable. An option to choose Exists OR might make things more structured. Thanks. Anthony |
|
|
|
Sep 21 2006, 04:53 AM
Post
#4
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Any suggestions on how to match sub-title now I put recordings in folders based on the title (handy by the way) ?
Anthony |
|
|
|
Oct 3 2006, 06:08 AM
Post
#5
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
Not sure if anyone will find this useful but I wrote something in perl to do what I want; It uses XML::Twig, available from http://xmltwig.com/ It does the following; 1. If the title of the program matches any in the array @progs_to_update, it 2. pre-appends Repeat: if the previously-shown field is present 3. If present appends the sub-title to the title, removing the sub-title element from xml. To do all programmes, you can use the regex match .* in @prog_to_update. Use if you wish, but it is very much a work in progress! Anthony This post has been edited by anthonyshephard: Oct 3 2006, 06:09 AM
Attached File(s)
|
|
|
|
| Guest_dns_* |
Oct 4 2006, 06:52 PM
Post
#6
|
|
Guests |
I've been playing a bit with the code, how do you want this type of thing implemented because there are a fiew ways to do it.
Do you just want it to specifically record/not record based on the existance of <previously-show />. Or should I do something more complex and possibly more confuseing to the user and make something that would allow for you to create more free form rules for tags Please give me suggestions on how you expect things to work. If you just want option 1 what other common tags should we look for? If there is a tag please post some example xmltv data for me to test. |
|
|
|
Oct 4 2006, 09:27 PM
Post
#7
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
This is probably the reason why null wasn't too interested in adding anything. I suppose the most flexible approach is to be able to add specific fields as options to match by. i.e. at the moment you can only choose title, channel and a few others (I forget) I would propose the ability to add, in a separate page, some more entries that would then appear in the drop down box for matching. So you could add sub-title = sub-title, repeat = previously-shown You would also have to add a match for present, as well as content, as prevously-shown just turns up on the UK radio-times EPG (with no content) If you added specific new items, then it would only work for a specific EPG source, and therefore would not be very flexible. Hope that makes things clear. Anthony |
|
|
|
| Guest_dns_* |
Oct 7 2006, 12:29 AM
Post
#8
|
|
Guests |
Here is a test version it should be based on the 3.3.2 source (if i have merged my changes correctly)
Backup your files and replace them with my versions. epg_matchListEdit.html -> goes in data\templates\ WebScheduler.jar.txt > goes in yor ws dir and replaces it This adds 2 drop down lists of flags and if to match on exist/not exist. Hopefully if it all goes well null will accept my changes into ws. |
|
|
|
Oct 7 2006, 04:55 AM
Post
#9
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
Well that didn't work for me; firstly epg_match... should be renamed epg-match. You also have to stop the DVB service to replace the jar file and then, if I add a FLAG, Repeat must exist I get; " GET /servlet/EpgAutoAddDataRes?action=08&name=test&show=1 HTTP/1.1 java.lang.NullPointerException at EpgAutoAddDataRes.editMatchList(EpgAutoAddDataRes.java:1501) at EpgAutoAddDataRes.getResponse(EpgAutoAddDataRes.java:51) at HTTPrequest.sendResponseData(HTTPrequest.java:84) at RequestObject.run(RequestObject.java:98) at java.lang.Thread.run(Unknown Source) " How does it know what the FLAG name corresponds to? Also, did you decide not to add searching by different fields, e.g. sub-title? Anthony |
|
|
|
| Guest_dns_* |
Oct 7 2006, 01:52 PM
Post
#10
|
|
Guests |
I'll work on it. It is probly an error when i was merging the changes with the latest source and i must have missed something it seems to work for me. did you upgrade to 3.3.2 before useing my version because that is what i did. Maybe it was something wrong with the upload?
Does it add something like the below in MatchList.xml? CODE <MatchList name="test"> <MatchListItem type="4"> <FLAGS exists="true" flags="3"/> </MatchListItem> </MatchList> I did it this way because null did a good job with GuideItem and ws is already storeing in memory the flags so it is a reletively easy check to see if the flag is there and that is what you want. I can add sub-title if you want, please attatch your epg for testing as the one that i use does not have any of this extra fields. just tell me what fields you want added. The Flag names: WIDESCREEN=0, HIDEF=1 REPEAT =2, PREMIERE =3, LIVE=4, INTERACTIVE=5, BLACKWHITE=6, SURROUND=7, AC3=8, LASTCHANCE=9, CAPTIONS=10 ed: use the jar below |
|
|
|
Oct 8 2006, 05:33 AM
Post
#11
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
Updated to 3.3.2 and it works as advertised - good job I'll PM you the TV guide. Anthony This post has been edited by anthonyshephard: Oct 8 2006, 05:37 AM |
|
|
|
| Guest_dns_* |
Oct 8 2006, 05:33 PM
Post
#12
|
|
Guests |
Ok this version should have sub title matching and language (hey it was already there).
Also take MatchList.FIELD.html and put it in http\docs\popupMatchList.FIELD.html I would apreciate if someone would write something better. ed: use the jar file below |
|
|
|
Oct 9 2006, 06:46 AM
Post
#13
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi,
That works for me too. Great. Shame I learned how to process xml in perl :-) All I need to make it perfect is integration into Null's main line. Thanks again Anthony |
|
|
|
Oct 9 2006, 09:40 AM
Post
#14
|
|
|
Web Scheduler Developer Group: Developers Posts: 4,495 Joined: 9-July 03 From: Melb Member No.: 9 Card: None |
which Aust tv guide data has all this extra info in it?
|
|
|
|
| Guest_dns_* |
Oct 9 2006, 10:59 AM
Post
#15
|
|
Guests |
Icetv should supports just about all the fields from what i can see (i'm not a subscriber).
Oztvio in theory has support for many of these fields but not in my specific guide (Adelaide) so it is ether no one has assigned an epesode to a timeslot or there is a problem with the parser that i use. Null you shoud have the source so hopefully we can have it included. |
|
|
|
Oct 9 2006, 11:18 AM
Post
#16
|
|
|
Web Scheduler Developer Group: Developers Posts: 4,495 Joined: 9-July 03 From: Melb Member No.: 9 Card: None |
QUOTE Null you shoud have the source so hopefully we can have it included. At the moment I dont have time. The best thing to do is create a patch installer that updates a installed WS to your version. |
|
|
|
Oct 12 2006, 08:53 PM
Post
#17
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
Hi dns,
Actually although the matching works fine it doesn't record anything. I don't have the logs to hand but did you try a recording with the modifed jar file? Anthony |
|
|
|
| Guest_dns_* |
Oct 12 2006, 10:52 PM
Post
#18
|
|
Guests |
oops i forgot to replace the fake DllWrapper with the real one.
DllWrapper.java has a commented out version of the wrapper that calls the windows dll to record, i was useing the dummy version of the wrapper as i was not working on a computer with my tuners. i put the proper version back in this version so it should now work. Sorry if you missed any important recordings. |
|
|
|
Oct 13 2006, 04:55 AM
Post
#19
|
|
|
Forum Regular Group: Members Posts: 141 Joined: 21-November 04 Member No.: 2,060 Card: VisionPlus DVB-t |
I can cope. My wife, now that is a different story ... :-)
Anthony |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 10:46 PM |