Your Digital Media Has Never Looked So Good

 
matrixebiz
Posts: 291
Joined: Mon Jan 20, 2014 12:47 pm

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 7:08 am

Changed to a different server to host my file and it is working now : https://forums.roku.com/viewtopic.php?f=100&t=99232
 
hpdean
Posts: 21
Joined: Wed Jun 17, 2015 7:22 am

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 1:00 pm

jofo wrote:
I too am new to this process and would like to understand where the Direct Publisher feed url is pointing to exactly. I've prepared the sample json file as a text file. Converted it to .json. Uploaded the .json file to my s3 aws server and granted public permissions yet I get the error The feed URL(s) could not be validated.
[*]The server returned an unsupported content type. Was expecting 'application/rss+xml', 'text/xml', 'application/xml' or 'application/json' but received 'application/octet-stream'.
Not sure

It is asking for a feed url. I'm stomped on this one.


[*]
You have to change your S3 metadata to application/json.  I had to do it in S3 browser software because it wouldnt let me do it from the panel.
 
hpdean
Posts: 21
Joined: Wed Jun 17, 2015 7:22 am

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 1:07 pm

I am really having a difficult time converting my content to a JSON Feed.  I have used the sample content from "https://api.myjson.com/bins/3sa1g" and just inserted one of my content videos, I have verified it with the JSON validator, but when I add it as my feed url and check my Feed URL status, it is giving me a ton of errors.  Here is my JSON feed  -http://hproku.s3.amazonaws.com/JSON/single-movie.json.  Could someone please check this and let me know why it is giving me all these errors?

{"providerName":"Hope Point Church","language":"en-US","lastUpdated":"2017-02-07T22:21:37+00:00",
"movies":[{"id":"20170205","title":"This is All that Matters","content":{"dateAdded":"2017-02-07T22:21:37+00:00",
"videos":[{"url":"https://player.vimeo.com/external/202773657.m3u8?s=85a36bc2ad5bc9d8ae53e4157557e550bf28a680",
"quality":"HD","videoType":"HLS"}],"duration":2934,"genres":["faith"],"tags":["recent"],"thumbnail":
"http://hopepoint.s3.amazonaws.com/Sermon-Stills/this-is-all-that-matters.jpg","releaseDate":"2017-02-07",
"shortDescription":"All that matters is faith expressed through our love."}}]}




  • 02/08/2017 02:49PM
    No valid items were found in the feed
  • 1 item has an error: Required content dateAdded missing or invalid.
  • 1 item has an error: Required movie genres is missing or invalid.
  • 1 item has an error: Required movie thumbnail is missing.
  • 1 item has an error: Required movie shortDescription is missing.
  • 1 item has an error: Required movie release date is missing or invalid.
 
matrixebiz
Posts: 291
Joined: Mon Jan 20, 2014 12:47 pm

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 1:49 pm

I'm not sure if this is the problem or not but checking your source page : view-source:https://hproku.s3.amazonaws.com/JSON/single-movie.json your code starts on line 3, what is at the beginning of your file occupying lines 1 and 2? Spaces, Returns, Tabs? Maybe delete all the stuff in the front of {"providerName" and see if that makes a difference. I'm new to this as well so not sure if the feed is checking line 1 and sees that there is nothing there and that is why it is telling you that all that stuff is missing ??
 
hpdean
Posts: 21
Joined: Wed Jun 17, 2015 7:22 am

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 1:54 pm

I changed what you suggested but it is still giving me those errors.  Maybe it is because I do not have categories listed.  I will try to figure out how to add categories.    I came across this sample content on the forum and it looks a lot more in depth.  https://api.myjson.com/bins/4tu28  
 
matrixebiz
Posts: 291
Joined: Mon Jan 20, 2014 12:47 pm

Re: JSON Feed and Converting Channels

Wed Feb 08, 2017 2:21 pm

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"}]}  
 
hpdean
Posts: 21
Joined: Wed Jun 17, 2015 7:22 am

Re: JSON Feed and Converting Channels

Thu Feb 09, 2017 9:30 am

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"}]}
 
islanddreamer
Posts: 37
Joined: Fri Aug 13, 2010 6:05 am

Re: JSON Feed and Converting Channels

Mon Feb 13, 2017 11:53 am

@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.
 
hpdean
Posts: 21
Joined: Wed Jun 17, 2015 7:22 am

Re: JSON Feed and Converting Channels

Mon Feb 13, 2017 12:05 pm

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"?
 
islanddreamer
Posts: 37
Joined: Fri Aug 13, 2010 6:05 am

Re: JSON Feed and Converting Channels

Mon Feb 13, 2017 5:57 pm

@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.
 
User avatar
mitchstein
Posts: 194
Joined: Tue Mar 11, 2014 10:35 am
Contact:

Re: JSON Feed and Converting Channels

Tue Apr 04, 2017 2:59 am

you need to add the json mime type to your server...
 
newchannel
Topic Author
Posts: 510
Joined: Tue Aug 02, 2011 2:09 pm

Re: JSON Feed and Converting Channels

Fri Apr 07, 2017 12:18 pm

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
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: JSON Feed and Converting Channels

Fri Apr 07, 2017 1:29 pm

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?
https://github.com/belltown/
 
newchannel
Topic Author
Posts: 510
Joined: Tue Aug 02, 2011 2:09 pm

Re: JSON Feed and Converting Channels

Fri Apr 07, 2017 6:44 pm

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
 
belltown
Posts: 1465
Joined: Thu Dec 09, 2010 1:43 pm
Contact:

Re: JSON Feed and Converting Channels

Fri Apr 07, 2017 7:20 pm

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.
https://github.com/belltown/

Who is online

Users browsing this forum: No registered users and 2 guests