mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
Fix infinite looping when scanning TV metadata
It's a possible that name and sb will never be equal. This is caused by additional replacements before this loop. Regression introduced in c699c546e4124da8c1978b86d1a424d24d3d77d6a
This commit is contained in:
parent
160718efe2
commit
6478cd2ea4
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||||
{
|
{
|
||||||
prevLength = sb.Length;
|
prevLength = sb.Length;
|
||||||
sb.Replace(" ", " ");
|
sb.Replace(" ", " ");
|
||||||
} while (name.Length != prevLength);
|
} while (sb.Length != prevLength);
|
||||||
|
|
||||||
return sb.ToString().Trim();
|
return sb.ToString().Trim();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue