Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently October 20th, 2017, 5:32 pm

All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Persistent object
PostPosted: November 15th, 2013, 11:01 am 
Offline
Flash Video

Joined: January 14th, 2010, 11:15 am
Posts: 15
Hi Pete,

the new tmdb API requires to do multiple requests for building a URI. More detailed:
1. Send request for configuration
2. Obtain a string token and a size enum
3. Send request for movie details
4. Obtain a image name
5. Build image URI from token, enum and image name, http://124.amazon.com/1920x1080/backdrop.jpg.

As all the plugin calls are static and I hate plugins creating files or registry entries, it always leads to garbage, e.g. after removal or update.

Once you do some work on your plugin interface, ... . *string or whatever where a plugin could session-persistently store some serialized objects.

just my two cent :)
jrk


 Profile  
 Post subject: Re: Persistent object
PostPosted: November 15th, 2013, 12:04 pm 
Offline
Developer/Owner
User avatar

Joined: May 1st, 2009, 10:12 am
Posts: 11315
Location: Meridian, ID, USA
Since version 2.06+, plugins are only initialized once, so you can have static, persistent data in the property/variable of your fetcher plugin.

_________________
Peter Souza IV
stable version 2.16.11117.1299 / April 21st, 2017
Media Center Master on Facebook!


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group



Copyright © 2009-2017, Media Center Master, Inc. All rights reserved.