mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-03-09 15:57:08 +01:00
Search TvDB for series: Don't forget to remove wildcards
This commit is contained in:
parent
de6ab0957f
commit
67a808ef4a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue