From: Samir Benmendil Date: Tue, 29 Jan 2013 16:10:36 +0000 (+0100) Subject: Merge branch 'master' of tardis:/dotfiles X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/7f38b57b01eceb6d9b6950ccac00c360749b1ff6?hp=d86408c224327a6bfbe8b6b6c6ee502d6732286a Merge branch 'master' of tardis:/dotfiles --- diff --git a/bin/mkvsettitle b/bin/mkvsettitle index f9a8c8d..26443fb 100755 --- a/bin/mkvsettitle +++ b/bin/mkvsettitle @@ -10,5 +10,8 @@ for f in "$dir"/*; do esac t=$(basename "$f" "$ext") t=${t%.*} + # remove also (2013){1080p}[en] stuff + t=${t% (*)\{*\}*} + echo "Set title: $t" mkvpropedit --set title="$t" "$f" > /dev/null done diff --git a/flexget/config.yml b/flexget/config.yml index 714739a..e2431bd 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -50,7 +50,7 @@ tasks: transmission: host: localhost port: 9091 - path: /home/ramsi/Torrents + path: /mnt/Skaro/Torrents.flex removewhendone: yes ratio: 0.0 @@ -60,12 +60,12 @@ tasks: accept_all: yes find: - path: /home/ramsi/Torrents + path: /mnt/Skaro/Torrents.flex recursive: yes regexp: '.*\.(avi|mkv|mp4)$' move: to: "/mnt/Skaro/Series/{{series_name_tvdb}}/Season {{tvdb_season}}/" - filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name}}{{location|pathext}}" + filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality}}{{'}'}}[en]{{location|pathext}}" # vim: sts=2 ts=2 sw=2 et