Add Date Released

We have everything working great, but now we need to add Date Released to the detailed page. We have it in the XML file and we can make the datereleased tag populate the “TITLE” but we don’t see in the Date Realeased field on the detailed page.

We are assuming we have to enable this to be displayed?

We have disabled the StarRating, but we can’t find then datereleased.enabled(true) type of code.

Can someone tell us where to enable this?

THANKS

You don’t explicitly enable/disable the release date. It will be displayed based on the values of the contentType and releaseDate attributes of your content-meta-data object. releaseDate can be an arbitrary string. The most common values for contentType that will display the release date are “movie” or “episode”. Other possible values are documented in section 3.3 of the Component Reference.

Going back to the basics, Starting with the Example VideoPlayer

We added; in CreateObject(“roAssociativeArray”)
o.ReleaseDate = “”

Then, in showList = xml.GetChildElements()
we added;
item.ReleaseDate = validstr(curShow.releasedate.GetText())

This displayed nothing.

Then we changed
item.Title = validstr(curShow.releasedate.GetText())

On the detailed page in the TITLE area, it displayed, 01/10/2011 (our date)
This proves, the XML file is passing the date, but it will not display on the detailed page???

And what is the value of your contentType attribute?

It might also be worth double checking that you aren’t overriding the contentType by calling SetDescriptionStyle() on your springboard.

You could also try printing the contents of releaseDate to the debug console at the time the springboard is populated to be sure the value is actually there.

item.ContentType = “episode”

Is this correct?

“bbakernc” wrote:
item.ContentType = “episode”

Is this correct?

That’s right. So the next thing is to confirm those values are not being changed between the time you parse the XML and the time you actually populate the springboard.

Being new to this progaming language, where would be a good place to start looking.

I have search the Detailed/Springboard file and releasedate was not found.

I think you need to add a line for SetDescriptionStyle to either “movie” or “video” to get it to show the releasedate
By default is sets itself to “generic” if it’s not specified.

“audio”: All tags on audio screen above are substituted with Content Meta-Data.
“movie”: All tags on the video screen above are substituted with Content Meta-Data
“video”: All tags except and are on the video screen above are replaced with Content Meta-Data.
“generic”: Only the and tags on the video screen above are replaced with Content Meta-Data.

Function preShowDetailScreen() As Object
port=CreateObject(“roMessagePort”)
screen = CreateObject(“roSpringboardScreen”)
screen.SetDescriptionStyle(“movie”)
screen.SetStaticRatingEnabled(FALSE)
screen.SetMessagePort(port)
return screen
End Function

“destruk” wrote:
I think you need to add a line for SetDescriptionStyle to either “movie” or “video” to get it to show the releasedate
By default is sets itself to “generic” if it’s not specified.

“audio”: All tags on audio screen above are substituted with Content Meta-Data.
“movie”: All tags on the video screen above are substituted with Content Meta-Data
“video”: All tags except
You should only need to call SetDescriptionStyle if the ContentType of the item being displayed doesn’t accurately set it intrinsically. With a ContentType of “Episode”, the springboard should display release date without the need to call SetDescriptionStyle.

It’s a bug then because in actual practice, even with the content type of episode it acts as generic, with only the title and description being populated like the componentguide says it does.
I just know because I had to set the content to episode, and the descriptionstyle to movie to get it to display the runtime of a video file. Generic and ‘unspecified’ descriptionstyle prevent the runtime from displaying too.

“destruk” wrote:
It’s a bug then because in actual practice, even with the content type of episode it acts as generic, with only the title and description being populated like the componentguide says it does.
I just know because I had to set the content to episode, and the descriptionstyle to movie to get it to display the runtime of a video file. Generic and ‘unspecified’ descriptionstyle prevent the runtime from displaying too.
My iTunes Podcasts channel uses a content type of “episode” and works as expected, without any calls to SetDescriptionStyle. Can you post some of your code that isn’t working?

Here’s a relevant thread I read a while ago.

viewtopic.php?f=34&t=26921&p=166902&hilit=setdescriptionstyle#p166902
ROKUKevin posted
"The “Length” content meta-data parameter will display on both “video” and “movie” description style poster screens. Please check that the value of your “Length” parameter is an integer in seconds. The screen takes care of displaying in hour/min format, but you need to supply the Length parameter as an Integer in seconds.

Release Date and rating only display on the “movie” description style, they do not display on the “video” description style.

–Kevin"

Which would indicate to me that you’re not supposed to be able to get the Release Date to display unless you explicitly specify the “movie” description style somewhere for the springboard screen.
Or perhaps I misinterpreted what he wrote?

“destruk” wrote:
Here’s a relevant thread I read a while ago.
viewtopic.php?f=34&t=26921&p=166902&hilit=setdescriptionstyle#p166902
ROKUKevin posted
“The “Length” content meta-data parameter will display on both “video” and “movie” description style poster screens. Please check that the value of your “Length” parameter is an integer in seconds. The screen takes care of displaying in hour/min format, but you need to supply the Length parameter as an Integer in seconds.
Release Date and rating only display on the “movie” description style, they do not display on the “video” description style.
–Kevin”
Which would indicate to me that you’re not supposed to be able to get the Release Date to display unless you explicitly specify the “movie” description style somewhere for the springboard screen.
Or perhaps I misinterpreted what he wrote?
He may be referring to the SetDescriptionStyle method specifically, but again, my podcast channel is using “episode” and “audio” ContentTypes as the only indicator for the springboard, and works exactly as expected. I have no calls to SetDescriptionStyle anywhere in my code, so I’m inclined to think there’s something specific to your code that’s causing the behavior you’re seeing.

ah…I think we got it now. The trouble is with the xml. ContentType is set on an individual item basis - so you’re correct it’s being overwritten.
The videoplayer example sets the content type to Talk for some items. Talk isn’t an “episode”.
The default in the XML parser is episode - so you should be able to remove the lines for contenttype in all the xml files you use and then it’ll set them to the default value.

'Set Default screen values for items not in feed
item.HDBranded = false
item.IsHD = false
item.ContentType = “episode”

So why does the videoplayer example even have it using a “talk” content type in the xml?
Valid values = movie, episode, season, series, audio. Missing attribute = NotSet

Hey, I hate to hijack this, but is there any way to hide the runtime in the same way as you hide the star ratings? I’ve tried everything!

To hide the runtime, set it to invalid.