home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
OnlineVideos JSON parsing
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="doskabouter" data-source="post: 1186168" data-attributes="member: 98267"><p>If language should be a saveable option, then perhaps it's better to treat it that way:</p><p>add </p><p>[code]</p><p>[Category("OnlineVideosUserConfiguration"), Description("The language")] </p><p>string language = null; </p><p>[/code]</p><p></p><p>to the beginning of the class (see f.e. eurosport) so that automatically creates an entry for that site in the onlinevideosconfiguration .</p><p></p><p>Fisrt one to override is indeed the discoverdynamiccategories</p><p>there you can load the root-json and start adding subcategories, and if present subsubcategories etc for as long as you have the info present in the root-json.</p><p>Extra properties you want to set for the categories: hassubcategories=true, subcategories and subcategoriesdiscoverd</p><p>And for the subcategories: parent, hassubcategories, subcategoriesdiscovered.</p><p></p><p>If the videos are also present in the root-json then I'd mostly set the property Other of that subcategory to the List<VideoInfo> that you have to parse out of the json-node and override getvideos to check if the other is of type List<VideoInfo> and if so just return that.</p><p>Another way to do this is to assign the json node to Other, and parse that node in getvideourl.</p><p></p><p>Note: this is all typed without syntaxchecking, so there may be one or two typos...</p><p></p><p>Anyway, if you have something (partly) working than I'm more than happy to take a peek at it, see if you've missed something.</p><p></p><p>For debugging I usually use a very simple console application with creates a SiteUtil (f.e. site=new EuroSportUtil() and calls some methods. thats the fastest way for me to get things done. (Mostly I don't have the patience to wait for mediaportal to start...)</p></blockquote><p></p>
[QUOTE="doskabouter, post: 1186168, member: 98267"] If language should be a saveable option, then perhaps it's better to treat it that way: add [code] [Category("OnlineVideosUserConfiguration"), Description("The language")] string language = null; [/code] to the beginning of the class (see f.e. eurosport) so that automatically creates an entry for that site in the onlinevideosconfiguration . Fisrt one to override is indeed the discoverdynamiccategories there you can load the root-json and start adding subcategories, and if present subsubcategories etc for as long as you have the info present in the root-json. Extra properties you want to set for the categories: hassubcategories=true, subcategories and subcategoriesdiscoverd And for the subcategories: parent, hassubcategories, subcategoriesdiscovered. If the videos are also present in the root-json then I'd mostly set the property Other of that subcategory to the List<VideoInfo> that you have to parse out of the json-node and override getvideos to check if the other is of type List<VideoInfo> and if so just return that. Another way to do this is to assign the json node to Other, and parse that node in getvideourl. Note: this is all typed without syntaxchecking, so there may be one or two typos... Anyway, if you have something (partly) working than I'm more than happy to take a peek at it, see if you've missed something. For debugging I usually use a very simple console application with creates a SiteUtil (f.e. site=new EuroSportUtil() and calls some methods. thats the fastest way for me to get things done. (Mostly I don't have the patience to wait for mediaportal to start...) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
OnlineVideos JSON parsing
Contact us
RSS
Top
Bottom