Skip to content

tpbrisco/plex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plex

Plex utilities

The utility "rename_from_disk" will rename Plex shows - a season at a time - based on the filenames associated with the episodes.

It searches Plex based on the library (TV Show, Music, Movies, etc), show title and season indicated on the command line, and renames the episodes based on the related file name.

The file name is assumed to be in a reasonable Plex format - - SE - .extension The episode will be named according to the "" in the filename.

Usage: rename_from_disk -l -t -s [-d] [-D] -l e.g. 'TV Shows', 'Music', etc -t Exactly as it appears in the Plex GUI -s Season name as it appears in Plex (e.g. "Season 1") option flags: "-d" for debugging, "-D" for "don't do" - process and show what renaming would occur.

examples: rename_from_disk.py -l 'TV Shows' -t 'Miss Marple' -s 'Season 1'

"rename_from_disk" can be run either on the local plex server, or any network indicated in the "List of networks tha are allowed without auth" (settings -> network). Set the environment variable PLEX_TOKEN to your plex token, and ensure that files are named following the Plex convention (<show name> - S0NE0M - <episode-name>).

Credits: Credits to github user "profplump" for his renameFromDisk.pl - which helped me figure out the messy Plex API.

About

Plex utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages