Organize subtitles

Any questions? Need some help?
Post Reply
madro17
Posts: 3
Joined: 07 Feb 2020, 07:53

Organize subtitles

Post by madro17 » 07 Feb 2020, 07:59

Hi,

i use this sheme to organize my movies and series. Everything works well, but i want to have the subtitles in an extra folder called Subs. Please can you help me guys?

MOVIES:

Code: Select all

U:/downloads/_SORTED-MOVIES/{n} - {y} {vf} {ac}-{channels}/{n} - {y} {vf} {ac}-{channels}
{if (file.subtitle) fn =~ /[-]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[-]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[-]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[.]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[.]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[.]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[_]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[_]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[_]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[-]engl$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[.]engl$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[_]engl$/ ? '-eng' : '' }
SERIES:

Code: Select all

U:/downloads/_SORTED-SERIEN/{n} - {s00e00} - {t} - {vf} {ac}-{channels}/{n} - {s00e00} - {t} - {airdate} {vf} {ac}-{channels}
{if (file.subtitle) fn =~ /[-]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[-]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[-]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[.]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[.]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[.]forced$/ ? '-forced' : '' }

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

Re: Organize subtitles

Post by rednoah » 07 Feb 2020, 08:06

I suppose you could just insert the extra folder level somewhere in your destination path:

Code: Select all

{f.subtitle ? '/SUBS' : null}

:idea: As for adding .eng-forced and friends to the end of the file path, {subt} will generally take care of that.
:idea: Please read the FAQ and How to Request Help.

madro17
Posts: 3
Joined: 07 Feb 2020, 07:53

Re: Organize subtitles

Post by madro17 » 07 Feb 2020, 08:40

Hi,

thanks for your answer. For sure i did something wrong.
I tested now with this sheme:

Code: Select all

U:/downloads/_SORTED-SERIEN/{n} - {s00e00} - {t} - {vf} {ac}-{channels}/{n} - {s00e00} - {t} - {airdate} {vf} {ac}-{channels}
{f.subtitle ? '/SUBS' : null}
{if (file.subtitle) fn =~ /[-]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[-]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[-]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[.]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[.]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[.]forced$/ ? '-forced' : '' }

Now i get an extra folder, which has the same name as the movie folder. In this folder are the subtitle files, but they got renamed to SUBS.idx and SUBS.sub

madro17
Posts: 3
Joined: 07 Feb 2020, 07:53

Re: Organize subtitles

Post by madro17 » 07 Feb 2020, 09:42

It works now, thank you :)

Code: Select all

U:/downloads/_SORTED-SERIEN/{n} - {s00e00} - {t} - {vf} {ac}-{channels}/{f.subtitle ? 'Subs' : null}/{n} - {s00e00} - {t} - {airdate} {vf} {ac}-{channels}
{if (file.subtitle) fn =~ /[-]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[-]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[-]forced$/ ? '-forced' : '' }
{if (file.subtitle) fn =~ /[.]eng$/ ? '-eng' : '' }
{if (file.subtitle) fn =~ /[.]ger$/ ? '-ger' : '' }
{if (file.subtitle) fn =~ /[.]forced$/ ? '-forced' : '' }

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

Re: Organize subtitles

Post by rednoah » 07 Feb 2020, 09:55

Yep. You got it. Insert it where you want it to be inserted. ;)
:idea: Please read the FAQ and How to Request Help.

Post Reply