mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Using new PetaPoco Exists method in MediaFileProvider.
This commit is contained in:
parent
114f0675e0
commit
63023d447d
2 changed files with 9 additions and 9 deletions
|
@ -75,7 +75,7 @@ namespace NzbDrone.Core.Providers
|
|||
}
|
||||
|
||||
//Check to see if file already exists in the database
|
||||
if (_database.Single<int>("SELECT COUNT (*) FROM EpisodeFiles WHERE Path =@0", Parser.NormalizePath(filePath)) == 0)
|
||||
if (!_database.Exists<EpisodeFile>("Path =@0", Parser.NormalizePath(filePath)))
|
||||
{
|
||||
var parseResult = Parser.ParseEpisodeInfo(filePath);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue