Giter Site home page Giter Site logo

plex_linter's Introduction

made-with-python LICENSE PYTHON

Introduction

Plex Linter is a python script that looks for various potential issues in your library, such as

  • Duplicate album titles (for albums that have been incorrectly split)
  • Duplicate artists (for artists that have been split)
  • Tracks without titles (sometimes Plex metadata deletes track titles)
  • Tracks linked to artists with Plex metadata that differ from what the MP3 tags say (requires running on the plex server and using the --local flag)
    • Note that the linter only works for music libraries currently

Setup

Requirements

  1. Python 3.12+
  2. Poetry

Note: Steps below are for OSX (other operating systems will require tweaking to the steps)

  1. Install Python 3.12, you can use asdf to manage multiple python versions if needed

  2. Install poetry according to the instructions

  3. Clone the plex_linter repo

    git clone https://github.com/karloskalcium/plex_linter
    
  4. Setup the virtual environment

    cd plex_linter
    make install
    

Usage

  1. Start the plex_linter, it will check for a config file, create a new one if it doesn't exist, and ask you to fill your Plex server URL and credentials to generate a Plex Access Token

    poetry run plex_linter
    
  2. If you are running on the plex server and want to check for mismatched tags, pass the --local flag as follows:

    poetry run plex_linter --local
    

Configuration

Sample

# plex_linter.toml
[server]
server_url = "http://plex.your-server.com"
server_token = "{your-X-Plex-Token}"

[content]
libraries = [
    "Music",
    "Audiobooks"
]

Plex

Plex Libraries

  1. Go to Plex and get all the names of your Plex Music Libraries you want to run the linter on

    • Example Library:

  2. Under libraries, type in the Plex Library Name (exactly)

  3. Note that the linter only works for music libraries currently

Plex Server URL

Plex Token

  1. Obtain a Plex Access Token:


Inspiration

This project started as a fork of https://github.com/l3uddz/plex_dupefinder and used a lot of that code as a starting point.

plex_linter's People

Contributors

karloskalcium avatar

Stargazers

 avatar  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.