how to exclude multiple .srt files from renaming?

Support for Windows users
Post Reply
Golio
Posts: 5
Joined: 19 Mar 2016, 10:56

how to exclude multiple .srt files from renaming?

Post by Golio »

each movie has a sub folder inside which contains multiple subtitles; I just want them unchanged during renaming and moving, but filebot wants to rename them all to original movie name and put them in sub folder!
i read several help topic and almost none of them help; there are some solutions via scripting which I'm trying to avoid;
is there any simple file format line to use?

my format:

Code: Select all

Movies/{n} ({y}, {rating})/{n} ({y})
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to exclude multiple .srt files from renaming?

Post by rednoah »

Please post examples of current file paths and expected output file paths.

Do you want to exclude subtitles? Then just drop in the video files, not the subtitles.
Do you want special format logic that applies only to subtitles? Then use conditionals in the format.

Per standard, subtitles should be named with the same name as the movie, plus language tag, and be in the same folder as the video file. What are you trying to do?
:idea: Please read the FAQ and How to Request Help.
Golio
Posts: 5
Joined: 19 Mar 2016, 10:56

Re: how to exclude multiple .srt files from renaming?

Post by Golio »

since I'm renaming a few hundreds of movies, I can't selectively drop just video files into filebot, and prefer to rename the whole database in one go
here is an example of the original file path and name:
F:\HD\Daddys Home 2015 1080p BluRay x264 DTS-JYK\Subs\
English(SDH).srt
English.srt
French.srt
Portuguese.srt
Spanish.srt
I just want an output like this:
F:\HD\Daddys Home 2015 (2015, 5.3)\
Daddys Home (2015).mkv
Daddys Home (2015).srt ==>(English.srt)
apparently the {lang} does not work, or I don't know how to make it work
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to exclude multiple .srt files from renaming?

Post by rednoah »

Yes you can.

1. Search for *.mp4 (list all videos)
2. CTRL+A (select all)
3. Drag into FileBot


Also, simple logic like if-then-else can easily be expressed in the format:

Code: Select all

Movies/{ny}/{ext =~ /srt/ ? fn : ny}
:idea: Please read the FAQ and How to Request Help.
Golio
Posts: 5
Joined: 19 Mar 2016, 10:56

Re: how to exclude multiple .srt files from renaming?

Post by Golio »

thanks for your replies
well I don't know any programing and can't write my own lines, I thought this problem and procedure is so basic that there are presets in the program for it (renaming subtitles!)
I guess this program is so advanced and complicated that is unable to do simple stuff like this!!!


just simply dragging video files into filebot doesn't rename and move subs and that's not what I want.

your second suggestion makes another extra folder in it and put another subfolder named sub under that, I want them together in one folder video file and srt files in same folder;
preferably just rename the english.srt into (movie name).srt and put them in same folder or just move all of them without renaming them and put them in same folder and video file. that simple :D
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to exclude multiple .srt files from renaming?

Post by rednoah »

I don't understand what you're trying to say.

1.
You just want to process video files? Easy. Only select video files.

2.
You want to keep the filename for subtitles, but use Name (Year) for movie files. Easy, since you can copy & paste the code.

This is what say you want:

Code: Select all

F:/HD/Daddys Home 2015 (2015, 5.3)/Daddys Home (2015).mkv
F:/HD/Daddys Home 2015 (2015, 5.3)/English.srt
This format will yield exactly that:

Code: Select all

F:/HD/{n} {y} ({y}, {rating})/{ext =~ /srt/ ? fn : ny}
It's if-then-else logic, not rocket science. :lol:
:idea: Please read the FAQ and How to Request Help.
Golio
Posts: 5
Joined: 19 Mar 2016, 10:56

Re: how to exclude multiple .srt files from renaming?

Post by Golio »

This format will yield exactly that:

Code: Select all

F:/HD/{n} {y} ({y}, {rating})/{ext =~ /srt/ ? fn : ny}
this one kinda does it, but keeps the original .srt names, and won't change the english.srt into (movie name year).srt, and I don't care about the rest of .srt files

but this one is good enough I guess, thanks for your patience and answers :)
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to exclude multiple .srt files from renaming?

Post by rednoah »

Well, we've gone full circle, we're back at renaming properly:

Code: Select all

F:/HD/{n} {y} ({y}, {rating})/{ny}
Though I'd recommend adding language tags, as per the naming standard:

Code: Select all

F:/HD/{n} {y} ({y}, {rating})/{ny}{'.'+lang}
:idea: Please read the FAQ and How to Request Help.
Golio
Posts: 5
Joined: 19 Mar 2016, 10:56

Re: how to exclude multiple .srt files from renaming?

Post by Golio »

lang tag was the first thing I tried, but had no success
it just renames all .srt files into (movie name).srt and put them in a single folder which is no good
in other word it doesn't recognize languages in .srt files to tag them properly
Post Reply