[Plugin] MPSync - MediaPortal multi-seat Synchronization (5 Viewers)

alturismo

Portal Pro
July 28, 2009
121
9
Home Country
Germany Germany
for me it doesnt work with syncing ...

1st test, update tv series on main server, start a manual sync ... i see timestamp updated on sync files, but size stays same ...
on client start update to see what happens, after that starting client and open tv series its broken, no series in database ...

next try, clear all databases on client 2 and start an import through mpsync ends up with "empty" database files ....

i ll check again later and see what happens here ...

bypass mpsync as test by manually copying all database files from server to client manually worked btw ...

moving pictures seems to have same behavior here.

setup is server client arrow down (from c:/programdata/... to d:/mpsync/...), client 2 setup arrow up (from d:/mpsync/.. to c:/programdata/...)
 

m3rcury

Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    For the time being, the watched/resume synchronization works for 3 plugins, namely:
    • MovingPictures
    • Music - no resume is available for this plugin.
    • TVSeries
    If there are others you would like the plugin to cater for, please ask and I'll see what I can do to accommodate.



    Regards

    Thx for this.
    Is it possible to have this feature for the original MePo video plugin to?

    megahorst, will include as well.
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    for me it doesnt work with syncing ...

    1st test, update tv series on main server, start a manual sync ... i see timestamp updated on sync files, but size stays same ...
    on client start update to see what happens, after that starting client and open tv series its broken, no series in database ...

    next try, clear all databases on client 2 and start an import through mpsync ends up with "empty" database files ....

    i ll check again later and see what happens here ...

    bypass mpsync as test by manually copying all database files from server to client manually worked btw ...

    moving pictures seems to have same behavior here.

    setup is server client arrow down (from c:/programdata/... to d:/mpsync/...), client 2 setup arrow up (from d:/mpsync/.. to c:/programdata/...)

    alturismo, et all.

    Let me explain my setup and how the updates are working.
    • Master client where I do all the imports. The setup of MPSync on this client is Client -> Server.
    • One other client which is my main viewing client. The setup of MPSync on this client is Server -> Client. This client receives all the changes done on the master client. For convenience, I'll call this client and similarly set up clients as Slave Client.
    The watched/resume updates will follow the path in the opposite direction of the normal updates. i.e. if you are set up as Client -> Server, then the watched/resume path is Server -> Client.

    To illustrate better, let us take an example setup of 3 clients:
    • 1 Master Client (M)
    • 1 Server (S) (a central repository)
    • 1 Slave Client (A) on which I was watching a movie/series
    • 1 Slave Client (B) on which I want to continue viewing the above movie/series

    The synchronization of imports will follow the below path:

    (M) -> (S) -> (A)(B)

    The update of watched/resume status will follow the below path:

    (A) -> (S) -> (M) -> (S) -> (B)

    As you can see, the current process requires that the Master Client is available at all times for the synchronization to work. I was thinking of altering this to synchronize the watched/resume status even when Master is off, but it is a bit more complex and requires some more time.

    Can you check if your setup is in line with the above and advise.
     
    Last edited:

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    are there any other reason to use this version? bug fixes/speed improvements etc? ie. if I don't care about watched flags, is there any other advantage from v0.0.0.9?

    Collective, it has some speed/functionality improvements over the v0.0.0.9 version. The process used to remove a lot of records from the tables that differed in value. This version will update them instead of deleting them, hence should result in a smoother operation of the client.
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    MPSync v0.0.0.11 Beta has been just released. It contains the watched/resume synchronization for the MediaPortal native Videos plugin as requested by megahorst as well as a couple of minor fixes to the Master Client work file housekeeping. Please download from the repository link on post #1.

    Regards.
     

    Tgx

    Retired Team Member
  • Premium Supporter
  • January 22, 2008
    1,560
    1,115
    Home Country
    Italy Italy
    Please check sql syntax:


    Code:
    2013-04-01 15:27:27.926488 [ERROR][MPMain(1)]: SQLiteClient: TVSeriesDatabase4.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table main.mpsync has no column named EpisodeFolename query:update local_episodes set SeasonIndex = 1,EpisodeIndex = 1,StopTime =  '363' where EpisodeFilename = '\\Htpc\f\Serie Tv\Alcatraz\Alcatraz.1x01.Jack.Sylvane.ITA-ENG.720p.DLMux.h264-DarkSideMux.mkv'

    I think 'EpisodeFolename' should be 'EpisodeFilename'.

    Thanks

    Tgx
     
    Last edited:

    alturismo

    Portal Pro
    July 28, 2009
    121
    9
    Home Country
    Germany Germany
    ok, my setup follows your explenation too

    master client --> Server Place --> Client a
    --> Client b

    The master client aint used for watching, just used to import stuff and use for mpextended to watch external on my android devices with ampdroid,
    do i understand correctly it needs to run always for syncing watched status event its not used, only clent a / b are used ... ?

    Now lets start with my simple problem, i cleaned Server Place /database and /thumbs folder to startup with a clean sync,
    now when i make a manual sync i see lotsa errors in log like

    2013-04-01 15:27:37.507467 [Info.][(16)]: MPSync: Error reading data from table online_series in database TVSeriesDatabase4.db3
    2013-04-01 15:27:37.507967 [ERROR][(16)]: MPSync: Error reading data from table online_series in database TVSeriesDatabase4.db3
    2013-04-01 15:27:37.517469 [Info.][(16)]: MPSync: synchronization of watched for table online_series in database C:\ProgramData\Team MediaPortal\MediaPortal\database\TVSeriesDatabase4.db3 in progress...
    2013-04-01 15:27:37.526470 [Info.][(16)]: MPSync: synchronization of watched for table online_series in database C:\ProgramData\Team MediaPortal\MediaPortal\database\TVSeriesDatabase4.db3 complete.
    2013-04-01 15:27:37.526470 [Info.][(16)]: MPSync: synchronization of table online_series in database \\ALSSERVER\AlsServer_I\Mediaportal\MPSync\database\TVSeriesDatabase4.db3 in progress...
    2013-04-01 15:27:37.553473 [Info.][(16)]: MPSync: Error reading data from table season in database TVSeriesDatabase4.db3
    2013-04-01 15:27:37.553473 [ERROR][(16)]: MPSync: Error reading data from table season in database TVSeriesDatabase4.db3
    2013-04-01 15:27:37.561974 [Info.][(16)]: MPSync: synchronization of watched for table season in database C:\ProgramData\Team MediaPortal\MediaPortal\database\TVSeriesDatabase4.db3 in progress...
    2013-04-01 15:27:37.568475 [Info.][(16)]: MPSync: synchronization of watched for table season in database C:\ProgramData\Team MediaPortal\MediaPortal\database\TVSeriesDatabase4.db3 complete.
    2013-04-01 15:27:37.568475 [Info.][(16)]: MPSync: synchronization of table season in database \\ALSSERVER\AlsServer_I\Mediaportal\MPSync\database\TVSeriesDatabase4.db3 in progress...
    2013-04-01 15:27:38.356075 [Info.][(16)]: MPSync: Error reading data from table local_episodes in database TVSeriesDatabase4.db3
    2013-04-01 15:27:38.356075 [ERROR][(16)]: MPSync: Error reading data from table local_episodes in database TVSeriesDatabase4.db3
    ... log attached

    i assume thats why my server database is never updated and filesizes doesnt match ... and clients will never really work well either ;)

    attached pic is from main client where i fill up tv series etc ... other clients arrow is leading up, should be correct ?
     

    Attachments

    • Setup.PNG
      Setup.PNG
      24.9 KB

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Please check sql syntax:


    Code:
    2013-04-01 15:27:27.926488 [ERROR][MPMain(1)]: SQLiteClient: TVSeriesDatabase4.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table main.mpsync has no column named EpisodeFolename query:update local_episodes set SeasonIndex = 1,EpisodeIndex = 1,StopTime =  '363' where EpisodeFilename = '\\Htpc\f\Serie Tv\Alcatraz\Alcatraz.1x01.Jack.Sylvane.ITA-ENG.720p.DLMux.h264-DarkSideMux.mkv'

    I think 'EpisodeFolename' should be 'EpisodeFilename'.

    Thanks

    Tgx

    Tgx, thanks....last minute search and replace :(. Uploading a new version now!!!
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    MPSync v0.0.0.12 Beta uploaded. Apologies for the silly spelling mistake :eek:.
     

    Users who are viewing this thread

    Top Bottom