Sample Direct Publisher Feed

If using our feed url or even if i take the example Roku json link ( https://api.myjson.com/bins/4tu28

) and use that for my feed…In the publishing tools section it shows that everything is passing except the Categories so I can’t publish as it’s greyed out and red exclamation at categories…Se image below.

[upload|b1Ek9DUZ5wMdn4gdxjKZKw==]

If I go into the categories section to add categories manually it will report error:
Category “Roku Recommends” is missing either tags or a playlist

Do you have a category for “Roku Recommends” either entered in the Manually Add Categories field or in your json/RMSS feed?

Seems you do and it doesn’t have any tags or videos to go into it, leaving it empty. Possibly that’s causing an error.

“Pasnow” wrote:
Do you have a category for “Roku Recommends” either entered in the Manually Add Categories field or in your json/RMSS feed?

Seems you do and it doesn’t have any tags or videos to go into it, leaving it empty. Possibly that’s causing an error.

Yes, the feed should work unless you have manually added some category in the Direct Publisher form. The JSON content automatically adds categories for you so you dont have to do it in the fields as you walk through the direct Publisher.

I had mine not pull it from the feed, and my Categories was red out saying no categories entered. I ended up manually using them including tags. Could be an alright method do use it, emphasizing tags more. Not a huge deal, I got it going I think, just wondering if anyone else encountered something similar. Not trying to hijack the thread from a3mediallcs post tho.

Just to repeat, that error is showing if I use 's JSOn file url. And the other examples posted to this thread.

“a3mediallc” wrote:
Just to repeat, that error is showing if I use 's JSOn file url. And the other examples posted to this thread.
Can you do a screenshot of what it says when you click on “Categories”? I think you must have something custom there that is not reflected in the JSON file.

{"providerName":"TVByDemand Productions",
"lastUpdated":"2017-03-17T7:34:21+00:00",
"language":"en",
"movies":[{"id":"1","title":"24/7 Full Streaming",
"content":{"dateAdded":"2015-11-11T22:21:37+00:00",
"videos":[{"url":"http://www.tvbydemand.com/live/hls/ulive1/mixedmedia1.m3u8",
"quality": "SD",
"videoType":"HLS"}],
"duration":2408},
"genres":["sports","special","news"],
"tags":["24/7 streaming","misc","comedy","pro wrestling","music","documentaries","DIY","live tv"],
"thumbnail":"http://www.tvbydemand.com/images/streaming-tv-logo1%20copy.jpg",
"releaseDate":"2015-03-06","shortDescription":"Channel 1 Streaming TV MISC.",
"longDescription":"A little bit of everything from Documentaries, how tos/DIY, Pro Wrestling, Hockey Live Music and much much more always fresh and new"},

This is the json for a live 24/7 channel I run, it never crashes the channel if the feed is inactive..
I’ve asked two questions about a 24/7 feed that have yet to be answered:
1: should the duration be set to zero or a really high number since it plays 24/7
2: adbreaks for a 24/7 feed do I have list every 15 min interval as adBreaks IE 00:15:00, 00:30:00, 00:45:00, 01:00:00, 01,15:00 etc etc or is there syntax to use to designate a break every so many minutes, maybe like “adbreaks” [“int=00:15:00”] if there is not what is the maximum number of adbreaks per video/ per json file?
[table][tr][td][/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[/table]

With the recent notification of Legacy SDK channels needing to be updated I am having an issue with understanding the JSON file/URL. I have a file and it has gone through a JSON validator as being valid. I have uploaded it to my webserver that is used for my Roku channel, but on feed status it shows that it is unable to retrieve the URL. Am I supposed to be pointing to the .json file (which is what I am doing) or what am I supposed to use for the feed URL?

Alot of people seem to be having trouble with the json file when they’re self hosting it. Without seeing it, or the url path, filename extension etc. it’s difficult to troubleshoot. I always suggest trying myjson.com and pasting your feed in there. If that works, then you’ll know its related to the way the json file is hosted or the url path etc

how do I get an ID for the TV Show? Does each episode need a different ID?

“Pasnow” wrote:
I always suggest trying myjson.com and pasting your feed in there. If that works, then you’ll know its related to the way the json file is hosted or the url path etc
Not necessarily. When you use myjson.com you’re not uploading a file, but copying text from the clipboard into a web form, which myjson.com uses to create its own file with its own encoding/line endings, etc.

When you upload an actual file from your computer to a web host, then that’s the file that will be hosted. If that file is not compatible with what Direct Publisher requires, the file may not work when hosted on your web server, but may appear to work when using myjson.com. DP seems to require UTF-8 encoding without a Byte Order Mark (BOM). If you try to upload a file that uses a different encoding, such as UTF-16, or a file that contains a UTF-8 BOM, then DP will reject it. Even though mysjon.com may accept the file, the real problem is with the file itself and the way it’s encoded, and not with the web host.

For an example where this happened, see this thread: https://forums.roku.com/viewtopic.php?f=100&t=100756

“UMRTV” wrote:
how do I get an ID for the TV Show? Does each episode need a different ID?
That’s just for your records. Just start with “000001” or something unique to go by. If you have Series/Episodes probably something like “ShowSeinfeldS1E3” (For the show, season, and episode #)

I’m writing some software to manage json feeds. As part of my development, I tried to load the sample feed mentioned at the beginning of this post. I got an exception in my code, because I defined the ‘bitrate’ to be an integer (like it says in the json feed specifications). However, the value given in the sample is a float. Either the spec is wrong, or, the sample is wrong. Can someone from Roku comment on this?

The bitrate value is an integer not a float. As you know, floats include decimal points which a bitrate value when presented in kbps would not.

Mediadisconnect,

Thanks for the reply. However, I’m still a bit confused since the spec says that the field is an ‘integer’, but, the sample show it as ‘1328.0’.

When I view the bitrate element on the sample feed it shows 1328. Maybe something on your end is changing the value but it is definitely an integer. Good luck with your app.

I have a Question: I have HLS Link that 24/7 playing my channels, Which I needs to make it available in Roku. when I am using this HLS link It do not accept. Wondeing if anyone know any example (much appreaciated) where we set instead of single movie file link can we use HLS link in URL Feed (JASON file) … Please advice

Much Appreciated

Just troubleshooting, how does it ‘not accept’. Is it when you upload the json or does the video just never play. Is it just a generic error on the json feed upload?