After a new pc setup, i've tried to code a new sorting mechanic.
I'm trying to:
* Sort German Animation to a separate dir
* Sort German Episodes to a separate dir
* Sort the Rest into an Englisch dir
* The rest of the code is working as expected so i've shortened it to "{primaryTitle}
My Setup:
* Ubuntu 16.04 VM
* Mediainfo is running and working
My current code:
Code: Select all
{ if(
( genres.contains("Animation|ANIMATION|animation") ) &&
(( audio.language =~ ("DE|DEU|DEUTSCH|GERMAN|de|deu|deutsch|german|De|Deu|Deutsch|German")) || ( file =~ ("DEUTSCH|GERMAN") ))
) "/media/media/Serien-Animation/"
else if(
( file =~ ("DEUTSCH|GERMAN")) || ( audio.language =~ ("DE|DEU|DEUTSCH|GERMAN|de|deu|deutsch|german|De|Deu|Deutsch|German"))
) "/media/media/Serie/"
else "/media/media/Serien-Englisch/" }
{ primaryTitle}
* If genre and audio.language is filled then everything is fine
* If genre or audio.language or both are undefined the code is not working, so filebot tries to rename into the current folder instead of my wanted path...
I've already tried for many hours... How can i prevent this?