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

Re: json format help

"Zelkowo" wrote:
How are you creating this feed?  Are you typing it in manually?

LOL, no way, 14+ seasons 30+ average videos per season..
I'm coding in classic asp to read my database and write the json file..
I got it working with standard videos, but with standard videos the DP has too many limitations, it was suggested I do it as a series, since that is what it is, a tv series..
I would post what I am creating, but the forums are limited to 60,000 characters to a post and my json file has 251,000+ characters just for one tv series. I have 8 to put in the channel.

I'm still not getting what is wrong with the old sample player and why that couldn't have been used as the model for the DP player with it's nice easy use of xml files instead of json files and it's much unneccessary complex syntax. I guess I'm just getting too old for this stuff..

Speaking of old, does anyone know if IIS from server 2016 standard still supports classic asp or should I stick with 2012 r2?
http://www.TVByDemand.com
0 Kudos
mitchstein
Roku Guru

Re: json format help

[table][tr][td][img=32x19]http://www.gravatar.com/avatar/7640de9c970917aa31b3c8ef8d0b2e96?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g[/img][/td]
Mitch
Apr 19, 22:47 PDT
I created this json file (snipet)
{
"providerName": "TVByDemand Productions",
"lastUpdated": "2017-04-20T12:57:08+00:00",
"language": "en",
"id": "1",
"title": "Bonanza",
"seasonnumber": "1",
"id": "2085",
"title": "S1E12 The Hanging Posse",
"content": {
"dateAdded": "2016-03-03T12:35:13+00:00",
.............n1/s01e12/finished.ism/manifest",
}
It passes lint but when I add it to my channel in dp it says no valid entries…
What am I missing? Been working on this all day..
[/tr]
[/table]


So here is where I am stuck, this passes the lint test but roku says no valid entries found... Anyone got any ideas, it might be a simple thing I just keep missing, maybe just a glance at it by a second set of eyes..
http://www.TVByDemand.com
0 Kudos
37mediagroup
Roku Guru

Re: json format help

at the end of your urls you have a [/color] ?  Is that supposed to be there, or did that just post into the forum somehow?!
0 Kudos
mosafer
Roku Guru

Re: json format help

"mitchstein" wrote:
[table][tr][td][img=32x19]http://www.gravatar.com/avatar/7640de9c970917aa31b3c8ef8d0b2e96?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g[/img][/td]
Mitch
Apr 19, 22:47 PDT
I created this json file (snipet)
...
It passes lint but when I add it to my channel in dp it says no valid entries…
What am I missing? Been working on this all day..
[/tr]
[/table]


So here is where I am stuck, this passes the lint test but roku says no valid entries found... Anyone got any ideas, it might be a simple thing I just keep missing, maybe just a glance at it by a second set of eyes..

Same problem but I have an idea.
based on Direct Publisher Feed (JSON) document (https://github.com/rokudev/feed-specifi ... .md#season), seasonNumber type is integer. I think we should try:
"seasonNumber": 1, Without quotation marks
I updated my json but still waiting for processing.
0 Kudos
mitchstein
Roku Guru

Re: json format help

"Pasnow" wrote:
at the end of your urls you have a [/color] ?  Is that supposed to be there, or did that just post into the forum somehow?!

No the forums added that... guessing when I told it to remove the hyperlinks in the editor because they would normally be blue..
http://www.TVByDemand.com
0 Kudos
mitchstein
Roku Guru

Re: json format help

"mosafer" wrote:
"mitchstein" wrote:
[table][tr][td][img=32x19]http://www.gravatar.com/avatar/7640de9c970917aa31b3c8ef8d0b2e96?size=40&default=https%3A%2F%2Fassets.zendesk.com%2Fimages%2F2016%2Fdefault-avatar-80.png&r=g[/img][/td]
Mitch
Apr 19, 22:47 PDT
I created this json file (snipet)
...
It passes lint but when I add it to my channel in dp it says no valid entries…
What am I missing? Been working on this all day..
[/tr]
[/table]


So here is where I am stuck, this passes the lint test but roku says no valid entries found... Anyone got any ideas, it might be a simple thing I just keep missing, maybe just a glance at it by a second set of eyes..

Same problem but I have an idea.
based on Direct Publisher Feed (JSON) document (https://github.com/rokudev/feed-specifi ... .md#season), seasonNumber type is integer. I think we should try:
"seasonNumber": 1, Without quotation marks
I updated my json but still waiting for processing.

when you import the json file, it should have a slight pause and then tell you how many items it imported.. that is where I get my error stating "No valid entries found" (thats not a word for word verbatim error but the spirit to my best recollection)
http://www.TVByDemand.com
0 Kudos
mosafer
Roku Guru

Re: json format help

Mine was exactly same situation. I removed the quotations and problem solved. 
0 Kudos
belltown
Roku Guru

Re: json format help

First of all, it would be a lot easier for people trying to help if you posted your JSON within code tags:

[code][/code]


Second, if you're having trouble removing the forum's formatting codes, e.g. links, etc., are you still using the graphical editor? If so, as has been suggested a couple of times before, it's a whole lot easier using the 'View source' mode (left-most toolbar icon), and removing/modifying formatting codes by hand. This is by far the crappiest forum editor I've ever used, but unfortunately we're stuck with it.

Third, it's much easier to read your JSON if you indent it instead of lining up every line with the far left-hand column. There are plenty of text editors and plugins/linters/formatters, etc. that will accomplish this for you. It will make it a lot easier to spot where you might have mismatched parentheses or brackets. E.g:


{
 "providerName": "TVByDemand Productions",
 "lastUpdated": "2017-04-20T12:57:08+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/.............n1/s01e12/finished.ism/manifest",
                   "quality": "SD",
                   "videoType": "SMOOTH",
                   "duration": 3623,
                   "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                   "episodenumber": 12,
                   "shortDescription": "S1E12 The Hanging Posse"
                 }
               ]
             }
           },
           {
             "id": "2086",
             "title": "S1E13 Vendetta",
             "content": {
               "dateAdded": "2016-03-03T12:35:14+00:00",
               "videos": [
                 {
                   "url": "http://www.tvbydemand.com/....................1/s01e13/finished.ism/manifest",
                   "quality": "SD",
                   "videoType": "SMOOTH",
                   "duration": 2969,
                   "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                   "episodenumber": 13,
                   "shortDescription": "S1E13 Vendetta"
                 }
               ]
             }
           },
           {
             "id": "2087",
             "title": "S1E14 The Sisters",
             "content": {
               "dateAdded": "2016-03-03T12:35:16+00:00",
               "videos": [
                 {
                   "url": "http://www.tvbydemand.com/media3/iis/tv/bonanza/season1/s01e14/finished.ism/manifest",
                   "quality": "SD",
                   "videoType": "SMOOTH",
                   "duration": 3464,
                   "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                   "episodenumber": 14,
                   "shortDescription": "S1E14 The Sisters"
                 }
               ]
             }
           }
         ]
       }
     ]
   }
 ]
}

^^^ formatted using the ATOM Editor with the prettify-json plugin -- available on Windows, Mac, and Linux; it will syntax-check, format, and syntax-highlight your JSON code making it much easier to read; it even lets you collapse indented blocks, to de-clutter and focus on what piece of the file you're currently working on.

Fourth, the DP Feed Specification states:
All the properties in the schema are case sensitive.

It defines series in all lower-case, yet you've used Series instead. That may explain why DP doesn't find any content it recognizes.
0 Kudos
mitchstein
Roku Guru

Re: json format help

I'll try the capital S removal and replace with lcase s.. I missed the case sensitive explanation, or should say forgot that detail after reading the docs. It's a habit of mine to capital the first letter of a new sentence/concept. While I wasn't looking for that (mostly because I always place a LCase(a$) whenever dealing with varibles in all my projrcts, mostly because I know I do that. lol..

Yes I agree out of all the forum editors I have ever used this is the sloppiest. And I just decommissioned MaxWeb Portal from the year 2000. which was more robust then this forum. lol. The source is actually indented, somewhere along the way the copy^paste removed the indentations. To be honest, in my state of frustration and lack of sleep I didn't even notice.
http://www.TVByDemand.com
0 Kudos
mitchstein
Roku Guru

Re: json format help

Well, I replaced the S with an s, and it made no difference.. HOWEVER..
When I went in to check the Feed Status it has several errors.. No valid duration for 421 items (which is how many episodes I have) no valid ID number.
We removed the quotes from the numbers because we thought maybe they were integers and not text based variables and that might have been the problem.. welp, nope they need the quotes.

Then it doesn't like the date format, even though it is exactly the same routine used to create the same exact videos in as VIDEO instead of SERIES.. (all lowercase of course because in 2017 it's still case sensitive).

and then there are other errors too many to go into, but I attempted to correct each one in the code and still no go..

here's the top portion of the json file. just first two episodes. (doing it by following the advise given in raw non gui format, again cause it's only 2017 and we havn't gotten those basic concepts down yet).

{
    "providerName": "TVByDemand Productions",
    "lastUpdated": "2017-04-21T8:41:08+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/...../finished.ism/manifest",
                            "quality": "SD",
                            "videoType": "SMOOTH",
                            "duration": "3623",
                            "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                            "episodenumber": "12",
                            "shortDescription": "S1E12 The Hanging Posse"
                        }]
                    }
                },
                {
                    "id": "2086",
                    "title": "S1E13 Vendetta",
                    "content": {
                        "dateAdded": "2016-03-03T12:35:14+00:00",
                        "videos": [{
                            "url": "http://www.tvbydemand.com/media3/...../finished.ism/manifest",
                            "quality": "SD",
                            "videoType": "SMOOTH",
                            "duration": "2969",
                            "thumbnail": "http://www.tvbydemand.com/images/bonanza.JPG",
                            "episodenumber": "13",
                            "shortDescription": "S1E13 Vendetta"
                        }]
                    }
                }
            ]
        }]
    }]
}


The .... in the urls are on purpose they are not in the live json file either.. if anyone notices anything obvious feel free to inform me (even in for lack of better term in 2017 and going back to the 1980's FLAME on me with the answer.)
http://www.TVByDemand.com
0 Kudos