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

Re: JSON Feed and Converting Channels

Maybe this one will help you. I have this one currently loaded and Feed status is not giving any errors; - 5 items ingested successfully

{"providerName":"Acme Productions","language":"en-US","lastUpdated":"2016-06-15T22:21:37+00:00","movies":[{"id":"decbe34b64ea4ca281dc09997d0f23fd","title":"Live Gaming","content":{"dateAdded":"2016-06-15T22:21:37+00:00","videos":[{"url":"http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/decbe34b64ea4ca281dc09997d0f23fd/aac0cfc54ae74fdfbb3ba9a2ef4c7080/117_segment_2_twitch__nw_060515.mp4","quality":"HD","videoType":"MP4","bitrate":1328.0}],"duration":53,"trickPlayFiles":[{"url":"http://s2.content.video.llnw.net/lovs/images-prod/59021fabe3b645968e382ac726cd6c7b/media/decbe34b64ea4ca281dc09997d0f23fd/j5_.540x304.jpeg","quality":"HD"}]},"genres":["gaming"],"tags":["gaming"],"thumbnail":"https://blog.roku.com/developer/files/2016/09/thumbnail.png","releaseDate":"2016-06-15","shortDescription":"Watch the most popular game broadcasts."}],"series":[{"id":"1037510958109183094109r094809","title":"A Series About Channels","seasons":[{"seasonNumber":1,"episodes":[{"id":"6c9d0951d6d74229afe4adf972b278dd","title":"Let's Get Cookin'","content":{"dateAdded":"2016-06-15T22:21:37+00:00","videos":[{"url":"http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/6c9d0951d6d74229afe4adf972b278dd/bc227724e2854c6b93ad48d1feb39c16/roku_ep_115_segment_5_paula_nw_050515.mp4","quality":"HD","videoType":"MP4","bitrate":1328.0}],"duration":59,"trickPlayFiles":[{"url":"http://s2.content.video.llnw.net/lovs/images-prod/59021fabe3b645968e382ac726cd6c7b/media/decbe34b64ea4ca281dc09997d0f23fd/j5_.540x304.jpeg","quality":"HD"}]},"thumbnail":"https://blog.roku.com/developer/files/2016/09/thumbnail.png","episodeNumber":1,"releaseDate":"2016-06-15","shortDescription":"Paula Deen new and hilarious cooking and lifestyle show."},{"id":"7405a8c101ee4c9da312c426e6067044","title":"Ideas Worth Spreading","content":{"dateAdded":"2016-06-15T22:21:37+00:00","videos":[{"url":"http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/7405a8c101ee4c9da312c426e6067044/dc0d29c5dde34565a3be95987f2956fe/roku_ep_115_segment_1_ted_nw_050515.mp4","quality":"HD","videoType":"MP4","bitrate":1328.0}],"duration":71,"trickPlayFiles":[{"url":"http://s2.content.video.llnw.net/lovs/images-prod/59021fabe3b645968e382ac726cd6c7b/media/decbe34b64ea4ca281dc09997d0f23fd/j5_.540x304.jpeg","quality":"HD"}]},"thumbnail":"https://blog.roku.com/developer/files/2016/09/thumbnail.png","episodeNumber":2,"releaseDate":"2016-06-15","shortDescription":"TED is a nonprofit devoted to Ideas Worth Spreading."}]}],"genres":["special","food","educational"],"tags":["special","food","educational"],"thumbnail":"https://blog.roku.com/developer/files/2016/09/thumbnail.png","releaseDate":"2016-06-15","shortDescription":"The Paula Deen Channel."}],"shortFormVideos":[{"id":"37d290e03d894135b07c5e514cbad72d","title":"Fight Pass","content":{"dateAdded":"2016-06-15T22:21:37+00:00","videos":[{"url":"http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/37d290e03d894135b07c5e514cbad72d/dfd02160a5374c39967c105a8cfff3a1/roku_ep_115_segment_3_ufc_nw_051815.mp4","quality":"HD","videoType":"MP4","bitrate":1328.0}],"duration":52,"trickPlayFiles":[{"url":"http://s2.content.video.llnw.net/lovs/images-prod/59021fabe3b645968e382ac726cd6c7b/media/37d290e03d894135b07c5e514cbad72d/xUE.540x304.jpeg","quality":"HD"}]},"thumbnail":"https://blog.roku.com/developer/files/2016/09/thumbnail.png","shortDescription":"UFCTV gives you Live and On-Demand access to UFC events.","releaseDate":"2016-06-15"}]}  
0 Kudos
hpdean
Visitor

Re: JSON Feed and Converting Channels

Thanks, I was also able to get my categories working with the code below:
{"providerName":"Hope Point Church","language":"en-US","lastUpdated":"2017-02-07T18:12:32.125Z","tvSpecials":
 
 [{"id":"20170205","title":"This is All that Matters","shortDescription":"All that matters is faith expressed through our love.",
"name":"Richard Smith","role":"Speaker","thumbnail":"http://hopepoint.s3.amazonaws.com/Sermon-Stills/this-is-all-that-matters.jpg","genres":["faith"],"tags":["faith"],
"releaseDate":"2015-02-05","content":{"dateAdded":"2015-02-07T14:14:54.431Z","captions":[],"duration":2934,
"videos":[{"url":"https://player.vimeo.com/external/202773657.m3u8?s=85a36bc2ad5bc9d8ae53e4157557e550bf28a680","quality":"HD","videoType":"HLS"}]}},
  
  {"id":"20170122","title":"Do Skeletons Have Hope?","shortDescription":"God breathes into dry bones and they live.",
"thumbnail":"http://hopepoint.s3.amazonaws.com/Sermon-Stills/this-is-all-that-matters.jpg","genres":["faith"],"tags":["faith"],"releaseDate":"2017-01-22",
"content":{"dateAdded":"2017-01-23T14:14:54.431Z","captions":[],"duration":2766,
"videos":[{"url":"https://player.vimeo.com/external/200689337.m3u8?s=dc53fc07783ddfa69c06a929cf4349758b7f1a41","quality":"HD","videoType":"HLS"}]}},
  
  {"id":"20170115","title":"Impassioned for HIs Glory","shortDescription":"God's glory is the ultimate goal for the believer.",
"thumbnail":"http://hopepoint.s3.amazonaws.com/Sermon-Stills/this-is-all-that-matters.jpg","genres":["faith"],"tags":["faith"],"releaseDate":"2017-01-15",
"content":{"dateAdded":"2017-01-16T14:14:54.431Z","captions":[],"duration":2525,
"videos":[{"url":"https://player.vimeo.com/external/199692563.m3u8?s=e67da309ecb37485fb8b617e72950e53b8df98fb","quality":"HD","videoType":"HLS"}]}},
  
  {"id":"00001","title":"I Am - Holding on to You","shortDescription":"The Hope Point Band sings I Am (Holding on to You), music and words by David Crowder and Ed Cash.
 © 2013 sixsteps Music","thumbnail":"http://d38hd6z8oh137c.cloudfront.net/music-video/stillframes/i-am.jpg",
"genres":["faith"],"tags":["faith"],"releaseDate":"2017-01-15","content":{"dateAdded":"2017-01-16T14:14:54.431Z","captions":[],
"duration":2525,"videos":[{"url":"https://player.vimeo.com/external/203292875.m3u8?s=2f3adfcff8a06ac1257f60c9df3b096307fbbd26","quality":"HD","videoType":"HLS"}]}},
  
  {"id":"20170101","title":"Live Stream","shortDescription":"Worship with us each Sunday at 10:00 AM EST.",
"thumbnail":"https://s3.amazonaws.com/hproku/images/live-stream-1280.png","genres":["faith"],
"tags":["live"],"releaseDate":"2016-06-01","content":{"dateAdded":"2017-02-07T14:14:54.431Z","captions":[],"duration":230,
"videos":[{"url":"http://wowzaprodhd32-lh.akamaihd.net/i/8a0e9b4a_1@123879/master.m3u8","quality":"HD","videoType":"HLS"}]}}],
 
 "playlists":[{"name":"recent-messages","itemIds":["20170205","20170122","20170115"]},
{"name":"music-videos","itemIds":["00001"]},{"name":"live","itemIds":["20170101"]}],
"categories":[{"name":"Recent Messages","playlistName":"recent-messages","order":"manual"},
{"name":"Live Stream","playlistName":"live","order":"manual"},{"name":"Music Videos","playlistName":"music-videos","order":"manual"}]}
0 Kudos
islanddreamer
Channel Surfer

Re: JSON Feed and Converting Channels

@hpdean and @matrixebiz Trying both your samples I get the error "The server returned an unsupported content type." Is there a trick to saving JSON code? I'm using Notepad++ and saved as JSON. The file is located on a public Dropbox folder.

Confused in L.A.
0 Kudos
hpdean
Visitor

Re: JSON Feed and Converting Channels

"islanddreamer" wrote:
@hpdean and @matrixebiz Trying both your samples I get the error "The server returned an unsupported content type." Is there a trick to saving JSON code? I'm using Notepad++ and saved as JSON. The file is located on a public Dropbox folder.

Confused in L.A.

I am not really sure if it is absolutely necessary to save as json, but that is what I did and it worked.  I would just edit the text in notepad and then save it and then rename it to {name}.json.  Also, what url did you use?  Was it one that ended with "dl-0" or "dl=1"?
0 Kudos
islanddreamer
Channel Surfer

Re: JSON Feed and Converting Channels

@hpdean That's what I did, more or less, with no luck. The URL is just a standard dropbox URL (which works with standard RSS feed). No dl=1 or dl=0 at the end of it.
0 Kudos
mitchstein
Roku Guru

Re: JSON Feed and Converting Channels

you need to add the json mime type to your server...
http://www.TVByDemand.com
0 Kudos
newchannel
Roku Guru

Re: JSON Feed and Converting Channels

Add the mime type to each mp4 video or to the bucket? Searching online to see if this can be done using cloudberry to S3
http://www.victoryNOWfilmsandtv.com
0 Kudos
belltown
Roku Guru

Re: JSON Feed and Converting Channels

"newchannel" wrote:
Add the mime type to each mp4 video or to the bucket? Searching online to see if this can be done using cloudberry to S3

What is it you're trying to do - get your JSON feed file accessible from S3?
0 Kudos
newchannel
Roku Guru

Re: JSON Feed and Converting Channels

Hi Belltown,
Correct. I use S3 (of course xml files on s3 of which I need to make a json file and add the video links). From what I have learned so far I can use the sample json file I have and add my own links etc to it. I will use jsonlint.com to validate it first. Then, place the json file on my s3 server. I use cloudberry to access the s3. Does a json file get added to a bucket just like I would add an xml file? 

Don't know anything about mime type or how to apply that and if it applies to the each json file, or the bucket a json file would be in. And, once the file is on the server and all ready, I use the url of the json file for the direct publisher? Do I have any part of this correct?

Thank you.
http://www.victoryNOWfilmsandtv.com
0 Kudos
belltown
Roku Guru

Re: JSON Feed and Converting Channels

You're on the right track. I don't know anything about a Cloud Berry, but if you can get your JSON feed file somehow into S3, here's how you set the Content-Type to application/json, a requirement for it to work on Direct Publisher (you can also use the AWS Management Console to upload the file from your computer to an S3 bucket):

- Sign in to your AWS Management Console from a web browser
- Select S3
- Click on the link for your bucket
- Click on the link for the object (your feed.json file)
- Click on the Properties tab
- Click on Metadata
- Click on Add Metadata
- Click on Select a key, then select Content-Type from the dropdown list
- In the text box to the right of Content-Type, enter application/json
- Click on Save

And you're correct in that once all this is set up, you use the link to your feed's .json file in Direct Publisher.

Note that you should also check that your file permissions are set to allow anyone to read the .json file. In the AWS console, the next tab over from Properties is Permissions. Under Access Control List/Manage public permissions, set the object access to Read for Everyone.
0 Kudos