Giter Site home page Giter Site logo

synplex's Introduction

Synplex

Synplex, a portmanteau of Synchronise and Plex is intended to make the process of syncing the view status of a managed user with an admin user much simpler.

Usage

Note, the example below were run on a Linux system which has the database file located at the expected default location.

Help

$ java -jar ~/bin/synplex.jar -h
usage: Synplex [-h] [-d PATH] [-l] [-a ID [ID ...]] [-s] [-w SECONDS]

Synchronise Plex viewing.

Simple application that will synchronise the viewing stats between a list of
accounts and the main admin account. Originally created as a way of keeping the
admin account (mum and dad) and a single managed account (girl and boy) in sync.


named arguments:
  -h, --help             show this help message and exit
  -d PATH, --database-file PATH
                         Path  to  the  'com.plexapp.plugins.library.db'   database   file.   Defaults   to   '/var/lib/plexmediaserver/Library/Application  Support/Plex  Media  Server/Plug-in
                         Support/Databases/com.plexapp.plugins.library.db'

List accounts:
  -l, --list-accounts    List the accounts that can be copied. Used for getting a list of IDs for the main process.

Synchronise accounts:
  -a ID [ID ...], --accounts ID [ID ...]
                         IDs of the accounts to sync.
  -s, --single-run       Whether the application should exit after the first run, or run continuously.
  -w SECONDS, --wait SECONDS
                         Time to wait in seconds between each synchronisation. Defaults to 300 seconds.

List the accounts

Useful for finding the IDs for the main sync process.

$ java -jar ~/bin/synplex.jar -l
Accounts
           sdrycroft :            1
            monkey99 :     12345678
           monkey100 :     12345679

Synchronise the accounts

The following will synchronise the views between the admin account (1) and the two listed accounts. Effectively all three accounts will have exactly the same stats.

$ java -jar ~/bin/synplex.jar -a 12345678 12345679 -w 900

synplex's People

Contributors

sdrycroft avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.