TV Show + Subtitles

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

TV Show + Subtitles Mon Jan 30, 2017 3:53 am • by just.tomasz
Hi guys, my setup regarding automatic download and watching etc is pretty much done with one exeption :/

I have problem with subtitles (btw english)

at first i set this like this:

1. download a tv show
2. automaticly download subtitles with subsmarine (.srt)
3. run it by iFlicks

but the problem is that when subsmarine is still working and didn't download subtitles yet... iflicks is starting. As a result video imported to iTunes is without subs. The other thing is that the subtitles may not be released yet to this specific episode.

So I decided to set this up like this:
1. download a tv show (to specific folder "downloaded")
2. automaticly download subtitles (from folder "downloaded") with subsmarine (.srt)
2a. move two files with matching names (matching to each other) to folder "with subs". if there are no subs matching video don't move anything.
3. run it by iFlicks (from folder "with subs")

but I cant figure out step 2a :/

any ideas?
just.tomasz
 
Posts: 2
Joined: Mon Jan 30, 2017 3:29 am

Re: TV Show + Subtitles Mon Jan 30, 2017 1:34 pm • by Mr_Noodle
You'll need to use nested conditions. See here: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

With this, you can create a condition like the following:
Code: Select all
If (all) are met
    Kind is movie
    Name matches (•show name)
    If (all) are met for (the enclosing folder)
        If (all) are met for (any of its subfiles)
            Name matches (•show name)
            Extension is srt
Do
    Move somewhere


where (•show name) matches "anything". What this rule does is match the name and captures its value into •show name. It then looks for a file underneath the parent (so in the same folder or below) that matches that same name but has a srt extension.

You'll have to adapt the above to better fit your situation but hopefully that gives you some insight on how it's done.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: TV Show + Subtitles Tue Jan 31, 2017 6:37 am • by just.tomasz
thanks a lot! I will try this today and let you know if it worked
just.tomasz
 
Posts: 2
Joined: Mon Jan 30, 2017 3:29 am

Re: TV Show + Subtitles Fri Feb 03, 2017 7:43 am • by smm
Mr_Noodle wrote:
Code: Select all
Do
    Move somewhere



Mr_Noodle, can you clarify which file will be moved by the clause above - the original matched file, or the srt file? Is there a way to perform actions with the secondarily matched file?
smm
 
Posts: 9
Joined: Sun Oct 25, 2015 10:28 am

Re: TV Show + Subtitles Fri Feb 03, 2017 1:11 pm • by Mr_Noodle
The original file in that example. You can reverse it to match the secondary file. Just change the conditions around so that the srt extension is checked against the file being matched and whatever way you determine a file is the original as the nested condition.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support