Hi - just had to do a clean install (new server build), so I’m thinking about re-setting up my PMS libraries (the data/videos etc. still exists) via a batch file
After looking at "Plex Media Scanner.exe --help, It looks possible…
"-n, --add-section <name> --type <type:1,2,8> --agent <identifier> --location <path> --lang Add a new section. "
But I can’t find any explanation of what --type <type:1,2,8> are or what to use for --agent <identifier>
Can anyone help ?
1 Like
Here is how far I got:
./Plex\ Media\ Scanner -v -n Movies --type 1 --agent The Movie Database --location "/media/net1/-=MOVIES=-" --lang en --no-thumbs
–type seems to refer to the types of libraries: 1 = Movies, 2 = TV Shows, etc.
–lang does not seem to like the variations I have tried: English, en, En. The dropdown is blank when I edit the library properties in the webui.
–location seems to work well with the path to the media. I used quotes just to be safe.
Seems you cannot add more than one location in a single command. Issuing the whole command again just created a new library, instead of adding another location.
–no-thumbs is not being respected when creating a new library
–agent refers to the scanning agent: Plex Movie, or The Movie Database, but it did not except either and defaults to Personal Media.
-v is supposed to be verbose, but has no effect.
That’s as far as I got. My biggest wish is to be able to add multiple locations easily without having to use the web interface, as I have multiple NAS usits with my media spread out between them. I can get everything installed from a base server to the PMS running in a script, but creating libraries is still a manual process.
Let’s revive this thread and maybe someone who knows the correct variables can assist here.