Forum Discussion

Baradanikto's avatar
Baradanikto
Roku Guru
2 years ago

DP to SceneGraph wizard tool released

I've created a wizard tool that should alleviate some of the anxiety of converting a Direct Publisher channel to a SceneGraph channel.  The tool can be found on GitHub.  

The tool will walk you through some steps to generate BrightScript code that uses your JSON feed file to create a SceneGraph grid-style channel similar to the UI of Direct Publisher.  The code supports ALL content types including Series/Episodes.  However, there are some caveats:

  1. The code generated is an "alpha" version.  This means it is not fully tested and may contain bugs.  It should NOT be used as the basis of a production channel.  Use the generated code at your own risk.
  2. The code will NOT currently pass channel certification.  I plan on continuing to develop the code and thought it was important to get it into the hands of DP channel developers.
  3. The tool assumes that your feed file specifies Categories that use Tags to "bucket" your channel content.  Your feed file MUST contain Category objects and Tags.

I'm looking for feedback and comments on the wizard and the code that it produces.  Please use GitHub to discuss, comment, and ask questions.  Please do not use this forum to ask questions, or, report errors.  If you find a problem, open an issue on the GitHub site.

If you want to be notified of future version releases, you should "star"/watch the GitHub project repository.

70 Replies

  • Spacehog's avatar
    Spacehog
    Streaming Star

    This isn't compatible with Mac systems and I am wonder if anyone with experience doing this can help because I have zero coding skills and am starting from zero here. 

  • I'll definitely check this out. Just got thru revising my smaller channel into custom categories & was meticulous as heck, but seems to work. Not seeing background color yet but thats a small issue. Gonna take some time away from this stuff for a few days.

     

    • Baradanikto's avatar
      Baradanikto
      Roku Guru

      Alpha-2 of the wizard tool has been released. Please go to GitHub to download it.

      • Spacehog's avatar
        Spacehog
        Streaming Star

        None of the instructions mentioned work. I'm on a mac, and this software isn't compatible at all. 

        There's no download link of any kind on the page. The problem is I can't upload screenshots to show you the screen I get when I click the link. 

  • Alpha Version 3 was just released and I tested it and it fully works!

     

  • Hello, will the wizard tool be able to help with a json file that is larger then 500kb?

    • ferdiworks's avatar
      ferdiworks
      Roku Guru

      I believe it will parse the json feed, The issue is not the softyware its ROKU that wants 500 or less in your data. You can use the software and trest the output package!

      • biblestudywvbs's avatar
        biblestudywvbs
        Reel Rookie

        Thank you ferdiworks  I did try the software but i am still getting feed to large. Any help  or suggestions  to  get this to work will be great. Or how to parse the json feed will help also. thank you

    • ferdiworks's avatar
      ferdiworks
      Roku Guru

      johnary Have you tried using categories with Playlist instead?

       "categories": [
          {
            "name": "All Videos",
           "playlistName":"All",
            "order": "most_popular"
          },
          {
            "name": "Divine Mercy Matters",
            "playlistName":"Divine Mercy Matters",
            "order": "chronological"
          },
          {
            "name": "Discovering the Diary",
            "playlistName":"Discovering the Diary",
            "order": "most_recent"
          },
          {
            "name": "Featured Free for a Limited Time",
            "playlistName":"Featured Free",
            "order": "manual"
          },
          {
            "name": "Explaining the Faith with Fr. Chris Alar",
            "playlistName":"Explaining the Faith",
            "order": "chronological"
          }
        ],
        "playlists": [
          {
            "name": "All",
            "itemIds": [
              "archives-srfaustina1",
              "c8168fc591444f1a8dd57f6066c26c88",
              "01915b3a171a461ebe6e0a098d53e705",
              "2c27a33b4eee4705971b1904490c72be",
              "91d627fdd4dc4dc0a79737cfc5a89428",
              "c9cdab6e098c403a86f776cf13cd68d2",
              "55c605228e584bc6ad3788b754808943",
              "d0f01326bd764b6991b4e8ad165f2c59",
              "39946711a4b5461d9519797a95e09de4",
              "4471a6ab89c444a6ac624fc6ebb69341",
              "0236fd9efc0a4be090b1130526b86880",
              "8cb5b158c6ae403f9ced68af25aabe73",
              "e13adc59658e483fa519f0dca3bcd30a",
              "b2672956cd6044158b2a9187291f6afa",
              "3f5aab9529084f32bd02e901d9ff53b9",
              "235b85bd90844a05865190a0fca659ff"
            ]
          },
          {
            "name": "Divine Mercy Matters",
            "itemIds": [
              "c8c1e4b00b144a649887cccf124522c5"
            ]
          },
          {
            "name": "Discovering the Diary",
            "itemIds": [
              "01915b3a171a461ebe6e0a098d53e705",
              "4471a6ab89c444a6ac624fc6ebb69341",
              "c8168fc591444f1a8dd57f6066c26c88"
            ]
          },
          {
            "name": "Featured Free",
            "itemIds": [
              "f1377ac9543c4b9795239516ef0caa64",
              "38f3697469b4418b82fbb59945ed4aaa"
            ]
          },
          {
            "name": "Explaining the Faith",
            "itemIds": [
              "8cb5b158c6ae403f9ced68af25aabe73",
              "d708716987934c26add6574788ea4117",
              "06e25536ff004058a6453fd86ab1930e",
              "22af8f6370434cf887072b1c7a27a4f8",
              "39946711a4b5461d9519797a95e09de4",
              "e13adc59658e483fa519f0dca3bcd30a",
              "d0f01326bd764b6991b4e8ad165f2c59",
              "2c27a33b4eee4705971b1904490c72be",
              "1c606116194c4f73a32b5d4e6f696fb0",
              "91d627fdd4dc4dc0a79737cfc5a89428",
              "c9cdab6e098c403a86f776cf13cd68d2",
              "55c605228e584bc6ad3788b754808943",
              "0236fd9efc0a4be090b1130526b86880",
              "b2672956cd6044158b2a9187291f6afa",
              "3f5aab9529084f32bd02e901d9ff53b9",
              "84633bc134db49fdbd1075d827581810",
              "e82af69af78a464d8acf8ff0fa6ac775",
              "a0ab3f8ce2854a7a8680ebadfd289452",
              "f3a0024758b148a081df0e2513b270c8",
              "3c2bf497896b4f3eab22d3bf6e239bee",
              "b46997f173374cf2910e0a2b56d68f1c",
              "8322cd8277164eb981f4be57f1438df0"
            ]
          }
        ]
      }

       

    • Baradanikto's avatar
      Baradanikto
      Roku Guru

      johnary First, playlists are not required.  Your feed file has at least one problem.  I loaded it into The Channel Feed Manager and it reported the following:

      An error has been detected in your feed file: 'Invalid type. Expected Array but got String. Path 'shortFormVideos[71].genres', line 1953, position 24.'

      I then took a look at your feed file and noticed this:

      "genres": "",

      Genres is an array of strings.  Your feed file defines it as a single string. 

  • Thanks for this! I have my channel created and looking great.

    I am at a loss on how to do the Deep linking stuff in order to pass Channel Behavior Analysis. If anyone can point me to some resources to I would appreciate it.
    When I first converted it using Roku's basic DP to SceneGraph I was not required to do the deep linking.

    Thanks,

    David

    • ferdiworks's avatar
      ferdiworks
      Roku Guru

      Ig you are using the DP to SceneGraph software the deeplinking is done for you and you just complete it in the Roku developer dashboard under the deep linkng Tab:

      From the dropdown select video type from your feed file, for example = shortform, movie, tvspecial or series!
      Content ID = Add one video ID number from your feed file
      Content Title = Add The video title!
      Only do this for one video click to save it = Done!
      Publish channel!