DABDig Forums
register | my profile | my bookmarks | my notifications | search | faqs
Show topics:     
   All Forums
    DigiGuide
        Small bugette in parameter passing?
 
  Jump to:     
Bookmark This Topic | E-mail This Topic To A Friend   Previous Topic   Next Topic
Author Topic
James Heath
Posts: 30
From:
Registered: 28/12/2004 18:39
Show this author's profile    Email the author of this post
Posted: Wednesday, July 27, 2005 - 23:34 Edit this message  Reply to this message with quotes  (IP Logged)

Paul,

I may have just found a little bug in passing out the parameters - not quite sure what is going on, but for example:

the programme description in digiguide is:

Is it so wrong to want to find happiness second time around? For three couples, the answer is apparently a resounding "yes". Between their 21 stepchildren, three sets of divorced parents are all facing resistance and hostility as a reaction to their intention to remarry. The impending wedding days are fraught with worry. Will the children participate? Will they try to sabotage the ceremony? And what will happen once the vows have been exchanged? An astonishingly frank portrayal of the modern "blended family", Stepkids: Don't Ruin My Big Day follows the build-up to three potentially explosive weddings, and highlights the unhappiness and anger harboured by the children who struggle to cope with their parents' new lives.

the dabdig log shows:

27/07/2005 21:41:31 - 2.53b17 - "RECORD" "Channel 4" "04" "Stepkids" "2005" "07" "27" "21" "00" "60" "Don't Ruin My Big Day. Is it so wrong to want to find happiness second time around? For three couples, the answer is apparently a resounding yes. Between their 21 stepchildren, three sets of divorced parents are all facing resistance and hostility as a reaction to their intention to remarry. The impending wedding days are fraught with worry. Will the children participate? Will they try to sabotage the ceremony? And what will happen once the vows have been exchanged? An astonishingly frank portrayal of the modern blended" "family, Stepkids: Don't Ruin My Big Day follows the build-up to three potentially explosive weddings, and highlights the unhappiness and anger harboured by the children who struggle to cope with their parents' new lives. (Subtitles)" "Documentary"

27/07/2005 21:41:37 - 2.53b17 - Waiting in background until just after programme scheduled to end ...

The quote marks in the program description mess up the parsing in your log, and mess up the parameter passing out to my filing program.... but it could be tricky to fix I guess. The problem I seem to get is that the category field ($CT) ends up set wrong (unfortunately I deleted the evidence for this one - stupid - I will gather evidence the next time it mucks up, or the next time I spot a description with a " in it....)

Any ideas?

James Heath
Posts: 30
From:
Registered: 28/12/2004 18:39
Show this author's profile    Email the author of this post
Posted: Wednesday, July 27, 2005 - 23:39 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

I've just spotted the fact that the first set of quotees around the "yes" is cleaned out perfectly, but thing trip up at the 2nd set....

Interesting...

I'm fairly sure that in this example the parameter $CT came out as:

"family, Stepkids: Don't Ruin My Big Day follows the build-up to three potentially explosive weddings, and highlights the unhappiness and anger harboured by the children who struggle to cope with their parents' new lives. (Subtitles)"

What I guess would be ideal is if all quotes from within descriptions (& titles etc for that matter) were just deleted....

thoughts?

thanks

James

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Thursday, July 28, 2005 - 08:38 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

The problem is that it is DigiGuide that is sending the command - and it has already gone wrong by the time that I get it.

I could put in a hack that sees an overlong category and so joins it to the description ...

It was disucssed over on the DG forums but it wasn't resolved ... I'll re-awaken it.

(for a one-off recording ... I could potentially parse it in the DABDig.dgmarker - i.e. when you schedule the event - but it is not a complete solution because it would not work for Daily/Weekly/Anytime).


Paul Webster

DABDig creator

James Heath
Posts: 30
From:
Registered: 28/12/2004 18:39
Show this author's profile    Email the author of this post
Posted: Thursday, July 28, 2005 - 09:17 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Paul,

Yes - I see what you mean. It's wierd that digiguide handles the 1st set of quotes, but not the 2nd...

Would another way of dealing with it be to recognise that you'd been passed too many parameters - it looks like you expect 12, and on these occasions you get 13 (or possibly more?). If you assume the slip up always occurs in the description (paramater 11), could you always use parameters 1 thru 11 and the last parameter & ignore any in the middle?

If that's a faff, you could just use parameter 13 as the description if it exists, otherwise use 12.

This would mean that you'd lose part of the description, but that's not a big (very occasional) loss.

Just my 2p!

James

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Thursday, July 28, 2005 - 12:45 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

As it happens ... it is a bug in VBScript.

It makes a mess of the embedded quotation mark if there is a space in there as well!

"a "b" c"

would be converted by VbScript command line parser to

a b c

but

"a "b c" d"

gets munged to 2 parameters

a b

and

c d

I've got a hack in mind - and will try and get it done over lunch.


Paul Webster

DABDig creator

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Thursday, July 28, 2005 - 18:56 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

In fact - I can repeat it from DOS without using VBScript of DigiGuide.

Anyway - I've written a work-around but I am having a go at persuading DG to change their code to provide a way to convert the double-quote to single-quote.

Given that there are very few programmes with a double-quote around more than one word (you can't search for them from the DG GUI ...) ... I plan to hold off releasing this for a bit.

I've updated the thread that I linked to above.


Paul Webster

DABDig creator

James Heath
Posts: 30
From:
Registered: 28/12/2004 18:39
Show this author's profile    Email the author of this post
Posted: Friday, July 29, 2005 - 09:57 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Paul,

No problem - it doesn't cause huge headaches. The best solution would undoubtedly be for digiguide to patch the descriptions.

thanks for your work! James

Paul Webster
Posts: 371
From: UK
Registered: 22/05/2004 19:27
Show this author's profile    Email the author of this post    Visit the author
Posted: Wednesday, January 11, 2006 - 22:12 Edit this message  Reply to this message with quotes  Delete this message  (IP Logged)

Just to close this one off - I did include some code in DABDig 2.55 to get around this problem.

Basically I change the way that I send the command line to DABDig - so that it gets encoded like a URL (with %xx to replace special characters).

In the DABDig logging and tracing you won't see that because I convert it back again to regular stuff before writing it to dabdig.txt ... your challenge is to find a programme with real quoted sentence in DigiGuide.

(I have tested it with my own data and it was fine)


Paul Webster

DABDig creator

  Previous Topic   Next Topic

Admin/Moderator: Thread Management