Roku Direct Publisher

Roku Direct Publisher - the easiest way to create a great TV experience. Learn more about how to create a Roku channel and share your experiences with others.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
newchannel
Roku Guru

Where does it go in the json?

I am trying to add a credit object for the actors roles, external ID for imdb info and figure out why I can't get my short description to show up. These are for "movies". When I open the channel and  see the images of the movies, it shows only the name of the movie and not the short description. When I choose the movie, it goes to it's own poster page and I see the description and the * to click to read all of the description.

1. Is the short description suppose to display on the home screen beneath the channel logo when the movie is highlighted using the remote? Trying to find out which screen the short description is suppose to display.

2. Where to add the external ID for imdb info?

3. Where to add the credit object?

I've attempted to add but I think I must be adding the object in the wrong place.

Thanks for the tips.

{
"id": "movies07",
"title": "movie title",
"shortDescription": "added a short description here",
"longDescription": "have my longer description of the movie and info etc here",
"thumbnail": "http://xxxxxxxxxxx/800x450.png",
"genres": [
"comedy"
],
"tags": [
"comedy"
],
"releaseDate": "1936-12-17",
"content": {
"dateAdded": "2018-01-06T14:14:54.431Z",
"captions": [],
"duration": 4125,
"adBreaks": [
"00:00:00",
"00:00:53"
],
"videos": [{
"url": "http://xxxxxxxxxxxxxxx.mp4",
"quality": "HD",
"videoType": "mp4"
}]
}
}
],
http://www.victoryNOWfilmsandtv.com
0 Kudos
5 REPLIES 5
Baradanikto
Roku Guru

Re: Where does it go in the json?

These types of problems occur when you try to code a feed file manually. There are automated solutions for feed generation. In the interim, pay close attention to the Json spec and you should be able to get this to work.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
newchannel
Roku Guru

Re: Where does it go in the json?

I located the following example. The only difference in this from mine is I have the arrangement of where I have objects placed. Does the location of the objects make a difference on what works and what doesn't?

{
   "id": "1509428502952",
   "title": "Sample Movie",
   "content": {
       ...
   },
   "genres": [
       "drama",
       "comedy",
       "horror"
   ],
   "thumbnail": "https://example.org/cdn/thumbnails/1509428502952/1",
   "releaseDate": "2016-01-01",
   "shortDescription": "Incredible movie description",
   "longDescription": "Even more incredible and longer movie description",
   "tags": [
       "amazing",
       "drama",
       "comedy",
       "horror"
   ]
}
http://www.victoryNOWfilmsandtv.com
0 Kudos
Baradanikto
Roku Guru

Re: Where does it go in the json?

If you can provide me with your complete Json feed file, I can run it through my software to determine if your file is syntactically correct.
FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
rahulasist
Visitor

Re: Where does it go in the json?

The json package provides 
Decoder

 and 

Encoder

 types to support the common operation of reading and writing streams of JSON data. The 

NewDecoder

 and 

NewEncoder

 functions wrap the http://golang.org/pkg/io/#Reader and http://golang.org/pkg/io/#Writer interface types.

func NewDecoder(r io.Reader) *Decoder
func NewEncoder(w io.Writer) *Encoder

Here's an example program that reads a series of JSON objects from standard input, removes all but the 
Name

field from each object, and then writes the objects to standard output:

package main

import (
   "encoding/json"
   "log"
   "os"
)

func main() {
   dec := json.NewDecoder(os.Stdin)
   enc := json.NewEncoder(os.Stdout)
   for {
       var v map[string]interface{}
       if err := dec.Decode(&v); err != nil {
           log.Println(err)
           return
       }
       for k := range v {
           if k != "Name" {
               delete(v, k)
           }
       }
       if err := enc.Encode(&v); err != nil {
           log.Println(err)
       }
   }
}
0 Kudos
newchannel
Roku Guru

Re: Where does it go in the json?

On my shortformVideos, I have a short description that shows up on the screen under the video title. Without seeing any screenshots of "movies" object,  I am guessing a short description should also show up in the same fashion...but my short description is not displaying on the home screen for the movies object. The credit I tried to add also didn't show up so I've certainly got something in the wrong place or missing something. 

Will give it a whirl again...

Thank you.
http://www.victoryNOWfilmsandtv.com
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.