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
WebService and Mobile Access
[WebService] General Media Access Webservice
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="Oxan" data-source="post: 751306" data-attributes="member: 97484"><p>Currently there's a lot of code duplication in the web service. Most methods open the database, execute a query, loop through the results and select a subset of it (_start and _end), and close the database. This isn't very good for code readability. I've created an experimental patch for this: it creates a Database class, which handles the standard method calls. I've been able to reduce the size of MPTvSeries.cs with almost 40%, but more importantly, the code is a lot cleaner (for example removal of the -99 magic number). It shouldn't have any effect on users as the API isn't changed, but only the internal code. I can cleanup the other classes also, but the patch is already quite big and I want to avoid to create an monster-patch which is un-updatable (is that even a word?).</p><p></p><p>Mike: the WebMediaPortal patches will come soon too, working on it now <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Oxan, post: 751306, member: 97484"] Currently there's a lot of code duplication in the web service. Most methods open the database, execute a query, loop through the results and select a subset of it (_start and _end), and close the database. This isn't very good for code readability. I've created an experimental patch for this: it creates a Database class, which handles the standard method calls. I've been able to reduce the size of MPTvSeries.cs with almost 40%, but more importantly, the code is a lot cleaner (for example removal of the -99 magic number). It shouldn't have any effect on users as the API isn't changed, but only the internal code. I can cleanup the other classes also, but the patch is already quite big and I want to avoid to create an monster-patch which is un-updatable (is that even a word?). Mike: the WebMediaPortal patches will come soon too, working on it now :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
[WebService] General Media Access Webservice
Contact us
RSS
Top
Bottom