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

Search TvDB for series: Don't forget to remove wildcards

This commit is contained in:
Jonny007-MKD 2014-10-29 20:48:24 +01:00
parent de6ab0957f
commit 67a808ef4a

View file

@ -259,6 +259,7 @@ function funcGetSeriesIdFromTvdb {
fi
if $shorten; then
title="${title//\*/ }" # Remove wildcards from current run
tmp="${title% *}" # Shorten the title by one word
if [ ${#tmp} -le 4 ] || [ "$tmp" == "$title" ]; then # Too short or was not shortened
break;
@ -266,7 +267,7 @@ function funcGetSeriesIdFromTvdb {
title="$(echo $tmp | sed -e 's/^[^a-zA-Z0-9]*//' -e 's/ *$//')"
shorten=false;
else
title="${title// /*}"
title="${title// /*}" # Replace spaces with wildcards
shorten=true;
fi
done