Coder Social home page Coder Social logo

plex-rpc's Introduction

The script must be running on the same machine as your Discord client.

Installation

  1. cd <path to directory>
  2. python3 -m pip install -U -r requirements.txt
  3. python3 bot.py

When the script runs for the first time, you have to follow the on screen prompt for connecting to your Plex account, and a config.json file will automatically be created in the same directory.

logging = (list) debug = (boolean) true or false - extra logging information useRemainingTime = (boolean) true or flase - Displays your media's remaining time instead of elapsed time in your Rich Presence if enabled.) users = (list) token = (string) - Access token associated with your Plex account. servers = (list) name = (string) - Name of the Plex Media Server. listenForUser (string) [optional] - Finds a session for a specific user like a managed user or shared user. (Defaults to the account username if not set.) blacklistedLibraries (list, optional) - Ignores a session that thats found with this library name. whitelistedLibraries (list, optional) - Only finds a session that thats found with this library name.

EXAMPLE: config.json

{
  "logging": {
    "debug": true
  },
  "display": {
    "useRemainingTime": false,
  "users": [
    {
      "token": "HPbrz2NhfLRjU888Rrdt",
      "servers": [
        {
          "name": "Plex"
        },
        {
          "name": "PlexUser123",
          "listenForUser": "John",
          "whitelistedLibraries": ["Movies"],
          "blacklistedLibraries": ["TV Shows"]
        }
      ]
    }
  ]
}

plex-rpc's People

Contributors

6days9weeks avatar

Watchers

 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.