Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 31
Warning: include(http://archive.tivocommunity.com/tivo-vb/history/header.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 31
Warning: include() [function.include]: Failed opening 'http://archive.tivocommunity.com/tivo-vb/history/header.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 31
Pages:1
Using Digiguide to set manual recordings via TiVo web
(Click here to view the original thread with full colors/images)
Posted by: dialanothernumb
This sounds a bit silly but... I don't find tivoweb a hugely easy interface. To record a programme it's a little clunky (although a lot easier than using the remote if you want to search)
However, I have the Digiguide PC based EPG, which I use to record radia via a DAB card. Digiguide has very useful markers which are like macros, driven from a rightclick menu.
This thread was started as a proposal for ideas which were subsequently debated. An approach that delivered this was developed by Paul Webster (Thanks!) and tested by myself. I have edited to bring files needed to the front of this thread:
Big thanks to Paul Webster, who developed Dabdig, a script linked to Digiguide markers, there is now a release of dabdig that will set a manual recording in tivoweb, from a right click on a programme in the Digiguide EPG.
What's needed are:
Subscription to Digiguide
DABDig
Tivoweb
Manrec Manual Recording module by Chris Wingert for Tivoweb
You will need to set digiguide with the channel id's assigned by the TiVo. To get these Channel IDs, fire up Tivoweb and click on User Interface > Channel Guide > All, then View Source, and save as a text file.
Recordings and behaviour are exactly as seen with the Manual Record module. This is NOT a practical replacement for the subscription service, simply an automation of the one-off recording method on Tivoweb.
Most markers on Digiguide fire up a specified tme before a programme starts. You can modify this so that the recording is set up immediately by using this scripting add-in with this .ini file:
[DigiGuide]
[OnProgramme]
[ReminderFired]
[Start]
[End]
[OnNow]
[ChannelMenu]
[ProgrammeMenu]
menu0=Schedule immediately via DABDig
Command0=wscript dabdig.vbe "record"
Thanks are also due to the developers of TiVoweb and its excellent module, ManRec!
Posted by: pahunt
A quick look on the digiguide website tells me that it's probably possible although it would all hinge on being able to get Visual C++ to talk to Tivoweb.
An interesting idea though :)
Posted by: dialanothernumb
I was going to talk to a guy called Paul Webster who came up with Dabdig, which exploits the DG markers to control DVB and DAB PC devices. But as you say, the issue is the conversion to TCL.
Anyway, if I make progress, I'll report back.
Posted by: pahunt
Thinking about it you may not need to actually get involved with TCL at all, it may be possible to just send http messages to TivoWeb and get it to do the actual work. I believe that this is how Sanderton's Windows based softpad worked so he may be able to enlighten you further.
Posted by: sanderton
I think using Digiguide data to set a manual recording on TiVo is verging on (if not actually) service theft, at least as defined on this forum.
Posted by: pahunt
quote:
Originally posted by sanderton
I think using Digiguide data to set a manual recording on TiVo is verging on (if not actually) service theft, at least as defined on this forum.
Really :eek: I'm not really sure I understand why though. I don't see how it differs that much in principal from looking up a program in a newspaper and setting a manual recording via Tivoweb.
Posted by: iankb
quote:
Originally posted by pahunt
I don't see how it differs that much in principal from looking up a program in a newspaper and setting a manual recording via Tivoweb.
Because, quite simply, it reduces the value of the subscription and, therefore, can potentially reduce the income for TiVo. :eek:
Ian.
Posted by: pahunt
Yes if you took a project like this to it's logical conclusion I can see that it could be used as a way of bypassing a subscription, but I have to admit that I hadn't really thought of it in that way.
Posted by: dialanothernumb
Service theft?
I thought that was where you used data provided by TiVo/tribune without paying for it.
Providing an alternative method for programming a TiVo using external data would hardly be similar in scope or depth to the service on a tivo. Oh well. Better stop using digiguide/Radio Times/back of the newspaper then!
Anyway, I guess what I do with my TiVo is best left undiscussed IFthis approach is seen as service theft by Gary or David.
(edited to emphasize the word "if" in the last sentence!)
Posted by: sanderton
I think this is borderline. But the step from clicking on an item in Digiguide to record it, to using Digiguide's intelligent seaches to provide Wishlist/SP functionality without having to pay for a sub, is a very small one in technical terms.
Posted by: dialanothernumb
quote:
Originally posted by iankb
Because, quite simply, it reduces the value of the subscription and, therefore, can potentially reduce the income for TiVo. :eek:
Ian.
Two issues here, one is whether such a mechanism can be dabated in the forum and the other is whether this is service theft. My take on whether it's service theft is as stated above, but on the first issue, this forum is supported by TiVo, so I could quite understand why this view might be the one TiVo might take.
However: I have a lifetime sub on one machine and a recently started monthly sub on another. To me, this approach would give me only the functionality to make manual recordings (automated). No listings, no season passes, no wishlists. These are the facilities which set the TiVo service apart from an unsubbed box... not the ability to schedule a timed manual recording which comes out of the (unsubbed) box or the subbed box.
I certainly wouldn't get into a fight about this (but I am slightly annoyed at this approach being called service theft!) because I am merely a guest on someone else's board
Posted by: dialanothernumb
quote:
Originally posted by sanderton
I think this is borderline. But the step from clicking on an item in Digiguide to record it, to using Digiguide's intelligent seaches to provide Wishlist/SP functionality without having to pay for a sub, is a very small one in technical terms.
As is the step from using Turbonet to explore mfs and using a certain ftp program to extract from mfs....
Posted by: iankb
Given that TiVo Inc did not disable manual programming on the Series 1, then this is probably Service Avoidance rather than Service Theft. If TiVo's T&C's prevented the use of the TiVo without a subscription, then this sort of hack could be treated as Service Theft.
I still think that the forum owner might see it as a banned subject, simply because TiVo Inc might not like the potential loss of subscription income. This is for the Forum Administrators to decide.
Ian.
Posted by: dialanothernumb
"Service Avoidance!":D Fair enough...
Actually, no, not fair enough.. blinking ridiculous! Let's give some of these terms a decent meaning.
It's service theft if you somehow get the data and service from TiVo without paying for it.
It's service avoidance, if you effectively receive the same service as the Tivo sub offers but from an alternative source
or it's purely automating the way you use the data input to the manual recording.
I agree that if TiVo had disabled the man/rec facility and sold it as a sub-based box only, then avoidance and theft would be the only issues here. But they didn't.
Hmm.. I've just reported my post to raise the issue with the mods.
Posted by: sanderton
quote:
Originally posted by dialanothernumb
I am slightly annoyed at this approach being called service theft!
No offense inteded, that's just what using 3rd party listing to control the TiVo is called around here. Just like video insertion is called extraction. :)
Posted by: dialanothernumb
Thanks for putting it in that way Stuart, I guess I am feeling a bit jumpy about this as I have steered as straight a course as I could on this forum!
As with anyone who likes their TiVo, I'm happy to keep the company interested in the UK, despite the lack of any reason to believe they are!
Posted by: dialanothernumb
Well, I've reported this thread to the mods and heard nothing back, so I'm assuming for now that it's okay to continue discussing this...
I'll report back if and when there's progress.
Posted by: shanew
I quite like this idea, usually I'm flicking through the freeserve tv guide then changing to tivoweb to search, select, record then check the conflicts...
I also agree that using it to make manual recordings may be too close to service theft, but if the program just did a tivoweb search (which included the time and date). It could then take you straight to the conflicts page i.e. It wouldn't work without guide data and it wouldn't be a manual recording so it could then be accessed by endpad (which i think doesn't touch manual recordings).
Shane.
Posted by: bobnick
It seems a great idea. I've paid for a Tivo sub, and the listing data has a number of continual faults* that really annoy me - why shouldn't I be able to pay for additional listings to help out my poor PVR? If I didn't subscribe, there'd be no guide data and no titles, so it would be really hard to navigate Now Playing - can't see anyone cancelling an existing sub as a result!
* such as a "Harry Hill" wishlist not recording "Harry Hills' TV Burp", multiple CD:UK's recorded, some 'revisited' programmes being given their own SP (Jamie's Kitchen, some episodes of Location) whereas others are stuck in the main one (Grand Designs) etc - a digiguide util will cut down the time I need to spend on Tivo maintenace, which would be a big help.
Posted by: sanderton
To make a "HARRY HILL" wishlist record Harry Hill's TV Burp, edit it to be:
"HARRY HILL"*
Always set names up like that with a star, or apostrophes will prevent a match.
I'm working on module at the moment which does this the other way around - it checks the To Do List against Digiguide and tells you if there's a possible error.
Posted by: bobnick
But why would a regular "S Club" wishlist match tennis from Queen's Club?
Cheers for the tip - shame that Tribune don't bother putting any programme information in which would have made the wishlist work, or even set a correct OAD.
Posted by: dialanothernumb
quote:
Originally posted by bobnick
But why would a regular "S Club" wishlist match tennis from Queen's Club?
Cheers for the tip - shame that Tribune don't bother putting any programme information in which would have made the wishlist work, or even set a correct OAD.
Good for you bobnick... nowt to be ashamed of, s club show the world you don't need talent to achieve
Posted by: bobnick
Hope for us all yet - but that wishlist wasn't for me - honest!
Posted by: sanderton
quote:
Originally posted by bobnick
But why would a regular "S Club" wishlist match tennis from Queen's Club?
Cheers for the tip - shame that Tribune don't bother putting any programme information in which would have made the wishlist work, or even set a correct OAD.
I guess the non alpha character is cosidered part of the preceding word, but signifies the end of the word, so "Queen's Club" is indexed as "QUEEN' S CLUB"
Posted by: bobnick
quote:
Originally posted by sanderton
To make a "HARRY HILL" wishlist record Harry Hill's TV Burp, edit it to be:
"HARRY HILL"*
That needs to be "Harry Hill*" to work...
Posted by: sanderton
I have mine with the asterisk outside, seems to wok fine.
Posted by: RobBellis
quote:
Originally posted by sanderton
I have mine with the asterisk outside, seems to wok fine.
Is that another HH surrealism?
Thinks of Stuart slicing TiVo into small shards and cooking.....
:D
Rgds,
R.
Posted by: bobnick
quote:
Originally posted by sanderton
I have mine with the asterisk outside, seems to wok fine.
I set it up with it outside ("*) and it didn't pick anything up - I even went into the settings a couple of times to check. Changing it to *" made it pick up TV Burp.
Unfortunately, it also made me realise how rubbish the Tribune data is as the wishlist wanted to record the repeated showing on ITV2.
Posted by: sanderton
Digiguide says that the one on ITV on Sunday is a repeat but the one on ITV2 on Monday is a new one - is that not right?
Posted by: pahunt
How does all this asterisk business fit in with the fact that my wishlist for "Billy Connolly" is happily picking up episodes of "Billy Connolly's World Tour of Australia"?
Posted by: bobnick
Does Billy Connolly's World Tour of Australia have a description? Tribune haven't bothered to set the OAD, episode title or any description for Harry Hill - it doesn't even give it one episode ID a week. Pretty unacceptable for an ITV1 show. This means the wishlist has to match the title (the only info Tivo has) - whereas in the past it would match the words "Harry Hill has..." in the description.
Stuart: There's one new episode of Harry Hill a week - on the Thursday on ITV1. As far as I know, all other showings are a repeat of this one.
Thanks for your help on getting the wishlish sorted - it's just a real shame I'm having to break it again, as the guide data is completely wrong and gives me 4 showings a week. It's back to manual recording again! (Roll on Digiguide plugins!)
Posted by: pahunt
quote:
Originally posted by bobnick
Does Billy Connolly's World Tour of Australia have a description?
Yes it does and I hadn't thought to look at that. Some people are just too clever for their own good ;)
Posted by: dialanothernumb
Those who like tidy clean code will be glad to hear that I am not attempting to do this work myself. I'm collaborating with the guy who created DABdig, Paul Webster. We're making some progress. I for one, don't want you to miss a single opportunity to see S Club at their best, bobnick
Posted by: pgogborn
I have always believed it a good idea to have a free-standing EPG rather than a embedded one, especially when you want to control more than one recording device.
However, that is only one part of the equation, especially when wanting to use market forces to improve the quantity and accuracy of guide data.
I think that it is also a good idea to have an EPG which is compiled from multiple sources.
For example, you could add a film review to a source that has good genre classifications but only a film synopsis.
For example, you may find the last minute programme changes listings more accurate using a web source rather than a daily download.
quote:
Originally posted by sanderton
I'm working on module at the moment which does this the other way around - it checks the To Do List against Digiguide and tells you if there's a possible error.
I remember you mentioned this in another thread, but I am still not sure exactly what you are checking - care to expand? :)
Posted by: sanderton
It looks at the channel, start time, duration and series title of every episode in the To Do list and compares it to what is listed in the same slot on Digiguide, highlighting discrepancies.
It's working quite nicely on my machine now; there's probably another weekend of tidying up to do before I let it loose on an unsuspecting forum. :)
Posted by: pgogborn
quote:
Originally posted by sanderton
It looks at the channel, start time, duration and series title of every episode in the To Do list and compares it to what is listed in the same slot on Digiguide, highlighting discrepancies.
It's working quite nicely on my machine now; there's probably another weekend of tidying up to do before I let it loose on an unsuspecting forum. :)
It will be interesting to hear some feedback using real data, rather than anecdotal evidence, on the reliability of Tribune v Digiguide listings.
I wonder if either of them do as well as the Radio Times web site at incorporating late schedule changes? >
http://www.radiotimes.beeb.com/cont...hedule_updates/
If the Radio Times web site significantly beats Digiguide and/or Tribune at late schedule changes, a suggestion. Use a script to compare the "To Do" list with the web site, if a change in the time of a programme to be recorded is noted, automatically update the "To Do" list. It would also be possible to compare the Season Pass / Wish list in case a late programme substitution throws up something that should be added to the "To Do" list.
Posted by: iankb
quote:
Originally posted by pgogborn
Use a script to compare the "To Do" list with the [Radio Times] web site, if a change in the time of a programme to be recorded is noted, automatically update the "To Do" list.
... or more useful, where conflicts might ensue, send an email.
Ian.
Posted by: sanderton
quote:
Originally posted by pgogborn
It will be interesting to hear some feedback using real data, rather than anecdotal evidence, on the reliability of Tribune v Digiguide listings.
I wonder if either of them do as well as the Radio Times web site at incorporating late schedule changes? >
http://www.radiotimes.beeb.com/cont...hedule_updates/
If the Radio Times web site significantly beats Digiguide and/or Tribune at late schedule changes, a suggestion. Use a script to compare the "To Do" list with the web site, if a change in the time of a programme to be recorded is noted, automatically update the "To Do" list. It would also be possible to compare the Season Pass / Wish list in case a late programme substitution throws up something that should be added to the "To Do" list.
Well in my testing to date, I've actually yet to find an error in Tribune's listings vs Digiguide!
I've used Diguiguide because a) I've found their listings to be good over the years and b) they have a PDA edition, and it's a hell of a lot faster and easier getting TiVo to pretend to be PDA and download and interpret those nice simple pages than getting it to scrape complex stuff like the RT site!
I've also started some PC software which would do a check of the entire TiVo db against Digigide, Ananova and the RT.
Reschedulting would mean creating a manual timed recording for the RT slot - possible, but messy.
Posted by: sanderton
quote:
Originally posted by iankb
... or more useful, where conflicts might ensue, send an email.
Ian.
Look out for the next version of DailyMail. :)
Posted by: RobBellis
About checking and finding errors and conflicts....
quote:
Originally posted by sanderton
Look out for the next version of DailyMail. :)
No! What it needs to do is log on here, post to the errors thread, page Jim from Tribune and keeps on nagging every minute until it's fixed. :D
Now that's a killer app.
Rgds,
R.
p.s. Of course to be a *real* killer app we would need to outfit out TiVo with some sort of weaponry, anyone for a modded TiVo for Robot Wars?
Posted by: dialanothernumb
Big thanks to Paul Webster, who developed Dabdig, a script linked to Digiguide markers, there is now a release of dabdig that will set a manual recording in tivoweb, from a right click on a programme in the Digiguide EPG.
For a copy of dabdig (DABDig.vbe 2.44b11), go to his site).
What's needed are:
Subscription to Digiguide
Dabdig beta (as above)
Tivoweb
Manual Recording module by Chris Wingert for Tivoweb
You will need to set digiguide with the channel id's assigned by the TiVo. To get these Channel IDs, fire up Tivoweb and click on User Interface > Channel Guide > All, then View Source, and save as a text file.
Recordings and behaviour are exactly as seen with the Manual Record module. This is NOT a practical replacement for the subscription service, simply an automation of the one-off recording method on Tivoweb.
Thanks are also due to the developers of TiVoweb and its excellent module, ManRec!
Posted by: bobnick
quote:
Originally posted by RobBellis
What it needs to do is log on here, post to the errors thread, page Jim from Tribune and keeps on nagging every minute until it's fixed. :D
Now that's a killer app.
:D :D :D
What a brilliant thougt! Gave me a great big laugh on a Monday morning!
Posted by: sanderton
You're reading my mind Rob. :)
BTW, can any of you real programmers point me towards an algorithm for working out a % match between two strings? A straight == is pulling up alot of false positives because of minor differences in the titles of shows.
Posted by: iankb
quote:
Originally posted by sanderton
... can any of you real programmers point me towards an algorithm for working out a % match between two strings?
If the differences are mainly in missing words, then:- Uppercase both strings.
- Ideally, remove the second instance of any consonant that occurs in pairs.
- Parse both texts into words, based upon separators that aren't in the characters A-Z,0-9.
- Create a % of the words in the first string that match the words in the second string.
- Create a % of the words in the second string that match the words in the first string.
- Use the higher % of the two that were calculated above.
If the problems are mainly in misspelling, convert the words to a more-limited alphabet based upon Soundex.
A more sophisticated version would contain a word thesaurus (e.g. Ltd = Limited, etc).
Ian.
Posted by: sanderton
Ta
Posted by: pgogborn
quote:
Originally posted by sanderton
BTW, can any of you real programmers point me towards an algorithm for working out a % match between two strings? A straight == is pulling up alot of false positives because of minor differences in the titles of shows.
The Radio Times PDA edition is not considered as versatile and is more expensive than the Digiguide PDA version, but have you considered giving it a look to see if there is better title matching with Tribune (and perhaps better last minute schedule change info)?
You can get a trial download here >
http://radiotimes.tvcompass.com/rt/Home.aspx
You are now collecting a lot of data - if you are not doing so already, it could be useful in keeping a permanent record of some of it in a 'standard' database (for example main title/episode title/date of airing of programmes that have passed through your EPG). You previously mentioned MySQL in connection with TiVoWeb, TiVo Inc are recruiting MySQL developers for future applications, so MySQL may be a good choice
Posted by: sanderton
Right now the data is transient - the TiVo is downloading only the relevant page of data.
I have no idea at all if RT is better or worse than Digiguide for last minute chnages - anyone have any experience?
The title matchin is not bad - 95% perfect in fact, but there are a few (SMarteenies instead of Smarteenies, Enterprise instead of Star Trek: Enterprise)
I have yet to find a genuine mismatch in the data!
Posted by: dialanothernumb
Where does DG get its listings from? I had an idea (on what basis I don't know) that it was tribune as well.
Posted by: sanderton
They do their own.
Posted by: pgogborn
quote:
Originally posted by sanderton
The title matchin is not bad - 95% perfect in fact, but there are a few (SMarteenies instead of Smarteenies
I expect there is an option to force a case insensitive == comparison.
quote:
Originally posted by sanderton
I have yet to find a genuine mismatch in the data!
I doubt if such hard data will be enough to kill the DigiGuide/Tribune had the more accurate data debate.
Posted by: dialanothernumb
Well, I guess ultimately, the listings come from the broadcaster and the differences would be in level of detail and speed of update. That might vary in the relationship each broadcaster has with each listings company. i.e. if tribune paid more to Sky for their channel info than DG did, they get more detail or more frequent updates?
I only ask because I would have thought understanding the lstings would be useful in provisioning the TiVo with the best update.
Stuart I imagine you are way ahead of me on this anyway
Posted by: pgogborn
quote:
Originally posted by dialanothernumb
Where does DG get its listings from? I had an idea (on what basis I don't know) that it was tribune as well.
When it comes to episode descriptions, numbers etc, DigiGuide accepts contributions via anybody making a web posting >
http://www.digiguide.com/dev/dgepisode/
I will leave it open to debate as to what sort of editorial control is exercised on such contributions - but much as I enjoy public participation, I think I prefer to place more faith in Tribune or people like Broadcasting Data Services >
http://www.broadcastingdata.com/service/epg.html
Although I seem to recall that Sanderton recently commented on the absence of episode number info on Tribune - anybody care to give an idea of the size of the problem (a guess at % for example), if it is particular channels that are offenders etc
Posted by: cyril
quote:
Originally posted by sanderton
You're reading my mind Rob. :)
BTW, can any of you real programmers point me towards an algorithm for working out a % match between two strings? A straight == is pulling up alot of false positives because of minor differences in the titles of shows.
I'd remove hyphens,apostophes and other puctuation marks too.
A thesaurus would be a good idea as well as a common mis-spellings and Americanisms database.
teh = the
color=colour
politician= liar
etc...
Posted by: pgogborn
quote:
Originally posted by cyril
I'd remove hyphens,apostophes and other puctuation marks too.
Me also. But before I removed the punctuation, which includes the : colon symbol, I would strip out everything to the left of the :
Also, if looking at a specified time slot, which would not have to take account of things such as Halloween 1, Halloween 2 etc, I would strip out numerics.
I do not know about TCL, but some scripting languages allow you to do such a pattern substitution - strip out all non-alpha characters, convert all to lower case, in one or two lines.
After the pattern substitution on both the Tribune and DigiGuide title, then do the ==
Posted by: sanderton
TCL allows regular expressions to be used for substitutions, so the software is there if I can figure it out!
Posted by: pgogborn
quote:
Originally posted by sanderton
TCL allows regular expressions to be used for substitutions, so the software is there if I can figure it out!
If you think you have figured it out, give us a heads up in this thread - in the absence of a reply and if I have a spare moment I will have a look at the TCL documentation on the web to see if I can be of any help.
Posted by: sanderton
It's not a problem doing it - I just wondered if there was some magical standard algorithm, since my programming education stopped in 1984 with a lecture on the bubble sort. :)
Posted by: iankb
Regular expressions are normally used for searching and will just match a text string against a regular expression and say whether it matches or not.
To compare two strings, you would somehow have to convert one string into a regular expression that could then be used to match with the second string. There would have to be patterns that include wildcards in every position that could have missing text, and large iterations of text transposition tables. Unfortunately, as the string gets longer, the number of possible expressions will go up exponentially, and you would need a far more powerful processor to finish a match.
Allowing for misspellings, missing words, and word re-ordering, you really need to build up word tables and compare those. I've used more sophisticated versions of the method in this post above in high-volume commercial address deduplication and bibliographic matching systems. This method only allows for misspelling of words where consonants are doubled-up, but more sophisticated systems would use character-analysis of unmatched words, Soundex conversion, and thesaurus's of common misspellings and abbreviations.
To parse into words, uppercase the text and find consecutive groups of characters A-Z,0-9. One exception is that you should treat two words that are separated by just a hyphen as one word with the hypen removed. Another is to treat the ampersand character as the word 'AND'. All other characters can be ignored.
Ian.
Posted by: sanderton
Fortunately TCL regards all strings as lists of "words" which can be directly addressed so that functionality is built-in; all I need to do is use a regular expression substitution to remove all non a-z 0-9 characters, which is easy enough.
I think since both sources are commercially sourced data, that I can get away without worrying about misspellings - it's more where they have taken different approache to "normalising" some complex series names.
Posted by: shanew
Hi,
I'm unsure to what you're doing the string comparison with - my only guess is that you're comparing the digiguide titile with every title in TiVo's database. If that's the case couldn't you firstly try to match any of the words in the title then do further test's with channels/dates/times/etc..
Something like (this is perl style but its very similar to tcl):
code:
LOOP: foreach $TiVoTitle (@TiVoDatabase) {
#Set $TiVoTitle to lowercase
#Filter out meaningless words:
@meaningless = ("and", "the", .... );
foreach $word (@meaningless) {
$TiVoTitle ~= s/$word//g; # replace that word with nothing.
}
foreach $word (@digiguidetitle) {
# set $word to lowercase
if( $TiVoTitle ~= /$word/ && # if word is contained in the tivo title
$TiVoProgrammeChannel == $digiguideChannel &&
$TiVoProgrammeDate == $digiguideDate &&
$TiVoProgrammeStartTime == $digiguideStartTime ) {
# Setup recording here...
last LOOP; # to exit the loop
}
}
}
}
Hope this helps/makes sense! :D
Shane
EDIT: I did indent this code nicely but doesn't show up on the post :(
EDIT2: Thanks Ian (see next post) code looks better now :)
Posted by: iankb
quote:
Originally posted by shanew
I did indent this code nicely but doesn't show up on the post
I think you're supposed to use the '#' button to insert code samples. It should use a monospace font and preserve leading spaces.
Ian.
Posted by: cueman
quote:
Originally posted by sanderton
can any of you real programmers point me towards an algorithm for working out a % match between two strings[/B]
I don't know anything about tcl, but if you're after a general algorithm for comparison between words that may be mistyped, try this:
(1) Given two phrases to compare, split each one into words
(2) For each word, generate a list of character triples. For example, "HELLO" would yield 3 triples, "HEL", "ELL" and "LLO"
(3) To compare words in each phrase, check to see how many triples they have in common. Given each word-pair a mark out of 100 by dividing the number of triples in common by the maximum number they could have had in common and multiplying by 100.
For example: "HELLO" and "HELO" would have common triples HEL and ELO. HELLO has 3 triples and HELO has 2, so a perfect match would have matched 3 triples, whereas you matched 2. So give this one 2/3*100 = 66%.
(4) Match words in each phrase, choosing the best matching words from each phrase first. Each word pairing gets a percentage mark as above.
(5) Add up the squares of the word-match-marks, divide by the perfect-match mark, take the square root and multiply by 100. The perfect-match-mark is 10,000 times the number of words being compared.
Paul
Posted by: blindlemon
Slightly OT I know, but would it be possible to use "extra" data from digiguide or RT to flesh out some of the desciptions (and actors lists) supplied by/to Tribune?
The data for UK shows, in particular is abysmal. For instance, the recent Henry VIII series wasn't picked up by any of my wishlists as it had no actors listed at all - and I consequently nearly missed it!! :(
Edit: remove 1 of the 2 uses of "particular" - I'm very picky about that sort of thing;)
Posted by: iankb
Does Digiguide have any more info than the TiVo? I assumed that they both depended upon the same broadcaster data for anything other than films.
Ian.
Posted by: dialanothernumb
Conscious of the fact that this thread has gone on to other (very interesting) debates about Digiguide, I have edited the first post in this thread to list all the files and howtos to achieve manual recordings on a TiVo via Digiguide.
Dial
Posted by: pgogborn
quote:
Originally posted by blindlemon
Slightly OT I know, but would it be possible to use "extra" data from digiguide or RT to flesh out some of the desciptions (and actors lists) supplied by/to Tribune?
Yes, although as I hinted in post #34 in this thread, this is a far more rewarding exercise if you are creating your very own highly personalised multi-sourced EPG to control multiple recording devices, rather than piecemeal modifications to a TiVo/Tribune database to control a TiVo >
http://www.tivocommunity.com/tivo-v...287#post1506287
However, theoretically, you could, for example, replace the Tribune synopsis with a Radio Times review or add cast and crew from the Internet Movie Database.
Posted by: sanderton
quote:
Originally posted by iankb
Does Digiguide have any more info than the TiVo? I assumed that they both depended upon the same broadcaster data for anything other than films.
Ian.
Some.
quote:
Landscape Mysteries
(Documentary)
Time: 19:30 to 20:00 (30 minutes long).
When: Thursday 13th November on BBC 2
The Riddle of the Yorkshire Tracks.
Documentary exploring the history of Britain's landscape. Strange markings in the rocks on the North Yorkshire coast are the starting point for an investigation into a forgotten story from Britain?s industrial past. Presenter Aubrey Manning discovers that at the beginning of the 17th century, long before the industrial revolution, the now deserted coastline south of Whitby was dominated by Britain?s first chemical industry.
(Widescreen, Subtitles)
Keywords: History
as opposed to
quote:
Episode Title The Riddle of the Yorkshire Tracks
Episode Description Strange grooves in the rocks on the North Yorkshire coast are the starting point for an investigation into a forgotten story from Britain's industrial past.
Episode Number
Duration 0:30
Original Air Date Thu 13th Nov 2003
Genres History
Type Series
Channel 2 BBC2
Showing Date Thu 13th Nov 19:30
Posted by: pgogborn
quote:
Originally posted by iankb
Does Digiguide have any more info than the TiVo? I assumed that they both depended upon the same broadcaster data for anything other than films.
As I mentioned in post #52 in this tread, DigiGuide solicit contributions from all and sundry for programme descriptions and episode numbers >
http://www.digiguide.com/dev/dgepisode/
http://www.tivocommunity.com/tivo-v...457#post1511457
Posted by: sanderton
quote:
Originally posted by pgogborn
However, theoretically, you could, for example, replace the Tribune synopsis with a Radio Times review or add cast and crew from the Internet Movie Database.
The main issue with that would be that I doubt that an amended description would be indexed for use in Wishlists.
Posted by: kitschcamp
Guess there is only one way to find out. Now whose going to try and put supercalifragilisticexpiallidotious (or something equally unlikely) in a description to find out? :D
Posted by: pgogborn
quote:
Originally posted by sanderton
as opposed to
Where my EPG overlaps with TiVo categories, it has
Landscape Mysteries
The Riddle of the Yorkshire Tracks
Aubrey Manning searches for the causes of strange markings on the rocks of the North Yorkshire coast, He reveals how in the early 17th century -- long before the Industrial Revolution -- the coastline south of Whitby was the site of Britain's first chemical industry, uncovering a long-forgotten piece of the country's heritage.
Subtitles
Stereo
Widescreen
Episode 7 of 8
Educational, Science
Posted by: pgogborn
quote:
Originally posted by sanderton
Episode Number
Which was?
Posted by: sanderton
blank
Posted by: pgogborn
Just had a poke around. The programme description used by DigiGuide is one available on the Broadcasting Data Services ftp server. Web sites such as uk.tv.yahoo.com and www.tvtv.co.uk also replicate it word for word. Yahoo reckons it is "Nature/Animals" while tvtv has it as "History"
The Radio Times web site seems to have a different source, "Strange grooves in the rocks on the North Yorkshire coast are the starting point for an investigation into a forgotten story from Britain�s industrial past which has shaped the landscape we see today. Professor Aubrey Manning learns that the dyeing of textiles once depended on the use of a chemical called alum found in Yorkshire" and exercises an editorial judgment by giving the episode a "Choice" recommendation.
Posted by: pgogborn
quote:
Originally posted by sanderton
blank
Hmm. Nul points for Tribune
Posted by: pgogborn
Well, I have just watched Landscape Mysteries (pretty please, no remarks about a TiVo owner watching live television).
In my opinion:
The Radio Times web listing deserves 10 out of 10 for specifically saying that the programme was about alum and the dyeing of textiles. A harsh 5 out of 10 to all the other listings for the dumbed down 'chemical industry' description of the programme.
Deduction of marks all round as all listings obfuscated the marine archeology sub-theme.
A bonus mark to my personalised EPG for being the only one to give it a Educational, Science rating (especially as it was originally an Open University production).
Posted by: pgogborn
Yet another EPG on the horizon, an independent seven day one for the Freeview platform by the 4tv company, tied into specific set-top boxes, recorders etc.
The place-holder is already being transmitted, for some screen shots of the expected product see >
http://www.4-tv.net/fast%20guide%20epg.htm
Posted by: bobnick
quote:
Originally posted by dialanothernumb
Recordings and behaviour are exactly as seen with the Manual Record module.
My /var directory was wiped out this week, so I've been re-installing all the
old favourites and stuck this on as well. When you install it, make sure
that the usedefault setting in settings file is not set to anything - the install
procedure 'helpfully' stuck TV in as a defaut for me, which screwed things
up!
Also, when you want to set a recording, right click on the programme and
pick the 'Schedule immediately' option at the bottom.
All is working fine, apart from an error I have when trying to set Tivo to
record the first rugby world cup semi final. It seems to be passing the
correct paramaters through, but the web page has the following error:
PHP:
INTERNAL SERVER ERROR
--cut here--
action_manrec '' 'set "titlestr" "Rugby World Cup 2003";set "descriptionstr" "Sport";set "chnsel" "2650";set "wodatetz" "1068854400";set "wotimetz" "08";set "womin" "50";set "durationstr" "160";set "ratingstr" "6";set "recqual" "75";set "forcerecord" "1";set "repeat" "once";set "submit" "Record";'
syntax error in expression "1068854400 + ( 08 * 3600 ) + ( 50 * 60 )"
while executing
"expr $wodatetz + ( $wotimetz * 3600 ) + ( $womin * 60 )"
(procedure "convert_time" line 5)
invoked from within
"convert_time $wodatetz $wotimetz $womin $durationstr "
(procedure "::action_manrec" line 110)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--
Any idea as to the cause, and what can be done to fix it?
Posted by: sanderton
Looks like it doesn't like "08" as an hour - I'm not familar with that module; if it's a manual entry try just "8".
Posted by: bobnick
Cheers, that's the problem. It doesn't like the leading zero at all. The plug-in calls the relevant URL for the manrec module, so it was just a case of modifying the URL on the error page. Something for the digiguide experts to investigate!
One time I called it with the correct URL, I got a 'error writing "file1": I/O error'; I presume this is the dreaded access problem with Tivo is busy? Reloading the link a minute later worked just fine.
Posted by: dialanothernumb
Weird.
I replicated Bobnicks recording by setting a recording for tomorrows semi (starting at the same time. I got the same problem and fixed it in the same way (by deleting the leading zero). I also tried a few more manual recordings and it seems that this method doesn't work if the start time is between 0800 and 0959. Fine from 0001 to 0759. I'll talk with Paul Webster abouit it, but does anyone have an idea why this is happening so specifically between 8 and just befor 10 am?
Posted by: sanderton
Digiguide days run 0600 - 0600 not midnight to midnight, so perhaps dates in the 00.01 to 05.59 get processed to be the right day and therefore the code that does that strips the leading zero?
Posted by: dialanothernumb
Well, here's the http get instruction that DABdig sends
http://tivoip/manrec?titlestr=Countdown&descriptionstr=Quiz+Show&chnsel=318193&wodatetz
=1069027200&wotimetz=05&womin=05&durationstr=45&ratingstr=1&
recqual=100&forcerecord=0&repeat=once&submit=Record
As you can see it's for a program starting at 0505.
A url for a program recording that fails in the way bobnick found is here
http://tivoip/manrec?titlestr=Spider-Man&descriptionstr=Animation&chnsel=318193&wodatetz=1068940800&
wotimetz=08&womin=35&durationstr=25&ratingstr=1&recqual=100&
forcerecord=0&repeat=once&submit=Record
for a program that starts at 0835
No real difference in format
Posted by: pgogborn
quote:
Originally posted by sanderton
I think since both sources are commercially sourced data, that I can get away without worrying about misspellings - it's more where they have taken different approache to "normalising" some complex series names.
Just had a first look at Tcl, this is my first cut as a way I would try to normalise the data.
code:
regsub -all {^.+:|[^a-zA-Z]} $Tribune_title "" compacted_Tribune_title
regsub -all {^.+:|[^a-zA-Z]} $DigiGuide_title "" compacted_DigiGuide_title
if {[string match -nocase $compacted_Tribune_title $compacted_DigiGuide_title]}
So
BBC 2 Crime Afternoon: Harry's Game
would match
HARRYS GAME (1982)
But
BBC 2 Crime Afternoon: Harry's Game
would not match
BBC 2 Crime Afternoon: Larry's Game
Posted by: sanderton
In that example, the shorter would match the longer, but not the other way round.
Posted by: pgogborn
quote:
Originally posted by sanderton
In that example, the shorter would match the longer, but not the other way round.
I am presumably missing the obvious, but I can't understand your post and see the problem :confused: - care to expand?
Posted by: sanderton
I'm not 100% sure as I tend to program these things by trial and error rather than deep understanding, but if I read your code frangment right and string match works the way I think it does then:
BBC 2 Crime Afternoon: Harry's Game
would indeed match
HARRYS GAME (1982)
but
HARRYS GAME (1982)
would not match
BBC 2 Crime Afternoon: Harry's Game
Posted by: Paul Webster
quote:
Originally posted by dialanothernumb
Well, here's the http get instruction that DABdig sends
<snip>
I have now changed the code to not put in leading 0 when specifying hour or minute - version 244b12
Posted by: pgogborn
quote:
Originally posted by sanderton
I'm not 100% sure as I tend to program these things by trial and error rather than deep understanding, but if I read your code frangment right and string match works the way I think it does then:
BBC 2 Crime Afternoon: Harry's Game
would indeed match
HARRYS GAME (1982)
but
HARRYS GAME (1982)
would not match
BBC 2 Crime Afternoon: Harry's Game
Perhaps I am still at cross purposes with you, but the problem as originally stated was that:
SMarteenies instead of Smarteenies
Enterprise instead of Star Trek: Enterprise
was making it difficult to compare the strings.
I therefore used
code:
if {[string match -nocase
to do a case insensitive comparison. This takes care of the SMarteenies / Smarteenies problem.
However, before the case insensitive comparison was made, I used
code:
regsub -all {^.+:|
to remove from the string everything that preceded the [final] colon symbol. This takes care of the Enterprise / Star Trek: Enterprise mismatch.
For good measure I usedcode:
[^a-zA-Z
to remove numbers, blanks, punctuation marks etc as these non-critical characters can be entered differently depending on who is typing the title into the database.
Like you I use a trial and error method - I think a problem of understanding the code could be that the claret ^ has two different meanings according to context.
In code:
{^.+:|
it anchors a search patern to the begining of a string.
In code:
[^a-zA-Z
it means 'search for the inverse [opposite] of the specified pattern'.
Hmm! so much for this Perl / Tcl comparison that claims "Tcl is much simpler and easier to learn than Perl... the Perl language is riddled with special cases and idioms" >
http://www.mcs.sdsmt.edu/~mcgough/tcltk/tcltk.html
For a step-by-step breakdown of the sting comparison you can view the transformations using this code >
set Tribune_title "BBC 2 Crime Afternoon: Harry's Game"
set DigiGuide_title "HARRYS GAME (1982)"
regsub -all {^.+:|[^a-zA-Z]} $Tribune_title "" compacted_Tribune_title
regsub -all {^.+:|[^a-zA-Z]} $DigiGuide_title "" compacted_DigiGuide_title
string match -nocase $compacted_Tribune_title $compacted_DigiGuide_title
if { [string match -nocase $compacted_Tribune_title $compacted_DigiGuide_title] } {
puts "In a case insensitive comparison, compacted titles match:\n$compacted_Tribune_title (\$compacted_Tribune_title)\n$compacted_DigiGuide_title
(\$compacted_DigiGuide_title)\n"
puts "Original uncompacted titles were:\n$Tribune_title (\$Tribune_title)\n$DigiGuide_title (\$DigiGuide_title)"
} else {puts "In a case insensitive comparison, compacted titles do NOT match:\n$compacted_Tribune_title (\$compacted_Tribune_title)\n$compacted_DigiGuide_title
(\$compacted_DigiGuide_title)\n"
puts "Original uncompacted titles were:\n$Tribune_title (\$Tribune_title)\n$DigiGuide_title (\$DigiGuide_title)" }
Posted by: sanderton
I think we were at crossed-purposes. I thought you were suggesting your code fragment would work generally, not just in one specific instance of the colons (or ones very like it). And I missed the pre-colon removal bit. I just quoted two random examples, unfortunately there are very few consistencies in the inconsitencies (!) so you would have to have nearly as many lines in the comparision routine as there things to search for. It'll be easier to do it by eye.
Posted by: shanew
I wanted a program which could make "normal" (not manual) recordings using digiguide so endpad would add soft padding automatically.
So i've written one! :D
Once you right click on a programme in DigiGuide and select "Record Programme with TiVo" it does a search in TiVoWEB to match the programme title, time and date and then take you directly to the conflicts page so you can either confirm the recording with a single click or review the conflicts. Once at this page you can even set/edit/cancel a seasonpass by clicking on the programme's link.
It works pretty good for me so if anyone is interested they are welcome to use it.
If there are any problems, post here and i'll try to fix them :rolleyes:
Cheers,
Shane.
EDIT: Attachment removed, new version uploaded which tell you to modify the vbs file to point to your tivo's ip
See thread:
http://www.tivocommunity.com/tivo-v...threadid=144032
Posted by: dialanothernumb
Shane, I think this is a neat bit of scripting.
Just what I was thinking about attempting myself but struggling to implement (looking through it, it looks easy, hmmmm:p )! Whilst the fix with DABDig works very well, it's still a Manual recording and as you say, loses the advantages of Stuart's endpad.Edit: Endpad works fine with manual recordings
Can I suggest you plant this in a new thread, as the thread title is a bit misleading
And thanks!
Posted by: shanew
thanks dialanothernumb, I didn't think it was worth a new thread but with your recommendation i'll make it so ;)
Cheers,
Shane
Posted by: ywu
Hi dialanothernumb
Sorry to resurrect such an old thread, but I like your module as it allows me to use my unsubbed Tivo with Digiguide, but having a problem with it.
Manual recordings work fine via Tivoweb (Plus) as does Conflict Resolve Manual. (it's the cgunn version that uses callsigns).
When I use this module and right-click to record, I get the following message:
INTERNAL SERVER ERROR
--cut here--
action_manrec '' 'set "titlestr" "BBC News";set "descriptionstr" "All the latest news from around the worl";set "chnsel" "40";set "wodatetz" "1087430400";set "wotimetz" "13";set "womin" "14";set "durationstr" "46";set "ratingstr" "1";set "recqual" "40";set "forcerecord" "1";set "repeat" "once";set "submit" "Record";'
can't read "callsign": no such variable
while executing
"create_manual_todo_recording $chan $timeArray $chnsel $callsign $titlestr $episodetitlestr $descriptionstr $ratingstr $programSource $recqual"
(procedure "::action_manrec" line 154)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--
Is it because of the callsign, and if so, is there anything that can be done to use it on a non-subbed box?
From what I can gather, the extra required fields are (values are examples):
callsign=&
descriptionstr=Manual+Recording&
Thanks.
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 37
Warning: include(http://archive.tivocommunity.com/tivo-vb/history/footer.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 37
Warning: include() [function.include]: Failed opening 'http://archive.tivocommunity.com/tivo-vb/history/footer.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/avsforum/archive.tivocommunity.com/tivo-vb/history/archive_functions.php on line 37
vBulletin Copyright ©2000 - 2013,
Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2013
- Created by Stefan "Xenon" Kaeser
Modified by Adam J. de Jaray