Fixed: Trim RootFolderPath on Migration

postgres-test-tz
Qstick 2 years ago
parent 476f5b5bfd
commit 21e605452a

@ -114,7 +114,7 @@ namespace NzbDrone.Core.Datastore.Migration
SortTitle = Parser.Parser.NormalizeTitle(collectionName),
Added = added,
QualityProfileId = qualityProfileId,
RootFolderPath = rootFolderPath,
RootFolderPath = rootFolderPath.TrimEnd('/', '\\', ' '),
SearchOnAdd = true,
MinimumAvailability = minimumAvailability
});

@ -140,7 +140,7 @@ namespace NzbDrone.Core.Movies
SearchOnAdd = movie.AddOptions?.SearchForMovie ?? false,
QualityProfileId = movie.ProfileId,
MinimumAvailability = movie.MinimumAvailability,
RootFolderPath = _folderService.GetBestRootFolderPath(movie.Path)
RootFolderPath = _folderService.GetBestRootFolderPath(movie.Path).TrimEnd('/', '\\', ' ')
});
movieMetadata.CollectionTmdbId = newCollection.TmdbId;

Loading…
Cancel
Save