INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: marko on October 02, 2010, 09:17:16 am

Title: Anyone using TVInfo() expressions?
Post by: marko on October 02, 2010, 09:17:16 am
Could someone shed a little light on what information: tvinfo(timedisplay) and tvinfo(timedisplaynoonnow) should return?

I tested these on a 30 second video clip and both came back with "03:59" and for the life of me, I cannot suss out why!!

Some information regarding "... special handling for programs on now" would be appreciated too.

Anyone?
Title: Re: Anyone using TVInfo() expressions?
Post by: Matt on October 02, 2010, 02:23:53 pm
I'll post the details of this once I look in the code Monday.

Basically we use these internally to show something like "30 minutes" instead of "30:00".
Title: Re: Anyone using TVInfo() expressions?
Post by: Matt on October 04, 2010, 02:51:55 pm
TVInfo(TimeDisplay)

Shows the start time of a program using the system time format, but uses "Showing" if the program is on now.

TVInfo(TimeDisplayNoOnNow)

Shows the start time of a program using the system time format.


TV programs use the field "Date Recorded" to store the program time.  The "Date" field is the original air / production date.
Title: Re: Anyone using TVInfo() expressions?
Post by: marko on October 04, 2010, 03:05:02 pm
Thanks Matt, that helps.

That'll be all 44 functions written up. Hard to believe, but the re-write looks like it could be ready by the end of the week!

-marko
Title: Re: Anyone using TVInfo() expressions?
Post by: JimH on October 04, 2010, 03:39:26 pm
It's beautiful!  I've been following your relentless progress.  Thanks a lot, Marko!
Title: Re: Anyone using TVInfo() expressions?
Post by: rick.ca on October 04, 2010, 07:07:12 pm
Quote
It's beautiful!  I've been following your relentless progress.  Thanks a lot, Marko!

It really is. I just found it (http://wiki.jriver.com/index.php/Media_Center_expression_language-NEW) (I trust appropriate links will be added to the Wiki when it's done). Nice work, Marko! I really appreciate that examples not only show the proper syntax, but offer interesting illustrations of how they might be used.