mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 00:06: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)
|
foreach (var episode in season.Episodes)
|
||||||
{
|
{
|
||||||
var epExists = await allEpisodes.FirstOrDefaultAsync(x =>
|
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)
|
if (epExists != null)
|
||||||
{
|
{
|
||||||
episode.Available = true;
|
episode.Available = true;
|
||||||
|
|
|
@ -33,11 +33,13 @@ export class AppComponent implements OnInit {
|
||||||
this.router.events.subscribe(() => {
|
this.router.events.subscribe(() => {
|
||||||
this.user = this.authService.claims();
|
this.user = this.authService.claims();
|
||||||
this.showNav = this.authService.loggedIn();
|
this.showNav = this.authService.loggedIn();
|
||||||
});
|
|
||||||
|
|
||||||
if (this.user !== null && this.user.name) {
|
if (this.user !== null && this.user.name) {
|
||||||
this.jobService.getCachedUpdate().subscribe(x => this.updateAvailable = x);
|
this.jobService.getCachedUpdate().subscribe(x => {
|
||||||
}
|
this.updateAvailable = (x === true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public hasRole(role: string): boolean {
|
public hasRole(role: string): boolean {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue