if-then-else
Posted: 26 Dec 2015, 21:02
I am trying to sort my movies into different folders depending the year of creation of the movie...
So every movie until 1969 has to move to /volume2/Classic-Movies/ and every newer movie should go to /volume1/Movie-Sammlung ...
I am downloading with JD and the following script ist working very nice (shortened):
I have reviewed a lot of scripts, but have still no idea how to solve this problem.
Can someone give me hint for this, please? :)
So every movie until 1969 has to move to /volume2/Classic-Movies/ and every newer movie should go to /volume1/Movie-Sammlung ...
I am downloading with JD and the following script ist working very nice (shortened):
Code: Select all
SERIEN="/volume2/Serien/{n}/{n} - Staffel {s}/{n} - {S00E00} - {t} [{d}] [{vf} {af.replace('6ch',' 5.1').replace('8ch',' 7.2').replace('3', ' 2.1').replace('2ch',' Stereo').replace('7ch',' 6.1').replace('3ch',' 2.1')}] [☆ {omdb.rating}]"
FILME="/volume1/Movie-Sammlung/{n} [{y}, {director}] - [{vf}] [{ac} {af.replace('6ch',' 5.1').replace('8ch',' 7.2').replace('3', ' 2.1').replace('2ch',' Stereo').replace('7ch',' 6.1').replace('3ch',' 2.1')}] [{vc}] [{minutes} Min] [★ {omdb.rating}]"
/volume1/@appstore/filebot/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$PFAD_1" -r --def "seriesFormat=$SERIEN" "movieFormat=$FILME" -non-strict --def clean=y
/volume1/@appstore/filebot/filebot.sh -script fn:cleaner "$PFAD_1" --def root=y
/volume1/@appstore/filebot/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$PFAD_2" -r --def "seriesFormat=$SERIEN" "movieFormat=$FILME" -non-strict --def clean=y
/volume1/@appstore/filebot/filebot.sh -script fn:cleaner "$PFAD_2" --def root=y
Can someone give me hint for this, please? :)