Skip to content

Instantly share code, notes, and snippets.

@InspectorClick
Created January 31, 2018 14:49
Show Gist options
  • Save InspectorClick/252a4690aa617f6d8c73f72c4dde4183 to your computer and use it in GitHub Desktop.
Save InspectorClick/252a4690aa617f6d8c73f72c4dde4183 to your computer and use it in GitHub Desktop.
Plex - Print out a list of all media (under a specific category)
// Windows
a) Open a command prompt where the Plex Media Scanner.exe resides
// In my case - E:\Plex\Plex Media Server.exe
b) List out the libraries (keys)
"Plex Media Scanner.exe" --list
--list will show all libraries with an associated key
// 2: Films
// 1: Series
// 8: Tutorials
Now that the key is know for the specific library...
c) Create a list of all media assocated with the library key
"Plex Media Scanner.exe" --list --section 2 > films_list.txt
Within quotes since there are spaces withing the .exe name,
I --list out the contents of --section 2 (Library Name: Films with the key of 2)
then save the --list to a text file called films_list.txt withing the same directory
where I ran the command.
Plex Media Scanner.exe has many more options, to access a list of options, run within a terminal:
"Plex Media Scanner.exe" --help
The following command prints out a list of all films, along with their art and media paths.
"Plex Media Scanner.exe" --tree --section 2 > tree_list.txt
* Year One [2009]
* Poster: metadata://posters/com.plexapp.agents.localmedia_ce0aab80cd68c656eabe3cb0b97ef5e9b73d35a7
* Art: metadata://art/com.plexapp.agents.localmedia_6f2b76ce0d8d6dcc18fc82439583abb785fed8f7
* Part: \\dlink-9dfcf0\Volume_2\Films\Y\Year One (2009)\Year One (2009).avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment