Post processing script (ripsubtitles.sh)strange behaviour

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
Aeronnl
Newbie
Newbie
Posts: 17
Joined: February 1st, 2013, 3:59 pm

Post processing script (ripsubtitles.sh)strange behaviour

Post by Aeronnl »

Hi,

I am using Sabnzbd under Ubuntu server, and everything works great except for one thing.
I have a script for extracting the .srt file from a downloaded file (ripsubtitles.sh), and i have set it up in the categories section.
I also have pointed out the folder where the script is located. ( under .Sickbeard scripts, to have everything together)
When a movie finished downloading, the script runs, but when it finishes, the script result screen is empty.
The srt file itself is extracted, but when i choose the srt on my Samsung tv, (running Plex) it shows nothing.
What really strange is that when i run the sript manualy in command line, the srt is also extracted, but after it finishes, it DOES show the subtitle on my tv.
Also, i have set the script for Sickbeard as an "extra script" in the config.ini, and Sabnzbd handles this correctly, it shows up in the script result, and subtitles also show up on my tv.
So there must be something going wrong with sabnzbd handling the scipt or something.

Any help would be highly appreciated.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by shypike »

Are you sure the srt files get the right ownership/access rights?
That's something your script should take care off.
Aeronnl
Newbie
Newbie
Posts: 17
Joined: February 1st, 2013, 3:59 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by Aeronnl »

I am fairly new to linux, but the script contains "chmod g+rw".
Is this correct?
It is kind if weird that post processing for Sickbeard is correct though...

http://pastebin.com/yfvveTGq
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by shypike »

chmod g+rw,o+r might be needed.
It depends on which user account needs to read and show the subtitles.
SABnzbd can correct the access rights of its final files too, see Config->Folders Permissions.
(Explanation: http://wiki.sabnzbd.org/unix-permissions )
Aeronnl
Newbie
Newbie
Posts: 17
Joined: February 1st, 2013, 3:59 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by Aeronnl »

shypike wrote:chmod g+rw,o+r might be needed.
It depends on which user account needs to read and show the subtitles.
SABnzbd can correct the access rights of its final files too, see Config->Folders Permissions.
(Explanation: http://wiki.sabnzbd.org/unix-permissions )
Ok, i Will try chmod g+rw,o+r later in then.
I have set 0777 in the permissions, so that must he correct i think!
I Will post my results tonight!
Aeronnl
Newbie
Newbie
Posts: 17
Joined: February 1st, 2013, 3:59 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by Aeronnl »

shypike wrote:chmod g+rw,o+r might be needed.
It depends on which user account needs to read and show the subtitles.
SABnzbd can correct the access rights of its final files too, see Config->Folders Permissions.
(Explanation: http://wiki.sabnzbd.org/unix-permissions )
Turns out your solution worked! ;D
I've added o+r in the script and now the subs are showing on my tv.
The "script result" window is still empty, which had me thinking it didn't work at first, but i does!
Thnx alot!! :D
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Post processing script (ripsubtitles.sh)strange behaviou

Post by shypike »

There will only be "script output" if your script produces any diagnostic output.
Good to read that it works now.
Post Reply