Browse Source

fix removing deleted music videos (#156)

pull/157/head
Jason Dove 5 years ago committed by GitHub
parent
commit
aa0942384d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV.Infrastructure/Data/Repositories/MusicVideoRepository.cs

2
ErsatzTV.Infrastructure/Data/Repositories/MusicVideoRepository.cs

@ -85,7 +85,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories @@ -85,7 +85,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
@"SELECT M.Id
FROM MusicVideo M
INNER JOIN MediaItem MI on M.Id = MI.Id
INNER JOIN MediaVersion MV on M.Id = MV.EpisodeId
INNER JOIN MediaVersion MV on M.Id = MV.MusicVideoId
INNER JOIN MediaFile MF on MV.Id = MF.MediaVersionId
WHERE MI.LibraryPathId = @LibraryPathId AND MF.Path = @Path",
new { LibraryPathId = libraryPath.Id, Path = path }).Map(result => result.ToList());

Loading…
Cancel
Save