suball - space and remove ENG?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Soulplayer
Posts: 3
Joined: 21 Dec 2014, 09:45

suball - space and remove ENG?

Post by Soulplayer »

Hello,

Is there a way to edit the suball script? I'm currently running filebot on my synology NAS. I have 2 problems with filebot:
1. it does not recognize following path "/volume1/video/TV show/". I have to edit my TV show folder to TVshow. Then it works. Is there a fix so I can use it with a space?
2. suball automatically adds eng to the srt parth. I know a lot of programs support this (and mine does to) but I already have tons of srt files with the lang added to it... If I let filebot download each srt again it will have to download 2000 srt files and with a 200 daily max this is not possible.

code used to download subtitles:

Code: Select all

filebot -script fn:suball -–lang en /volume1/video/TV show
code to edit the name (but this is not a sollution for me!)

Code: Select all

filebot -script fn:replace --def "e=.eng.srt" "r=.srt" /volume1/video/TV show
thank you,

Soul
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: suball - space and remove ENG?

Post by rednoah »

1.
Learn how to use the command-line => viewtopic.php?f=4&t=1899

2.
You shouldn't edit the name. Just keep the .eng or add it to existing subtitles. If you absolutely need to do fn:replace then do it with --action copy so you'll have two subtitle file twice with and without language tag.

Or you can try this option:

Code: Select all

--format MATCH_VIDEO
:idea: Please read the FAQ and How to Request Help.
Soulplayer
Posts: 3
Joined: 21 Dec 2014, 09:45

Re: suball - space and remove ENG?

Post by Soulplayer »

Thank you for your support! I now know my questions were really basic :):

Code: Select all

filebot -script fn:replace --def  "e=.srt" "r=.eng.srt" "/volume1/video/TV show/"
filebot -script fn:suball --lang en "/volume1/video/TV show/"
filebot -script fn:replace --def  "e=.srt" "r=.eng.srt" "/volume1/video/movie/Films"
filebot -script fn:suball -–lang en "/volume1/video/movie/Films"
Another question so I can see my logs. I know I have to change the output but I don't really understand the post in http://www.filebot.net/forums/viewtopic.php?f=3&t=1802. I added this one tot my taskmanager but I'm thinking that is not the right place to put it?
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: suball - space and remove ENG?

Post by rednoah »

Do you know what SSH is?
Do you know what a shell is?
Do you know what output redirection is?
Do you know what standard output and standard error is?

I don't understand your question. But I'm sure the answer is obvious once you have acquired some basic Linux skills by means of the internet ;)

If you don't understand that post then you need to learn more, or find another way.
:idea: Please read the FAQ and How to Request Help.
Soulplayer
Posts: 3
Joined: 21 Dec 2014, 09:45

Re: suball - space and remove ENG?

Post by Soulplayer »

rednoah wrote:Do you know what SSH is?
Yes
rednoah wrote:Do you know what a shell is?
Yes
rednoah wrote:Do you know what output redirection is?
No (is it to redirect the output of a log file to another place?
rednoah wrote:Do you know what standard output and standard error is?
No

Sorry :( I have always used the Filebot GUI with windows or mac. Just used SSH for gameservers like counter-strike, mirc bots, ventrillo,... Never for filebot.
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: suball - space and remove ENG?

Post by rednoah »

These links might be useful:
viewtopic.php?f=8&t=1558

Feel free to add links that you find useful in learning basic shell skills. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply