Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Move with IF condition

$
0
0

@keksznet wrote:

hi there,

I have a working environment, everything is working, but I have 3-4 TV Shows which are not on THETVDB therefore I have added an IF part to my sort / move scripts
BUT I couldn't solve the problem that after the script moves the files it stops, or I don't know the order, because also in the log it's doing the "normal" running process, and after that it moves the file to the IF stated "path"...

Terapia is the foreign name, and somehow tvdb gives the name Sessão.de.Terapia
Which is based on the normal move, the tvdb_series_name
1st it is moved there, in Season.03 folder, as normally would
And then it goes moved to the IF stated folder Terapia

> 2017-12-28 04:15 INFO     move          sort_series     Creating destination directory `/local/TV/Sessão.de.Terapia/Season.03/`
> 2017-12-28 04:15 INFO     move          sort_series     `/downloaded/TV/Terapia.S03E33.720p.HDTV/Terapia.S03E33.720p.HDTV.mkv` has been moved to `/local/TV/Sessão.de.Terapia/Season.03/Terapia.S03E33.720p.HDTV.mkv`
> 2017-12-28 04:15 INFO     move          sort_series     Path `/downloaded/TV/Terapia.S03E33.720p.HDTV` has been deleted because was less than clean_source safe value.
> 2017-12-28 04:15 INFO     move          sort_series     `/local/TV/Sessão.de.Terapia/Season.03/Terapia.S03E33.720p.HDTV.mkv` has been moved to `/local/TV/Terapia/Season.03/Terapia.S03E33.720p.HDTV.mkv`

this is the part of my sort script:

    require_field:
      - series_name
      - series_season
    accept_all: yes
    regexp:
      reject:
        - Sample|sample|\.txt$|\.lock
      from: location
    if:
      - "'Terapia' in title":
         move:
           to: "/local/TV/Terapia/Season.{{ series_season|pad(2) }}/"
           allow_dir: yes
           keep_extension: yes
    move:
      to: "/local/TV/{{ tvdb_series_name|default(series_name)|escape|replace(''', '')|replace(' ','.')|replace('?','')|replace(':','')|replace('(','')|replace(')','') }}/Season.{{ series_season|pad(2) }}/"
      allow_dir: yes
      keep_extension: yes
      clean_source: 50

how can I somehow exclude the 3-4 TV Shows from the "default" move part of this task?

all is working for english TV, or which are listed on thetvdb, only for those few not...

do you have any idea?
Thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles