Forum Discussion

mitchstein's avatar
mitchstein
Roku Guru
9 years ago

Json File "Series" sample feed

after manyt weeks of working with roku tech support we got the series feed to injest here is a snipet:

{
    "providerName": "TVByDemand Productions",
    "lastUpdated": "2017-06-12T10:38:28+00:00",
    "language": "en",
    "series": [{
        "id": "1",
        "title": "Bonanza",
        "seasons": [{
            "seasonNumber": 1,
            "episodes": [{
                "id": "2085",
                "title": "S1E12 The Hanging Posse",
                "content": {
                    "dateAdded": "2016-03-03T12:35:13+00:00",
                    "videos": [{
                        "url": "http://www.tvbydemand.com..................shed.ism/manifest",
                        "quality": "SD",
                        "videoType": "SMOOTH"
                    }],
                    "duration": 3623
                },
                "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                "episodeNumber": 12,
                "releaseDate": "1959-11-09",
                "shortDescription": "S1E12 The Hanging Posse"
            }]
        }],
        "genres": ["comedy"],
        "thumbnail": "http://www.tvbydemand.com/images/bonanza.jpg",
        "releaseDate": "1952-01-01",
        "shortDescription": "Bonanza"
    }]
}


Hope this helps people out..

I was told to add in adbreaks to insert the ad break line after the duration line in each episode.
Also for some reason it is not displaying in the channel properly, they assured me they are working on it.

21 Replies

  • Sounds like a great product to save time. 

    I'm trying to learn as much as I can about using json. I was able to get series : season : episodes working but only for one season. Adding season 2 was unsuccessful to say the least. Short descriptions aren't working. And, the release date disappears in my json lol I'd like to learn more but if it gets to timely at least the software program is an option 🙂
  • Series [{
                ID
                title
                seasons[{
                              season number
                              episodes[{
                                            id
                                            episode number
                                            title
                                            thumbnail
                                            releasedate
                                            shortdescription
                                            content{
                                                         dateadded
                                                         videos[{
                                                                     url
                                                                     quality
                                                                     videotype
                                                                     duration
                                                                      }]  -----close videos
                                                              } ------------colse content
                                                    } ---------close 1 episode
                                                    { ----------------episode 2 here
                                            id
                                            episode number
                                            title
                                            thumbnail
                                            releasedate
                                            shortdescription
                                            content{
                                                         dateadded
                                                         videos[{
                                                                     url
                                                                     quality
                                                                     videotype
                                                                     duration
                                                                      }]  -----close videos
                                                              } ------------colse content
                                                        }] ----close episodes
                                            } -------close season 1
                                            {season 2 ---------repeat episodes etc etc

    I think alot of the problem is the order of the data in the json files.. this order appears to make more logical sense to me. does anyone see where this shouldn ot work?
  • "Baradanikto" wrote:
    Please take a moment to look at the software I have written to create and manage JSON feeds.  I wrote it to make creating and managing my channel a lot easier.   And, I've used it to create several series with episodes with no problems.  Several users on this forum have purchased it.  There's really no reason to struggle with the JSON syntax when there are solutions that make it easier to manage.

    The software is called JSON Feed Manager.  There's a demo available and a tutorial video.

    What would be really helpful to the community is if you post a working json example. Not all of us are on pcs and can not use your app even if we wanted to.
  • I'v got some customer support to finish, but, I'll see what I can craft up.
  • Per request, I used the software I wrote to generate a Series with two seasons.  Each season has one episode.  I've removed most of the identifying strings.  This json snippet validated correctly in the Direct Publisher portal and displays on my test channel.
       
    {
          "id": "",
          "title": "",
          "seasons": [
            {
              "seasonNumber": 1,
              "episodes": [
                {
                  "id": "",
                  "title": "",
                  "content": {
                    "dateAdded": "2017-08-19T11:43:30+00:00",
                    "videos": [
                      {
                        "url": "",
                        "quality": "HD",
                        "videoType": "MP4",
                        "bitrate": 1
                      }
                    ],
                    "duration": 3570,
                    "adBreaks": [
                      "00:00:00",
                      "00:15:00",
                      "00:30:00",
                      "00:45:00"
                    ]
                  },
                  "thumbnail": "",
                  "episodeNumber": 1,
                  "releaseDate": "2018-04-26",
                  "shortDescription": "",
                  "longDescription": ""
                }
              ],
              "thumbnail": ""
            },
            {
              "seasonNumber": 2,
              "episodes": [
                {
                  "id": "",
                  "title": "",
                  "content": {
                    "dateAdded": "2018-04-28T12:19:48+00:00",
                    "videos": [
                      {
                        "url": "",
                        "quality": "HD",
                        "videoType": "MP4",
                        "bitrate": 6214
                      }
                    ],
                    "duration": 3697,
                    "adBreaks": [
                      "00:00:00",
                      "00:15:00",
                      "00:30:00",
                      "00:45:00"
                    ]
                  },
                  "thumbnail": "",
                  "episodeNumber": 1,
                  "releaseDate": "2018-01-23",
                  "shortDescription": "",
                  "longDescription": ""
                }
              ],
              "thumbnail": ""
            }
          ],
          "genres": [
            "sports"
          ],
          "thumbnail": "",
          "releaseDate": "2018-04-26",
          "shortDescription": "",
          "longDescription": "",
          "tags": [
            ""
          ]
        }


    Hope this helps...
  • Thanks, Baradanikto. Thanks for your code sample. It was very helpful. Did they ever get back to you regarding when they are working on it? I followed your feed and it was ingested properly, but as you mentioned, it is still not working. My thumbnails just keep spinning and the series freezes.
    Bruce
  • Sorry, I accidentally posted the same message twice. Please ignore this.
  • I also have tried to implement the Series and followed the code sample above as well as Roku's documentation, but no luck.

    I added a series with one season and 3 episodes and everything passed on my feed status screen, but nothing is working when I play them on my Roku device.

    Some details:
    https://hotwebideas.net/roku/vh2/feed07232018a.json[/url:3qkkmyz0][/color]
    2. The series is under the Reality TV tag and it displays fine in the VH2 app under Reality TV.
    3. It shows the first thumbnail, Play S1 E1 link, and the Episodes link.
    4. When I select the Episodes link, it just shows a spinning thumbnail with the word Season 1, but nothing happens.
    5. When I click on the Play S1 | E1 link, it just shows Retrieving with nothing happening.

    I see that I am not the only one having a problem with Series.
  • I see that someone mentioned a WordPress plugin, but when I tried to add it, it was untested with the latest version of WordPress, so I developed one myself. I have deployed it on TVChannelPress.com

    Bruce