mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
This commit is contained in:
parent
66ad62beb5
commit
af2f8d1380
2 changed files with 7 additions and 5 deletions
|
@ -232,7 +232,7 @@ namespace Ombi.Core.Engine
|
|||
foreach (var episode in season.Episodes)
|
||||
{
|
||||
var epExists = await allEpisodes.FirstOrDefaultAsync(x =>
|
||||
x.EpisodeNumber == episode.EpisodeNumber && x.SeasonNumber == season.SeasonNumber);
|
||||
x.EpisodeNumber == episode.EpisodeNumber && x.SeasonNumber == season.SeasonNumber && x.Series.ProviderId == item.Id.ToString());
|
||||
if (epExists != null)
|
||||
{
|
||||
episode.Available = true;
|
||||
|
|
|
@ -33,11 +33,13 @@ export class AppComponent implements OnInit {
|
|||
this.router.events.subscribe(() => {
|
||||
this.user = this.authService.claims();
|
||||
this.showNav = this.authService.loggedIn();
|
||||
});
|
||||
|
||||
if (this.user !== null && this.user.name) {
|
||||
this.jobService.getCachedUpdate().subscribe(x => this.updateAvailable = x);
|
||||
}
|
||||
if (this.user !== null && this.user.name) {
|
||||
this.jobService.getCachedUpdate().subscribe(x => {
|
||||
this.updateAvailable = (x === true);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public hasRole(role: string): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue