Hide the auto update btn #236

Fixed where we were not populating the emby episodes #435

Fixed #1048 issue 1,2,4
This commit is contained in:
tidusjar 2017-02-03 14:20:51 +00:00
commit 16b6b6acea
8 changed files with 1757 additions and 1746 deletions

View file

@ -286,7 +286,9 @@ namespace Ombi.Services.Jobs
var ep = await EpisodeRepo.CustomAsync(async connection =>
{
connection.Open();
var result = await connection.QueryAsync<EmbyEpisodes>("select * from EmbyEpisodes where ProviderId = @ProviderId", new { ProviderId = theTvDbId });
var result = await connection.QueryAsync<EmbyEpisodes>(@"select ee.* from EmbyEpisodes ee inner join EmbyContent ec
on ee.ParentId = ec.EmbyId
where ec.ProviderId = @ProviderId", new { ProviderId = theTvDbId });
return result;
});