TiVo Community Forum banner
1 - 20 of 350 Posts

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #1 ·
Digiguide Search v2.4

I've written (by means of trying to understand the TiVoWEB code :D ) a script that will enable digiguide to setup a TiVo recording instantly.

By right clicking on a programme in DigiGuide and selecting "Record Programme with TiVo" it extracts the programme with TiVoWEB. It tries to match time and date and channel and then takes you directly to the conflicts page. You can then 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.

There is now also an option in the digiguide menu to "Watch this Channel with TiVo" allowing you to switch to that channel automatically.

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:

Since version 2, you also need the channel mapping file, also found at the bottom of this post.

Cheers,

Shane.

P.S. Remember to do a quick reload when you upload the new script

ver 1.1
- Uploaded new version which mensions that you have to modify the vbs file to point to your tivo's ip ( and not mine :D )

ver 1.2
- Fixed bug which returned programmes on channels you don't recieve - thanks starbug1234 for testing

ver 1.3
- Now opens in default browser not just IE - thanks pahunt(Firebird) and devoiddroid(Opera) for testing

ver 1.4
- When the programme exists but doesn't match the date and time it now lists those programmes automatically incase there are small differences in start time or when there are lineup errors
- Words such as 'and' removed from keyword search, this gives higher probability for a programme match - thanks dialanothernumb for raising this

ver 1.5
- A function has been implemented so that if you're lucky enough to have more than 1 tivo a link comes up on the conflicts page that says "Try this recording on other TiVo", it then takes you to the conflicts page on the other tivo with the current program. This even works if you don't have digiguide, just upload the itcl file and make the changes - thanks dialanothernumb for testing

ver 1.6
- I've re-written the code thanks to sandertons idea's. It now extracts the programme directly from schedule by time/date/channel without trying to match the title (which is sometimes different!).
- I've added the option to "Watch this Channel with TiVo" to the digiguide menu which changes the channel for you without having to pick up the remote :eek:

ver 1.7
- There were problems with the channel numbers being sent by digiguide, in some cases they didn't match up with TiVo. Digiguide now sends the channel name and TiVo then matches it to its own callsign (eg BBC Radio One -> BBCR1). To anyone using the original search code, this version is much quicker.

ver 1.8
- Added Ulster ITV to the channel mapping
- Now working corretly if used through a reverse proxy
- Corrected bug in multiple tivo channel mapping
link to version 1.8

ver 1.9
- Added TopUp TV to the channel mapping (corrected in 1.9.3)
- Fixed problem with daylight savings time difference
- Corrected channel mapping for sci fi and sky cinema channels (ver. 1.9.4)
link to version 1.9.4

ver 2.0
- Separated the channel mapping file so it can be updated easily, see section below
- Now the channel mapping from digiguide is case independent
link to version 2.0

ver 2.1
- Could not always find the chan_map.txt file, now fixed
link to version 2.1
Changes made only to file: digiguidesearch.itcl since last version.

ver 2.2
- Channel names containing "&" were causing a problem, now fixed
link to version 2.2
Changes made only to file: tivo-record.vbs since last version.

ver 2.3
- Bug in calculating correct ending of british summer time
link to version 2.3
Changes made only to file: digiguidesearch.itcl since last version.

ver 2.4
- Small fix stopping an error message when program data is not yet available on the tivo
link to version 2.4
Changes made only to file digiguidesearch.itcl since last version.

Channel Mapping File
Upload to tivoweb modules directory
Download here - updated 7/3/2005
-- Added FXUK (FX)
-- Added ITVTHREE (ITV3)
-- Added UKTV channels/Documentary & People - thanks Neil :up:
-- Added Living (Living TV) & BBC2LDN (BBC 2 London) - thanks jfs5 :up:
-- Added Challenge Plus 1 and corrected Sky one mix and Challenge - thanks P.J. & BobBlueUK :up:
 

Attachments

·
Tweaked and poked
Joined
·
1,846 Posts
Looks good from here - that should save me a bit of effort.

Another little pointer, if you use the tivo with apache forwarding and a virtual directory, you can change the ip address to:

192.168.0.55/tivo

or whatever yours is and it works just fine.

Now to test it from work :D
 

·
Registered
Joined
·
52 Posts
Just to be clear - the difference (as I understand it) between this one and the one that I put into DABDig is that the DABDig one is built to be run unattended whereas this one is designed to allow you to work interactively. The idea for DABDig being that you set markers in DigiGuide and it fires them when it decides that it is time to record something.
I can see that this might be less interesting for a TiVo community that relies on the TiVo making such decisions.
You can also run DABDig throgh DGScript and have it invoke immediately on clicking ... but if you are sitting there to clock then you might as well use Shane's script and get conflicts resolved there and then.
Clearly there are pros and cons for each approach - basically meaning that the user can choose to run which ever they want (even with both).
 

·
Registered
Joined
·
334 Posts
Absolutely Paul

These two methodologies work to different strengths. The advantage of DABDig is that it can be fired unattended with no user input. The advantage of Shanes module is that it places recordings in the scope of Endpad (which doesn't work with Manual Recordings) Edit: Endpad works fine with manual recordings

Thanks to both Paul and Shane, Tivo-ers have two approaches to using Digiguide as a complementary EPG. Brilliant!
 

·
Registered
Joined
·
31 Posts
Hi,

Im probably doing something stupid, but I get this error:

INTERNAL SERVER ERROR
--cut here--
action_conflicts '' 'set "quality" "75";set "kal" "2";set "startearly" "0";set "endlate" "0";set "objectid" "207838/37";'
can't read "channum": no such variable
while executing
"td $channum"
(procedure "do_conflictsrow" line 30)
invoked from within
"do_conflictsrow $chan $showing [expr $startearly * 60] [expr $endlate * 60]"
("uplevel" body line 8)
invoked from within
"uplevel $body"
invoked from within
"transaction {uplevel $body}"
(procedure "RetryTransaction" line 5)
invoked from within
"RetryTransaction {
if { [regexp {([0-9]*)/(.*)} $objectid junk fsid subobjid] } {
set showing [db $db openidconstruction $fsid $subobjid]
..."
(procedure "::action_conflicts" line 45)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--

Any ideas??

Thx

Stuart
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #6 ·
Yes, that's right. I like using Digiguide to search through the tv schedules for the next few days, but unfortunatly I don't keep the pc on 24/7 so I wanted to setup the recordings there and then and also check if there are conflicts.

This program just enabled me to by-pass the process of opening IE, navigating to tivoweb, clicking 'search', typing in the programme title, selecting the right programme, selecting the episode and then clicking record!! It also does a keyword search when the title is not found.

note to users - if a programme is conflicting with itself then you know it is already in the todo list!
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #7 ·
Hi starbug1234,

I'm not sure exactly what the problem is there, but the error is coming from the original tivoweb code. "channum" is defined in the conflicts function. Do you get this error for all attempts at setting up the recording or just this specific show?

If you do a normal search for that program with tivoweb do you get the same error?

Shane.
 

·
TiVoer since 11/2000
Joined
·
6,341 Posts
Originally posted by dialanothernumb
The advantage of Shanes module is that it places recordings in the scope of Endpad (which doesn't work with Manual Recordings)
Doesn't it?

I don't use manual recordings, so I've never tried, but I don't see why it wouldn't?
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #9 ·
startbug1234,

I've figured out the problem. Its trying to make a recording from a channel you don't recieve ( trying to record BBC2 instead of BBC2NTH )

I'll make the modifications tonight and post the update.

Shane.
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #10 ·
Originally posted by sanderton
Doesn't it?

I don't use manual recordings, so I've never tried, but I don't see why it wouldn't?
Sorry Stuart, I guess I mixed up the softpad thread saying that it ignored manual recordings with endpad :( (though I haven't actually tried endpad with manual recordings...)

Shane.
 

·
Registered
Joined
·
334 Posts
Endpad and manual recordings do work okay... I'm sorry... I just had a look at my endpad log and realised that for some reason endpad had stopped working. It was a bit weird. I ran ps ax, didn't see endpad, so assumed it had died and started it again only to see the message in bash that endpad was already running. The log looked stuck.
My remedy: deleted the log and reinstalled endpad.

Sorry for the duff view.

One thing I have noticed as an advantage of the manual recording via DG is that when the guide data runs out for say the bbc, you can still record a manual recording. There was a film on C4 for 29th November (A Town Like alice) which wasn't in the tivo, but was in DG. (Not too happy that the guide data from Tribune doesn't go 10 days ahead....)

I presume the only risk there is that whilst DG looks further ahead, the schedule futher ahead is more likely to be changed...
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #13 ·
I've uploaded a new version which should fix the bug that starrbug1234 was getting

starbug1234, please confirm
 
G

·
This is absolutely great.
But is it possible to get it to open the default browser (I use Opera), instead of using Internet Explorer all the time (which I can't stand).
 

·
TiVoer since 11/2000
Joined
·
6,341 Posts
Originally posted by dialanothernumb
(Not too happy that the guide data from Tribune doesn't go 10 days ahead....)
My C4 data runs until the 29th am, while Digiguide runs to three days later. As Tribune data has to be passed to TiVo, processed, then uploaded to your TiVo and indexed before it appears, while Digiguide data is instantly available, that sounds about right.
 

·
UK TiVo Tweaker
Joined
·
336 Posts
Discussion Starter · #17 ·
Originally posted by devoiddroid
This is absolutely great.
But is it possible to get it to open the default browser (I use Opera), instead of using Internet Explorer all the time (which I can't stand).
I've modified the vbs file that goes in your digiguide directory so that it should open up in your default browser (attachment).

I don't have any other browser installed so if you could test it and it works i'll make it a permanent change in the first post.

Cheers,

Shane

P.S. delete the .txt from the file name otherwise it won't work.

EDIT: Attachment removed, now in new version
 
1 - 20 of 350 Posts
Top