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: 
mitchstein
Roku Guru

Re: json format help

One of the errors it is listing is "missing required episode thumbnail" I looked and it is there, I checked the url and it works, so I am thinking maybe in addition to being context sensitive it is also order sensitive. And without a working example, that is simply impossible to figure out. Short of trying every possible place until works or just getting lucky trying random placement. Plus it takes the system like two hours to generate the more detailed error log. It's like hacking a password using a wardialer.. lol
http://www.TVByDemand.com
0 Kudos
belltown
Roku Guru

Re: json format help

According to the specs:

"seasonnumber": "1",

should be:

"seasonNumber": 1,

Using camelCase, and an integer attribute, not string.
0 Kudos
belltown
Roku Guru

Re: json format help

^^^
The same applies to episodeNumber.
0 Kudos
belltown
Roku Guru

Re: json format help

And you're missing 4 required properties from your episode object (easier to spot now that you have code tags and indentation)

It's all in the specs https://github.com/rokudev/feed-specifications/blob/master/direct-publisher-feed-specification.md

The example in the spec:


{
"id": "1509428502952",
"title": "The Amazing First Episode Title",
"content": {
...
},
"thumbnail": "https://example.org/cdn/thumbnails/1509428502952/1",
"episodeNumber": 1,
"shortDescription": "Marvelous episode description"
}
0 Kudos
belltown
Roku Guru

Re: json format help

Unfortunately, even if you do read the specs, there are some obvious errors in them, which can make it understandably difficult to make progress.

For example, the spec states that seasonNumber is an Integer:


seasonNumber integer Required Sequential season number. E.g.: 3 or 2015.


Yet their example below that statement uses a string:


{
 "seasonNumber": "1",
 "episodes": [
   ...
 ]
}


And Roku's example for the "episode" object is also missing a required attribute: releaseDate.

I can understand why you're pulling your hair out. From what I can tell though, I'd go with what the spec says for the object descriptions, bearing in mind that Roku don't test or verify their documentation examples.
0 Kudos
mitchstein
Roku Guru

Re: json format help

I tried it as an integer, no quotes... when I submitted the feed it said that it was missing or less then zero so I put quotes around the numbers.. still waiting for the feed to report error details...

The docs did include a "dateadded" designation and I did include that between the episode brackets for each video. Yet it says it is missing... 
 "dateAdded": "2016-03-03T12:35:13+00:00",

right under the "id" designation for each episode, that is why I am thinking that the order is important. whereas the order is not important if it was a "video" as opposed to a "series".. (I'm getting better at keeping it all lowercase, lol)..

it actually says "invalid date format" I checked it and it is the same format I used for the video format that is working on my other channels. I'm going to pull an all nighter, I am determined to get this working or at the very least make some forward progress. As I have suspected, the errors I am making are minor errors common to me needing a second set of eyes and brain to catch. What makes it difficult is the amount of time that has to pass before getting results. In the back of my mind I keep saying there has got to be an easier, better, more efficient way. Then I only hope the work I am doing now will help others in the future...
http://www.TVByDemand.com
0 Kudos
mitchstein
Roku Guru

Re: json format help

Which four am I missing?

"episodes": [{
                    "id": "2085",
                    "title": "S1E12 The Hanging Posse",
                    "content": {
                        "dateAdded": "2016-03-03T12:35:13+00:00",
                        "videos": [{
                            "url": "http://www.tvbydemand.com/...../finished.ism/manifest",
                            "quality": "SD",
                            "videoType": "SMOOTH",
                            "duration": "3623",
                            "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                            "episodenumber": "12",
                            "shortDescription": "S1E12 The Hanging Posse"
                        }]
                    }



The six you listed in the example are there... I'm missing what your saying...
http://www.TVByDemand.com
0 Kudos
belltown
Roku Guru

Re: json format help

You only have id, title, and content. You also need thumbnail, episodeNumber, releaseDate, and shortDescription. https://github.com/rokudev/feed-specifications/blob/master/direct-publisher-feed-specification.md#ep...
0 Kudos
belltown
Roku Guru

Re: json format help

And they need to be properties of the episode object, not the content object.
0 Kudos
mitchstein
Roku Guru

Re: json format help

Those need to be repeated outside of the content brackets? because they are in there?
except "releasedate", I am missing that one.
But I also figured out the date error. Everywhere else you have to use that funky date format "2015-11-11T22:21:37+00:00" but for the "dateadded" it is supposed to be mm/dd/yyyy

I think I see what you mean, in the series those things are missing...
Gonna work on these things now...

http://www.TVByDemand.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.