mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Don't save invalid scene mappings into database
This commit is contained in:
parent
65f1dbde00
commit
e40508e5e9
2 changed files with 49 additions and 0 deletions
|
@ -114,6 +114,12 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
|
||||
foreach (var sceneMapping in mappings)
|
||||
{
|
||||
if (sceneMapping.ParseTerm.IsNullOrWhiteSpace() ||
|
||||
sceneMapping.SearchTerm.IsNullOrWhiteSpace())
|
||||
{
|
||||
_logger.Warn("Invalid scene mapping found for: {0}, skipping", sceneMapping.TvdbId);
|
||||
}
|
||||
|
||||
sceneMapping.ParseTerm = sceneMapping.Title.CleanSeriesTitle();
|
||||
sceneMapping.Type = sceneMappingProvider.GetType().Name;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue