mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Add translation for series titles
This commit is contained in:
parent
c2bba9421d
commit
9155d75a91
1 changed files with 6 additions and 2 deletions
|
@ -148,7 +148,11 @@ function funcGetSeriesId {
|
||||||
funcGetSeriesIdFromCache
|
funcGetSeriesIdFromCache
|
||||||
fi
|
fi
|
||||||
if [ -z "$series_id" ]; then # Otherwise ask TvDB whether they do know the series
|
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
|
fi
|
||||||
if [ -z "$series_id" ]; then # This series was not found anywhere :(
|
if [ -z "$series_id" ]; then # This series was not found anywhere :(
|
||||||
eecho -e " TVDB:\tSeries not found!"
|
eecho -e " TVDB:\tSeries not found!"
|
||||||
|
@ -188,7 +192,7 @@ function funcGetSeriesIdFromCache {
|
||||||
function funcGetSeriesIdFromTvdb {
|
function funcGetSeriesIdFromTvdb {
|
||||||
local title;
|
local title;
|
||||||
local tmp;
|
local tmp;
|
||||||
title="$file_title";
|
title="$1";
|
||||||
while true; do
|
while true; do
|
||||||
series_db="https://www.thetvdb.com/api/GetSeries.php?seriesname=${title}&language=$lang"
|
series_db="https://www.thetvdb.com/api/GetSeries.php?seriesname=${title}&language=$lang"
|
||||||
wget_file="$PwD/series.xml"
|
wget_file="$PwD/series.xml"
|
||||||
|
|
Loading…
Reference in a new issue