- January 12, 2015
- 9
- 17
- Home Country
-
Germany
Deprecated: Further development will be done under the name CentralizedDatabase
Description:
WatchedSynchronizer is a process plugin that synchronizes several informations across your MediaPortal databases. As the plugin name suggest the plugin focuses on synchronizing the watched status of your media accross several databases. This includes extended information like the time you stopped the playback. This is responsible for the watched percentage displayed in MediaPortal.
This plugin is intended for setups that have a centrally stored master database and multiple clients with their own databases. It is recommended to configure the master database as an database to be synchronized from each client. If you watch some media on one of the clients the watched status gets synchronized to the master database and is available for all other clients as well.
As a result it does not matter on which client you watch some media since the status is always synchronized across other databases. You keep consistent track of what you already watched.
Currently supported databases for synchronizing:
Download
Source
Configuration:
The configuration is done in an simple manner where you just select the database type and specify a file (UNC is of course possible). There is no verification if the specified file matches the selected database type --> Unhandled crashes are likely on faulty configurations.
Background for plugin:
The primary reason why I created the plugin was that I had problems with my environment setup. I have the need for two separate MediaPortal installations. One on my notebook and one on my server which has a beamer connected to a HDMI port and is hosting the TV Server.
My first attempt was working with a single remote database which both installations work on. This did not work out as it happened quite often that the database went corrupt to some simultanus modifications. The next step was working with separate database which were fetched from a central master on each start of the MediaPortal client. This did work but the watched status got lost since there was no synchronization with the master.
Since at that time no plugin provided the functionality I required I decided to create one myself. My intention was to hook on the update command executed after a playback was stopped and to send it to multiple databases. Due to my experience I also paid attention to open the databases as short as possible to prevent corruption.
This plugin has been created multiple months ago therefore I did not test it on current MediaPortal releases since my own environment is not updated to each release. I just decided to publish the plugin in case someone has a similar setup to me and is interested. Therefore I added some comments and did so.
Please be aware this is the first thing I have ever done with C# so experienced programmers might facepalm on some parts.
I added extensive (at least for me) comments so other people might get an idea of what I did.
Description:
WatchedSynchronizer is a process plugin that synchronizes several informations across your MediaPortal databases. As the plugin name suggest the plugin focuses on synchronizing the watched status of your media accross several databases. This includes extended information like the time you stopped the playback. This is responsible for the watched percentage displayed in MediaPortal.
This plugin is intended for setups that have a centrally stored master database and multiple clients with their own databases. It is recommended to configure the master database as an database to be synchronized from each client. If you watch some media on one of the clients the watched status gets synchronized to the master database and is available for all other clients as well.
As a result it does not matter on which client you watch some media since the status is always synchronized across other databases. You keep consistent track of what you already watched.
Currently supported databases for synchronizing:
- MP Video database
- MP TVseries database
Download
Source
Configuration:
The configuration is done in an simple manner where you just select the database type and specify a file (UNC is of course possible). There is no verification if the specified file matches the selected database type --> Unhandled crashes are likely on faulty configurations.
Background for plugin:
The primary reason why I created the plugin was that I had problems with my environment setup. I have the need for two separate MediaPortal installations. One on my notebook and one on my server which has a beamer connected to a HDMI port and is hosting the TV Server.
My first attempt was working with a single remote database which both installations work on. This did not work out as it happened quite often that the database went corrupt to some simultanus modifications. The next step was working with separate database which were fetched from a central master on each start of the MediaPortal client. This did work but the watched status got lost since there was no synchronization with the master.
Since at that time no plugin provided the functionality I required I decided to create one myself. My intention was to hook on the update command executed after a playback was stopped and to send it to multiple databases. Due to my experience I also paid attention to open the databases as short as possible to prevent corruption.
This plugin has been created multiple months ago therefore I did not test it on current MediaPortal releases since my own environment is not updated to each release. I just decided to publish the plugin in case someone has a similar setup to me and is interested. Therefore I added some comments and did so.
Please be aware this is the first thing I have ever done with C# so experienced programmers might facepalm on some parts.
I added extensive (at least for me) comments so other people might get an idea of what I did.
Last edited: