Page 1 of 1

Help with simple post processing script?

Posted: February 9th, 2015, 8:06 pm
by lucidify
I'm trying to make a script that calls plex to scan the file which was just downloaded... Should be pretty simple! But it seems plex media server refuses to register "c:\" and will only register "C:\" (All caps). The script it -

Code: Select all

CALL "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --scan --section 06 --directory %1
Nice And simple... However as mentioned, it wont work, since sab returns the drive letter as lowercase, and plex for some stupid reason, requires it to be uppercase (Shouldn't matter in windows!).

Is there any simple fix to this? I could just scan the whole directory... but may as well be as efficient as possible.

Re: Help with simple post processing script?

Posted: February 9th, 2015, 8:11 pm
by josh4trunks
is the download being initiated from siclbeard/sickrage/couchpotato? if so they have plex modification support.

Re: Help with simple post processing script?

Posted: February 9th, 2015, 8:25 pm
by lucidify
Nope.. it's music. I don't like headphones, which is why I'm resorting to making a basic script to update plex for music, since I have no automated program for it.

Re: Help with simple post processing script?

Posted: February 10th, 2015, 4:03 pm
by shypike

Code: Select all

set mydir=%1
set mydir=%mydir:c:=C:%

CALL "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --scan --section 06 --directory %mydir%