Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PLEX and XBMC Peaceful Coexistence?

Windza82Windza82 Posts: 8Members
Query about the coexistence of PLEX and XBMC
Hi All,

I'm a recent user of Plex Media Server for Windows and Plex for iOS and long time user of XBMC for the same devices and had a query about sharing/synchronising information between the two... let me explain.

Having been with XBMC for some time, I have a rather extensive library (~6TB of content) centralised in mySQL for all devices... this works exceptionally well on my Windows boxes but less so on iOS (I have an iPad, iPad2 and iPhone4) which is slow, finicky and simply not yet implemented adequately for iOS.
Playback using PLEX on the other hand works wonderfully on iOS but not at all on Windows (unless I utilise pleXBMC which seems a little redundant to me).

My frustration is primarily with the "Watched" flagging on video content (and to a lesser degree the "Resume from" functionality) which is well established for my XBMC library but completely absent from PLEX.

What I'd really love to do is have this information synchronised between PLEX and XBMC so that there's some parity between iOS and Windows. From what I understand of pleXBMC, it reads purely from the PLEX Media Server and I'd be required to re-establish this information with PLEX (a considerable task I would think?)

I've searched high and low and either I'm completely clueless or the question hasn't been asked, so I'm posting it here...

Is there any way to sync "Watched" flags and "Resume From" information between PLEX Media Server and XBMC?

Any help is appreciated...

Thx... Windza

Comments

  • hippojayhippojay Posts: 958Members, Plex Pass Plex Pass
    Not 100% sure I understand:

    * you have your media in XBMC library
    * you use Plex Media Server for iOS playback
    * you want resume watched in XBMC to be reflected in Plex Media Server
    * you want resume watched in Plex iOS to be reflected back into XBMC

    PleXBMC does indeed read only from PMS (although it writes back watched and resume information), and you would need to migrate your media from XBMC to Plex. Export to .nfo and a plex import with "local media assets" might do this quickly.


    What you probably need is someone to write a plugin for plex media server to read the library from XBMC (basically pleXBMC in reverse). Then you could have your library in XBMC only and have plex read it back for iOS. XBMC does provide an httpapi which can adjust the watched/resume, although this is being replaced with a JSON interface which doesnt yet provide this.

    I've kicked around the idea, but it means getting to grips with the Plex plugin framework - which I haven't got the time for yet. Perhaps someone else will step in.
  • Windza82Windza82 Posts: 8Members
    hippojay wrote:

    Not 100% sure I understand:

    * you have your media in XBMC library
    * you use Plex Media Server for iOS playback
    * you want resume watched in XBMC to be reflected in Plex Media Server
    * you want resume watched in Plex iOS to be reflected back into XBMC

    PleXBMC does indeed read only from PMS (although it writes back watched and resume information), and you would need to migrate your media from XBMC to Plex. Export to .nfo and a plex import with "local media assets" might do this quickly.


    What you probably need is someone to write a plugin for plex media server to read the library from XBMC (basically pleXBMC in reverse). Then you could have your library in XBMC only and have plex read it back for iOS. XBMC does provide an httpapi which can adjust the watched/resume, although this is being replaced with a JSON interface which doesnt yet provide this.

    I've kicked around the idea, but it means getting to grips with the Plex plugin framework - which I haven't got the time for yet. Perhaps someone else will step in.


    hippojay, you do understand 100%...

    I was actually hopeful that Plex would have an option to utilise the same mySQL DB (as XBMC) but I'm guessing that Plex deviated before the mySQL feature was introduced in XBMC and hasn't been implemented?

    You mention "Export to .nfo and a plex import with "local media assets" might do this quickly" - are you implying that the watched flags would be transferred in this instance or just how to migrate the media to Plex?

    Thanks for info...
  • hippojayhippojay Posts: 958Members, Plex Pass Plex Pass
    Windza wrote:

    I was actually hopeful that Plex would have an option to utilise the same mySQL DB (as XBMC) but I'm guessing that Plex deviated before the mySQL feature was introduced in XBMC and hasn't been implemented?


    No, plex have developed a different way of storing the library that is completely different to XBMC. So no way to utilise the XBMC structure directly. This is why a plugin would be needed to translate XBMC to PMS.


    You mention "Export to .nfo and a plex import with "local media assets" might do this quickly" - are you implying that the watched flags would be transferred in this instance or just how to migrate the media to Plex?


    Hmm, I don't think that watched and resume is transferred over. Sorry.
  • Windza82Windza82 Posts: 8Members
    No problems...

    If there was an easy way to transfer the "watched" flags to Plex I'd consider using PleXBMC on the Windows client and effectively maintaining only the Plex library - I know XBMC stores this in the mySQL DB, is it readily accessible in the Plex library such that an SQL script could be adapted to insert these values (I'm not sure what DB software Plex is using)?
  • hippojayhippojay Posts: 958Members, Plex Pass Plex Pass
    You could write a script to sync these up I suppose:

    * When XBMC finished playing, write the resume/watched status to PLEX (simple HTTP GET on a URL + args)
    * Periodically sync up XBMC with Plex status by getting the metadata XML from PMS (again a single web page which holds the data - you would need to parse though)
  • catellocatello Posts: 57Members, Plex Pass Plex Pass
    hi,
    I have the same problem of you Windza. so if you found or will find a solution to your problem please tell me :)

    thank
  • Windza82Windza82 Posts: 8Members
    Hi catello,
    I'm sorry to tell you I never explored this any further; the primary reason I was doing this was because PMC was not available on Windows at the time and I was more familiar with XBMC. Thankfully, PMC was finally developed for Windows and I was able to run exclusively with Plex.
    I've gotta say I miss the flexibility and functionality of XBMC but Plex has been far more dependable and a little more polished.
    Cheers,
    Windza

    catello wrote:

    hi,
    I have the same problem of you Windza. so if you found or will find a solution to your problem please tell me :)

    thank
  • mongjohnmongjohn Posts: 10Members, Plex Pass Plex Pass
    Sorry for bumping an old thread, but I'm struggling with this also; been using XBMC for a long time and still think it's the best solution for media on the LAN, but PMS combined with iOS and Android more than holds its own! Only problem is having to maintain two separate libraries.
    If Plex and XBMC were able to sync watched statuses, all would be perfect!

    If XBMC was able to generate a text file everytime the status of an item in the library was changed, Plex could read this file and set the items in its library correspondingly and vice versa.

    For example, if I watch an episode of House, XBMC could generate a line like:
    House S02E03 [watched/unwatched/timestamp]
    

    I can't code, but would it be all that hard for PMS to read this line and translate it into something that's present in the PMS library?

    This is a really simple, not very pretty solution - but would it work? ;)
Sign In or Register to comment.