MattMcDowall / PlexScripts

Various simple (typically single-task) scripts for managing media on a Plex server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlexScripts

Various simple (typically single-task) scripts for managing media on a Plex server.

Let me say up front . . .

. . . that I’m relatively new and largely self-taught when it comes to both Git and Python. So I probably do things in not-the-most-efficient ways pretty regularly. If you have any advice for better methods to accomplish anything here, by all means please let me know.

Requirements

Obviously, you need to have a running Plex server.

You’ll also need Python, on the computer where you’re running these (not necessarily on the server itself). To make these scripts useful for you, it will probably help to have at least a passing comfort level with tweaking a Python script. I’ll make it pretty obvious where & how to change things, where I can.

Dependencies

You’ll need to install the PlexAPI package.

Some of the scripts may make use of other packages, but usually nothing too exotic—collections, glob, os, re, etc. For now, I’m going to leave you to figure these out from the import lines in the scripts themselves. But if there’s anything too unusual or if something seems to keep popping up in numerous scripts, I’ll make a note of it here.

Authentication

Authentication is accomplished by means of a PlexAPI config file. It’s really easy to set up, and keeps that information securely out of potentially public folders like this git repository.

Why so “Mood”y?

You may notice that some of the scripts here use Plex’s “Mood” feature to mark things—to mark duplicate tracks, e.g. Obviously, this isn’t what the “Mood” is supposed to indicate (it’s designed to be kind of a sub-genre indicator). However, Plex doesn’t provide a sanctioned way to tag things, especially at the level of individual tracks. I needed to hijack another tag in order to attach some of these indicators. The Mood tag seemed the least likely to have accidental side effects, and it has the benefit of being available as a Smart-Playlist criterion.

About

Various simple (typically single-task) scripts for managing media on a Plex server.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%