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
Netflix Plugin (first release available)
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="patrick" data-source="post: 70138" data-attributes="member: 12502"><p>Grab the info from where? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>Seems like at some point the user has to be able to enter this shopperid value.</p><p>You could just have it in a text file and read it from there, up to you.</p><p>May be a little easier for users to enter it on a screen somewhere though.</p><p></p><p>Without the complexity of the database you can use the MP settings.</p><p>IIRC would look close to:</p><p></p><p>[code]</p><p> protected virtual void LoadSettings()</p><p> {</p><p> using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml"))</p><p> {</p><p> _shopperid = xmlreader.GetValueAsString("netflixplugin", "shopperid", _defaultShopperID);</p><p> }</p><p> }</p><p></p><p> protected virtual void SaveSettings()</p><p> {</p><p> using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml"))</p><p> {</p><p> xmlwriter.SetValue("netflixplugin", "shopperid", _shopperid);</p><p> }</p><p> }</p><p>[/code]</p><p></p><p></p><p>HTH,</p><p>patrick</p></blockquote><p></p>
[QUOTE="patrick, post: 70138, member: 12502"] Grab the info from where? :D Seems like at some point the user has to be able to enter this shopperid value. You could just have it in a text file and read it from there, up to you. May be a little easier for users to enter it on a screen somewhere though. Without the complexity of the database you can use the MP settings. IIRC would look close to: [code] protected virtual void LoadSettings() { using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) { _shopperid = xmlreader.GetValueAsString("netflixplugin", "shopperid", _defaultShopperID); } } protected virtual void SaveSettings() { using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) { xmlwriter.SetValue("netflixplugin", "shopperid", _shopperid); } } [/code] HTH, patrick [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Netflix Plugin (first release available)
Contact us
RSS
Top
Bottom