Signed programmes

General Discussion

Re: Signed programmes

Postby krayzeekev » Thu Apr 07, 2011 10:41 pm

Tcm2007 wrote:
EndPad must be simple, I wrote it and I can't code!


Maybe it's just that my brain can't do tcl. It can do C, C++, (even, when pushed and with much shouting and objection) Objective-C, perl, javascript, python (again, some shouting about whitespace occurs), html, css, ASP & PHP make sense but I don't "do" them. BUT I look at tcl code and it's pure insanity. Don't know why. It's just lots and lots of variables and no action. One day maybe I'll try grok it but so far I see it and assume whoever did it was either on acid or very bright :-)
krayzeekev
OzTiVo Team
OzTiVo Team
 
Posts: 60
Joined: Mon Feb 21, 2011 5:22 pm

Re: Signed programmes

Postby irrelevant » Thu Apr 07, 2011 10:46 pm

krayzeekev wrote:
Tcm2007 wrote:
EndPad must be simple, I wrote it and I can't code!


Maybe it's just that my brain can't do tcl. It can do C, C++, (even, when pushed and with much shouting and objection) Objective-C, perl, javascript, python (again, some shouting about whitespace occurs), html, css, ASP & PHP make sense but I don't "do" them. BUT I look at tcl code and it's pure insanity. Don't know why. It's just lots and lots of variables and no action. One day maybe I'll try grok it but so far I see it and assume whoever did it was either on acid or very bright :-)


Most languages are fundamentally the same. The majority of my career has been programming in a variant of COBOL, of all things, but I've coded up fairly major things in C and PHP without issue.

TCL is fairly sane compared to, say, Perl, which, whilst it can be coded coherently, can also be totally mad:
Code: Select all
#!/usr/local/bin/perl -s-- -export-a-crypto-sardine -RSA-6-line-PERL-fish
'\~.         __......--------~~~~~~~~~~~~~~~~~~~~~~~~-------....____
 \  ~.__---~';($k,$n)=@ARGV;$m=unpack(H.$w,$m."\0"x$w),$_=`echo  "[o~~-._
  \  ]s!16do$w 2+4Oi0$d*-^1[d2%Sa2/d0<X+d*La1=z\U$n%0]SX$k"[$m*]"\E[     ~.
  /  ]s!szlXx++p"|dc`,s/^.|\W//g,print pack('H*',$_)while read(STDIN,$m," .'
 /  .-~~--.._" +($w=2*$d-1+length($n||die"$0 [-d] k n\n")&~1)/2);'  __..-~
 ,/.~         ~~~~----........._______________________.......-----~~'
irrelevant
AltEPG Team
AltEPG Team
 
Posts: 223
Joined: Wed Feb 16, 2011 12:06 am
Location: Salford, UK

Re: Signed programmes

Postby krayzeekev » Thu Apr 07, 2011 10:58 pm

Yeah, you can write very bad perl but if you look at our guide code it's very much in the pascal/c style. And all of them have been turned ugly by somebody. Go back and check out the results of the Obfuscated C Code Contest. There's some awesome stuff in there. There's one program that calculates PI based on the shape of the source code! But when I look at tcl, I always see more punctuation than code. I'm sure I'm wrong. It's just that I've never had a need to really get into it. And the only examples I really have a need to look at are TiVo ones where you complicate the language with having to deal with the complexities of the MFS layout and code libraries that may not have always been willing participants in the process.
krayzeekev
OzTiVo Team
OzTiVo Team
 
Posts: 60
Joined: Mon Feb 21, 2011 5:22 pm

Re: Signed programmes

Postby spitfires » Fri Apr 08, 2011 7:01 am

This is quite a good tutorial if you can work you're way through it all:
http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html

Like most languages, the basics are easy to grasp but when it comes to actually writing a prog then it gets tricky! :)

Perhaps the hardest thing to get your head around is the "upvar" command - think "pass by reference" - but if you've used most modern languages then it's simple once you think about it.
spitfires
Valued Contributor
Valued Contributor
 
Posts: 411
Joined: Tue Feb 15, 2011 3:29 pm

Re: Signed programmes

Postby spitfires » Fri Apr 08, 2011 7:06 am

Tcm2007 wrote:Which is why I think processing that data in the description so that it put the episode in a separate Series would be the way to go - no TiVo end mods required, and the default would be no flappy hands. If you wanted/didn't care you could add a separate SP for the signed version.

I agree - I've been annoyed on more than occasion to find that tivo has recorded the flappy hands version despite a later non-flappy version being available! :x

I've only got a 17" telly and to find the picture squashed into 2/3rds of that makes it impossible to watch. I think, on balance, I *would* rather miss it altogether!
spitfires
Valued Contributor
Valued Contributor
 
Posts: 411
Joined: Tue Feb 15, 2011 3:29 pm

Re: Signed programmes

Postby mrtickle » Mon May 16, 2011 8:23 pm

spitfires wrote:
Tcm2007 wrote:Which is why I think processing that data in the description so that it put the episode in a separate Series would be the way to go - no TiVo end mods required, and the default would be no flappy hands. If you wanted/didn't care you could add a separate SP for the signed version.

I agree - I've been annoyed on more than occasion to find that tivo has recorded the flappy hands version despite a later non-flappy version being available! :x


I've never properly been able to satisfy myself with a rational solution to this one. TiVo's core function of having Duplicate episodes using the 28-day rule, is really powerful and is what allows it to resolve clashes so well.

This is how I see it: say I have a SPs/WLs for programmes A and B and I've got A above B in the SP manager. A and B are both peak time and they clash. But B has another showing that doesn't clash with anything else, but it's in the middle of the night and it's signed. What do you want the SP to do?
(a) record it - the current behaviour. Having it as a Duplicate Episode allows this to happen. People who didn't have a clash with the first showing only get ONE recording. People are so annoyed by the flappy hands version they'd rather miss it entirely than watch the FHV are upset (assume there are only the two showings for the purposes of argument).
(b) record it - a possible new behaviour. Change the Episode so that it's not a duplicate! Indicate it's signed in the synopsis or title or the bits - doesn't matter how, any change makes it a different Episode. NB: It doesn't have to be a different series. But now, people who didn't have a clash with the first showing get BOTH the first recording and the FHV, and it could also make them miss something else as well! So they're upset.
(c) miss it - another possible new behaviour. You missed it because the signed version was in a different/orphan SP, C, which you didn't spot/don't know about/etc. More work for the poor people slaving away doing the data too. People who used to rely on (a) and don't mind the FHV are now upset.

(c) is actually already used where there are two distinct version of the same programme (Dr Who Confidential has short and long versions) but share episode titles.

With (a), the only people who are upset are the people who get an extra recording they don't like.

Perhaps you could have a kludge in scenario (a) and insert "[signed version at <datetime>]" or a similar predetermined text into the synopsis, appearing for both showings as they are the same Episode, and then use tivoweb/scripts to act on that to remove unwanted showings. This might be the best compromise and it can also be done at any time in the future.

-----

WRT Bits - Tivoweb lists: "CC Stereo Sub {In Prog} Class SAP Blackout Intercast {Three D} R Letterbox S V L D FV"

"Sub" is used for subtitled foreign language films with "burnt-in" subtitles on the broadcast.
"CC" means closed captioned *and* uk teletext subtitles effectively, so is the correct thing that tribune used for UK teletext subtitles, which by the way will still work from Sky digiboxes well after analogue switchoff. However it's rarely in the UK guide data as there's no point - people expect subtitles on virtually every programme and there's no benefit in putting it in listings.
"Letterbox" was used on widescreen movies in the analogue age. I sometimes saw this used, but really, what's the point now (!).
--
links to my TiVo logos, TivoWebPlus 2.1.b3 UK-20120818, Tracker v3.3.3 & v3.3.4 (17th Jun 2013), GDchecker v1.06b, Digiguide checker v0.4.3-rc5 and Autospace v1.65 can all be found in this post.
mrtickle
TVGuide Admin
TVGuide Admin
 
Posts: 3292
Joined: Sat May 14, 2011 1:46 pm
Location: Birmingham, UK

Re: Signed programmes

Postby mrtickle » Mon May 16, 2011 8:42 pm

Hmm. Actually I take some of that back, the Bits appears to be on the Showing, not the Program object. It would be possible to hijack one of them for the purposes of the kludge and set it on the signed Showings instead of, or as well as, adding text. "FV", anyone?
--
links to my TiVo logos, TivoWebPlus 2.1.b3 UK-20120818, Tracker v3.3.3 & v3.3.4 (17th Jun 2013), GDchecker v1.06b, Digiguide checker v0.4.3-rc5 and Autospace v1.65 can all be found in this post.
mrtickle
TVGuide Admin
TVGuide Admin
 
Posts: 3292
Joined: Sat May 14, 2011 1:46 pm
Location: Birmingham, UK

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 67 guests

cron