Parse failed series and send to flexget

Come up with a useful post-processing script? Share it here!
Post Reply
Trinket
Newbie
Newbie
Posts: 1
Joined: February 3rd, 2013, 7:02 pm

Parse failed series and send to flexget

Post by Trinket »

Hi
I want to make a script that passes failed sickbeard downloads to flexget which searches for torrents.
In order to do so, the only way I have found is to pass flexget the series name, episode and season.
I have already managed to get the name of the failed series but I don't know how to separate it.
Could someone help me with that?
The file name is for example:
Family.Guy.S11E11.720p.HDTV.X264-DIMENSION
But it could also be
Arrow.S01E11.720p.HDTV.X264-DIMENSION
This is what I have:

Code: Select all

#!/bin/bash

if [ $7 != "0" ] && [ $5 = "series" ] #Do this when download failed
        then
        echo "Obtaining Series,episode and season."
        Name=
        Episode=
        Season=
        /bin/flexget --cli-config "Name=$Name, E=$Episode, S=$Season"
fi
Post Reply