1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-SaneRename synced 2024-05-08 21:54:04 +02:00

Add translation for series titles

This commit is contained in:
Jonny007-MKD 2014-09-19 21:54:42 +02:00
parent c2bba9421d
commit 9155d75a91

View file

@ -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"