Help With a Script
Posted: 17 Oct 2014, 22:35
I use sabnzbd (usenet client) post-script to rename my downloads:
Is it possible to add something at sabnzbd post-script to automatic revert the file to the original name when the subtitle is missed?
Thanks
Sometimes I cannot find the subtitle and I have to revert to the original name of the file ( filebot -script fn:revert --action rename /path/to/files) to search for the subtitle in another site (like www.legendas.tv)#!/bin/bash
# SABnzbd Post Processing Script - www.Filebot.net "AMC" Script
FILE_PATH=$1
FILE_NAME=$3
filebot -script \
fn:amc \
--output "/media/DADOS/Media" \
--log-file amc.log \
--action move \
--conflict override -non-strict \
--def music=n \
--def xbmc=127.0.0.1 \
--def plex=127.0.0.1 \
--def pushover= \
--def artwork=y \
--def subtitles=pb \
--def clean=y \
--def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2" \
--def "terms=sample|trailer|etc" \
--def "ut_dir=$FILE_PATH" \
--def "ut_kind=multi" \
--def "ut_title=$FILE_NAME"
Is it possible to add something at sabnzbd post-script to automatic revert the file to the original name when the subtitle is missed?
Thanks