Forum Discussion

angejudicael's avatar
8 years ago

Jason Feed with ShortFormVideos and Series

Hi all,

My json feed is a combinaison of SERIES[...] and SHORTFORMVIDEOS[...]
The shortformvideos display correctly into my screen TV but nothing display for series. Also, the VIMEO player doesn't display video into the shortformvideos .
Someone can help me please ?

My Json File


{
"providerName":"MyNina2",
"language":"en-US",
"lastUpdated":"2016-10-06T18:12:32.125Z",
"series":[{
            "id":"4968432",
            "title":"Captive",
            "shortDescription":"Lorem ipsum dolor sit amet.",
            "thumbnail":"http://www.nina-tv.com/roku/captive-xbig.jpg",
            "seasons": [{
                    "seasonNumber": 1,
                    "episodes": [
                        {
                          "id": "1",
                          "title": "Captive EP01",
                          "content":
                            {
                                "dateAdded":"2018-02-08T14:14:54.431Z",
                                "captions":[],
                                "duration":2793,
                                "videos":[{
                                    "url":"https://player.vimeo.com/external/xxxxx.sd.mp4?s=66402c743d9ca85167339c4628ce1faf1786c592",
                                    "quality":"HD",
                                    "videoType":"MP4"
                                }]
                            },
                          "thumbnail":"http://www.nina-tv.com/roku/c1.jpg",
                          "episodeNumber": 1,
                          "releaseDate": "2015-05-22",
                          "shortDescription":"Lorem ipsum dolor sit ameta."
                        },
                        
                        {
                          "id": "2",
                          "title": "Captive EP02",
                          "content":
                            {
                                "dateAdded":"2018-02-08T14:14:54.431Z",
                                "captions":[],
                                "duration":2793,
                                "videos":[{
                                    "url":"https://player.vimeo.com/external/xxxxx.sd.mp4?s=4b7bf59207a331037bea30887297e7fbbbf2203f",
                                    "quality":"HD",
                                    "videoType":"MP4"
                                }]
                            },
                          "thumbnail":"http://www.nina-tv.com/roku/c2.jpg",
                          "episodeNumber": 2,
                          "releaseDate": "2015-05-22",
                          "shortDescription":"Lorem ipsum dolor sit ametore magna aliquyam erat, sed diam voluptua."
                        },
   
                    ]
            }],            
            "genres":["drama", "special"],
            "tags":["love","live", "romance"],
            "releaseDate":"2015-06-11",
            "credits":
            {
              "name": "Eliakim Nicolson",
              "role": "RĂ©alisateur",
              "birthDate": "1952-03-11"
            }
}],            
        
    
"shortFormVideos":
[{
            "id":"205265379",
            "title":"Hospital IT",
            "shortDescription":"Lorem ipsum dolor sit ametore.",
            "thumbnail":"http://www.nina-tv.com/roku/hospital.jpg",
            "genres":["comedy","miniseries"],
            "tags":["comedy"],
            "releaseDate":"2015-06-11",
            "content":
            {
                "dateAdded":"2015-06-11T14:14:54.431Z",
                "captions":[],
                "duration":97,
                "videos":[{
                    "url":"https://player.vimeo.com/external/xxxxx.sd.mp4?s=b92fdffb400dce7cb06f3b92c3b723d567ea22cb",
                    "quality":"SD",
                    "videoType":"MP4"
                }]
            }
    },
        
        {
            "id":"147132437",
            "title":"Shampaign",
            "shortDescription":"Lorem ipsum dolor sit ametore.",
            "thumbnail":"http://www.nina-tv.com/roku/shampaign.jpg",
            "genres":["comedy","miniseries"],
            "tags":["comedy"],
            "releaseDate":"2015-06-11",
            "content":
            {
                "dateAdded":"2015-06-11T14:14:54.431Z",
                "captions":[],
                "duration":140,
                "videos":[{
                    "url":"https://player.vimeo.com/external/xxxxx.sd.mp4?s=2f234713249582bb309e51d55aae07d3bd9eb8bd",
                    "quality":"SD",
                    "videoType":"MP4"
                }]
            }
   },
        
       {
            "id":"206246041",
            "title":"Bobodiouf le retour",
            "shortDescription":"Lorem ipsum dolor sit ametore",
            "thumbnail":"http://www.nina-tv.com/roku/bobodiouf.jpg",
            "genres":["comedy","miniseries"],
            "tags":["comedy"],
            "releaseDate":"2015-06-11",
            "content":
            {
                "dateAdded":"2015-06-11T14:14:54.431Z",
                "captions":[],
                "duration":148,
                "videos":[{
                    "url":"https://player.vimeo.com/external/xxxxx.source.mp4?s=510ce16d0c77fe549c1e73c836b0c772a6acb0dc&download=1",
                    "quality":"HD",
                    "videoType":"MP4"
                }]
            }
}],

"playlists":[
            {
                "name":"captive",
                "itemIds":[
                    "1",
                    "2"
                ]
            },

            {
                    "name":"production",
                    "itemIds":[
                    "3",
                    "4",
                    "5"
                    ]
            }
    ],
    "categories":[
        {
            "name":"Programmes en production",
            "playlistName":"production",
            "order":"manual"
        },
        {
            "name":"Captive",
            "playlistName":"captive",
            "order":"manual"
        }
    ]
}

8 Replies

  • I ran your feed file through my Json Feed Manager software and it indicated you have an error in your feed.  This typically happens when you code by hand.  The error is with your Credits object.  The Credits object is actually an array hence the description from the Json spec:


    One or more credits. The cast and crew of the movie.

    The spec does not do a good job indicating this.
  • First issue is on line 141 there is a comma after the bracket...
     
     "shortDescription":"Lorem ipsum dolor sit ametore magna aliquyam erat, sed diam voluptua."
                      },

                   ]



    In JSON it is important to remove the last comma in an array of objects or else it will through errors.  Other than the one error, everything else looks good.   I just went over it by hand but Baradanikto has software that allows you to import JSON files and scan for errors.   I'm sure he'll jump in on this thread 🙂
  • "Baradanikto" wrote:
    I ran your feed file through my Json Feed Manager software and it indicated you have an error in your feed.  This typically happens when you code by hand.  The error is with your Credits object.  The Credits object is actually an array hence the description from the Json spec:


    One or more credits. The cast and crew of the movie.

    The spec does not do a good job indicating this.

    Ok sir, i understand what you mean. So how can i make a correct Json feed without mistake ? What is the best practice ?
    I must to ingest more than 200 programmes so.... lol
  • "rovidx_media" wrote:
    First issue is on line 141 there is a comma after the bracket...
     
     "shortDescription":"Lorem ipsum dolor sit ametore magna aliquyam erat, sed diam voluptua."
                      },

                   ]



    In JSON it is important to remove the last comma in an array of objects or else it will through errors.  Other than the one error, everything else looks good.   I just went over it by hand but @Baradanikto has software that allows you to import JSON files and scan for errors.   I'm sure he'll jump in on this thread 🙂

    Thanks a lot, i just correct mistake. I am waiting for Baradanikto response. :)
  • So how can i make a correct Json feed without mistake ? What is the best practice ?


    I can't tell you what the "best practice" is because that's different for every person.  I can, however, tell you that there's no need to risk making syntax errors because you're coding your feed file by hand using something like Notepad++.  Especially when there are solutions available to help you.  Consider using one of those solutions.  I have made available the software that I wrote to create my channel, and, I know that rovidx_media also has a solution that can help.  I'm sure if you search, you'll find what you need to make the task of creating a syntactically correct feed file less troublesome.
  • Okk i understand.
    So guys i need a software which can give me possibility to write my Json Feed clearly and quickly. I must to create a feed with more than 2hundred videos so i need your help and experience. I am able to paid this software. I need price and specs.
  • If you look at my post signature, you'll find a link to my channel website.  Information and demo can be found under "Roku Software".
  • "Baradanikto" wrote:
    If you look at my post signature, you'll find a link to my channel website.  Information and demo can be found under "Roku Software".

    Many Thanks.