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
Moving Pictures
How best to keep Moving Pictures databases in sync across multiple clients?
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="RoChess" data-source="post: 552552" data-attributes="member: 18896"><p>I assume you have a dbase update batch script on the clients right now via task scheduler, so you add this code to that batch file. You can also relaunch MediaPortal after script finishes the dbase update.</p><p></p><p>This code only works in a pull environment (client obtains data from server), for a push one (server forces update onto clients) you would need to use additional remote commands. Via temporary lock/flag files you can also create a push/pull hybrid situation in which the server places a temp file on the client to indicate it can update itself. The client polls for existence of this file and if it exists runs the pull update and deletes the temp file after it is done. That way you can even verify the update worked on the server side.</p><p></p><p>PS: It might be easier to rely on a MediaPortal plugin scheduler, such as: <a href="https://www.team-mediaportal.com/files/Download/SystemUtilities/GMPS-GeorgsMPScheduler/" target="_blank">MEDIAPORTAL - free media center - GMPS - Georgs MP Scheduler</a></p><p></p><p>You can then simply schedule in a reboot at say 4am, and you modify your MediaPortal startup into a batch script that first downloads a new copy of the database from the server before it launches MediaPortal.</p></blockquote><p></p>
[QUOTE="RoChess, post: 552552, member: 18896"] I assume you have a dbase update batch script on the clients right now via task scheduler, so you add this code to that batch file. You can also relaunch MediaPortal after script finishes the dbase update. This code only works in a pull environment (client obtains data from server), for a push one (server forces update onto clients) you would need to use additional remote commands. Via temporary lock/flag files you can also create a push/pull hybrid situation in which the server places a temp file on the client to indicate it can update itself. The client polls for existence of this file and if it exists runs the pull update and deletes the temp file after it is done. That way you can even verify the update worked on the server side. PS: It might be easier to rely on a MediaPortal plugin scheduler, such as: [url=https://www.team-mediaportal.com/files/Download/SystemUtilities/GMPS-GeorgsMPScheduler/]MEDIAPORTAL - free media center - GMPS - Georgs MP Scheduler[/url] You can then simply schedule in a reboot at say 4am, and you modify your MediaPortal startup into a batch script that first downloads a new copy of the database from the server before it launches MediaPortal. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
How best to keep Moving Pictures databases in sync across multiple clients?
Contact us
RSS
Top
Bottom