bbakernc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
08:13 AM
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
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
15 REPLIES 15
![RokuChris RokuChris](http://wwwimg.roku.com/static/imageresources/purple_logo.png)
![Roku Employee Roku Employee](/html/@AD43EB727E6141118C965DC7B9513EEA/rank_icons/rokuemployeerankimage.png)
Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
08:43 AM
Re: Add Date Released
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.
bbakernc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
08:57 AM
Re: Add Date Released
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???????
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???????
![RokuChris RokuChris](http://wwwimg.roku.com/static/imageresources/purple_logo.png)
![Roku Employee Roku Employee](/html/@AD43EB727E6141118C965DC7B9513EEA/rank_icons/rokuemployeerankimage.png)
Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
09:05 AM
Re: Add Date Released
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.
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.
bbakernc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
10:52 AM
Re: Add Date Released
item.ContentType = "episode"
Is this correct?
Is this correct?
![RokuChris RokuChris](http://wwwimg.roku.com/static/imageresources/purple_logo.png)
![Roku Employee Roku Employee](/html/@AD43EB727E6141118C965DC7B9513EEA/rank_icons/rokuemployeerankimage.png)
Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
11:28 AM
Re: Add Date Released
"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.
bbakernc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
11:31 AM
Re: Add Date Released
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 have search the Detailed/Springboard file and releasedate was not found.
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2011
05:01 PM
Re: Add Date Released
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 <Directors> and <Ratings> are on the video screen above are replaced with Content Meta-Data.
“generic”: Only the <Title> and <Description> 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
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 <Directors> and <Ratings> are on the video screen above are replaced with Content Meta-Data.
“generic”: Only the <Title> and <Description> 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
![TheEndless TheEndless](http://roku.permanence.com/images/sandman_endless_100x100.gif)
TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011
06:26 AM
Re: Add Date Released
"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 <Directors> and <Ratings> are on the video screen above are replaced with Content Meta-Data.
“generic”: Only the <Title> and <Description> 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
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.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2011
09:15 AM
Re: Add Date Released
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.
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.