mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Don't strip XML tags from series_title that don't exist
This commit is contained in:
parent
5e109d9724
commit
c12aa87e9b
1 changed files with 3 additions and 2 deletions
|
@ -193,12 +193,13 @@ function funcGetSeriesIdFromTvdb {
|
||||||
fi
|
fi
|
||||||
if [ -n "$tmp" ]; then
|
if [ -n "$tmp" ]; then
|
||||||
series_id=$(echo "$tmp" | grep "seriesid>")
|
series_id=$(echo "$tmp" | grep "seriesid>")
|
||||||
|
series_title="$title"
|
||||||
#series_title=$(echo "$tmp" | grep "SeriesName>") # Get series name from TvDB
|
#series_title=$(echo "$tmp" | grep "SeriesName>") # Get series name from TvDB
|
||||||
series_alias=$(echo "$tmp" | grep "AliasName>")
|
series_alias=$(echo "$tmp" | grep "AliasName>")
|
||||||
series_id=${series_id%<*} # Remove XML tags
|
series_id=${series_id%<*} # Remove XML tags
|
||||||
series_id=${series_id#*>}
|
series_id=${series_id#*>}
|
||||||
series_title=${series_title%<*}
|
#series_title=${series_title%<*}
|
||||||
series_title=${series_title#*>}
|
#series_title=${series_title#*>}
|
||||||
series_alias=${series_alias%<*}
|
series_alias=${series_alias%<*}
|
||||||
series_alias=${series_alias#*>}
|
series_alias=${series_alias#*>}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue