From 9155d75a91270ac041b6cbb89514169d853c2792 Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Fri, 19 Sep 2014 21:54:42 +0200 Subject: [PATCH] Add translation for series titles --- saneRenamix.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/saneRenamix.sh b/saneRenamix.sh index 45b01ad..a3d4b24 100755 --- a/saneRenamix.sh +++ b/saneRenamix.sh @@ -148,7 +148,11 @@ function funcGetSeriesId { funcGetSeriesIdFromCache fi if [ -z "$series_id" ]; then # Otherwise ask TvDB whether they do know the series - funcGetSeriesIdFromTvdb + funcGetSeriesIdFromTvdb "$file_title" + fi + if [ -z "$series_id" ]; then # Otherwise ask TvDB whether they do know the series + funcConvertName "$file_title" + funcGetSeriesIdFromTvdb "$tmp" fi if [ -z "$series_id" ]; then # This series was not found anywhere :( eecho -e " TVDB:\tSeries not found!" @@ -188,7 +192,7 @@ function funcGetSeriesIdFromCache { function funcGetSeriesIdFromTvdb { local title; local tmp; - title="$file_title"; + title="$1"; while true; do series_db="https://www.thetvdb.com/api/GetSeries.php?seriesname=${title}&language=$lang" wget_file="$PwD/series.xml"