HMS

Home Media Server for Roku Players
git clone https://www.brianlane.com/git/HMS
Log | Files | Refs | README | LICENSE

CategoryLoaderTask.brs (641B)


      1 '********************************************************************
      2 '**  Home Media Server Application - CategoryLoaderTask
      3 '**  Copyright (c) 2022 Brian C. Lane All Rights Reserved.
      4 '********************************************************************
      5 sub Init()
      6     print "CategoryLoaderTask->Init()"
      7 
      8     m.top.functionName = "GetMetadata"
      9 end sub
     10 
     11 ' GetMetadata is executed when  m.contentTask.control = "run" from MainScene
     12 sub GetMetadata()
     13     print "CategoryLoaderTask->GetMetadata()"
     14     print m.top.serverurl
     15     print m.top.category
     16 
     17     m.top.metadata = getCategoryMetadata("http://" + m.top.serverurl, m.top.category)
     18 end sub