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: 1186774" data-attributes="member: 98267"><p>It definitely should be present (the xml, it's located in the C:\ProgramData\Team MediaPortal\MediaPortal folder).</p><p></p><p>Did you add your project to the onlinevideos solution? That should do the copying (and probably some other magic).</p><p></p><p>Here's a sample from my standalone test-program:</p><p>[code]</p><p> static SiteSettings InitStuff(string name)</p><p> {</p><p> using (FileStream fs = new FileStream(@"C:\ProgramData\Team MediaPortal\MediaPortal\OnlineVideoSites.xml", FileMode.Open, FileAccess.Read))</p><p> {</p><p> XmlSerializer ser = new XmlSerializer(typeof(SerializableSettings));</p><p> SerializableSettings s = (SerializableSettings)ser.Deserialize(fs);</p><p> fs.Close();</p><p></p><p> foreach (SiteSettings tmp in s.Sites)</p><p> {</p><p> if (tmp.Name == name)</p><p> return tmp;</p><p> }</p><p> return null;</p><p> }</p><p> }</p><p></p><p> static void testUitzendinggemist()</p><p> {</p><p></p><p> SiteSettings siteSettings = InitStuff("Uitzending Gemist");</p><p> List<VideoInfo> v;</p><p> UitzendingGemistUtil site = new UitzendingGemistUtil();</p><p> site.Initialize(siteSettings);</p><p> site.DiscoverDynamicCategories();</p><p>}</p><p></p><p>[/code]</p></blockquote><p></p>
[QUOTE="doskabouter, post: 1186774, member: 98267"] It definitely should be present (the xml, it's located in the C:\ProgramData\Team MediaPortal\MediaPortal folder). Did you add your project to the onlinevideos solution? That should do the copying (and probably some other magic). Here's a sample from my standalone test-program: [code] static SiteSettings InitStuff(string name) { using (FileStream fs = new FileStream(@"C:\ProgramData\Team MediaPortal\MediaPortal\OnlineVideoSites.xml", FileMode.Open, FileAccess.Read)) { XmlSerializer ser = new XmlSerializer(typeof(SerializableSettings)); SerializableSettings s = (SerializableSettings)ser.Deserialize(fs); fs.Close(); foreach (SiteSettings tmp in s.Sites) { if (tmp.Name == name) return tmp; } return null; } } static void testUitzendinggemist() { SiteSettings siteSettings = InitStuff("Uitzending Gemist"); List<VideoInfo> v; UitzendingGemistUtil site = new UitzendingGemistUtil(); site.Initialize(siteSettings); site.DiscoverDynamicCategories(); } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
OnlineVideos JSON parsing
Contact us
RSS
Top
Bottom