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="howudodat" data-source="post: 1186745" data-attributes="member: 46799"><p>ok I must be missing a few more pieces of glue.</p><p>I have created my project and it has a single function for the moment: DiscoverDynamicCategories. It is in the path: OnlineVideos.Sites.pcarlson.mytv</p><p>[code]namespace OnlineVideos.Sites.pcarlson</p><p>{</p><p> public class MYTV : OnlineVideos.Sites.GenericSiteUtil</p><p> {</p><p> public override int DiscoverDynamicCategories()</p><p> {</p><p> Settings.Categories.Clear();</p><p> Settings.Categories.Add(new Category()</p><p> {</p><p> Name = "Test1",</p><p> Description = "Test Description"</p><p> });</p><p> Settings.DynamicCategoriesDiscovered = Settings.Categories.Count > 0;</p><p> return Settings.Categories.Count;</p><p> }</p><p></p><p> }</p><p>}[/code]</p><p>I added the site to OnlineVideoSites.xml</p><p>[code]<Site name="MyTV Test" util="MYTV" agecheck="false" enabled="true" lang="en"></p><p> <Description>Just testing</Description></p><p> </Site>[/code]</p><p>When I debug the dll (launch external program mediaportal.exe) my site doesn't show up anywhere. So I launch MP config, and config the plugin and add the site manually. I'm sure that's not the right way. The site shows up in MP when I go to manage sites, but doesn't show up under category English.</p><p></p><p>I'm sure I'm just missing a simple step.</p></blockquote><p></p>
[QUOTE="howudodat, post: 1186745, member: 46799"] ok I must be missing a few more pieces of glue. I have created my project and it has a single function for the moment: DiscoverDynamicCategories. It is in the path: OnlineVideos.Sites.pcarlson.mytv [code]namespace OnlineVideos.Sites.pcarlson { public class MYTV : OnlineVideos.Sites.GenericSiteUtil { public override int DiscoverDynamicCategories() { Settings.Categories.Clear(); Settings.Categories.Add(new Category() { Name = "Test1", Description = "Test Description" }); Settings.DynamicCategoriesDiscovered = Settings.Categories.Count > 0; return Settings.Categories.Count; } } }[/code] I added the site to OnlineVideoSites.xml [code]<Site name="MyTV Test" util="MYTV" agecheck="false" enabled="true" lang="en"> <Description>Just testing</Description> </Site>[/code] When I debug the dll (launch external program mediaportal.exe) my site doesn't show up anywhere. So I launch MP config, and config the plugin and add the site manually. I'm sure that's not the right way. The site shows up in MP when I go to manage sites, but doesn't show up under category English. I'm sure I'm just missing a simple step. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
OnlineVideos JSON parsing
Contact us
RSS
Top
Bottom