Help with simple post processing script?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
lucidify
Newbie
Newbie
Posts: 2
Joined: February 9th, 2015, 8:04 pm

Help with simple post processing script?

Post 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.
josh4trunks
Newbie
Newbie
Posts: 30
Joined: August 25th, 2011, 10:32 am

Re: Help with simple post processing script?

Post by josh4trunks »

is the download being initiated from siclbeard/sickrage/couchpotato? if so they have plex modification support.
lucidify
Newbie
Newbie
Posts: 2
Joined: February 9th, 2015, 8:04 pm

Re: Help with simple post processing script?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help with simple post processing script?

Post 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%
Post Reply