Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

Remove fakes - Running command ... for client

$
0
0

@volsk wrote:

I created a little script called cleantorrents to remove fakes. The goal is to remove the file and remove the episode (or complete show) from the database. The script is kicked off by:

  sort-series:
    exec:
      allow_background: yes
      on_exit:
        phase: /home/<username>/Scripts/cleantorrents

The cleantorrents script has several parts. The first part looks for fakes and outputs their location to a file:

find <location_of_videos> -size +100M -type f -exec file -N -i -- {} + | grep 'dosexec\|application' | awk -F ":" '{print $1}' | while read line; do echo $line >> /tmp/fakes; done

The second part actually deletes the files:
cat /tmp/fakes | while read line; do rm -v "$line"; done

The third part tries to remove the series from the database:
cat /tmp/fakes | awk -F "/" '{print $(NF-1)}' | while read line; do flexget series forget "$line"; done

The first two parts work fine. The third part doesn't work. The output I get is:
2016-06-17 15:31 VERBOSE ipc Running command 'series forget "<series_name>"' for client.
But the series is not removed from the database.

Any suggestion how to solve this?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles