diff --git a/src/app/browse/browse.component.html b/src/app/browse/browse.component.html index 8bc09dfb..ccb8a13d 100644 --- a/src/app/browse/browse.component.html +++ b/src/app/browse/browse.component.html @@ -24,7 +24,7 @@

{{show.title}}

-

{{show.startYear}} - {{show.endYear}}

+

{{show.startYear}} - {{show.endYear}}

{{show.startYear}}

diff --git a/src/app/show-details/show-details.component.html b/src/app/show-details/show-details.component.html index 26489885..c77c95ac 100644 --- a/src/app/show-details/show-details.component.html +++ b/src/app/show-details/show-details.component.html @@ -4,11 +4,11 @@
- +

{{this.show.title}}

-

{{show.startYear}} - {{show.endYear}}

+

{{show.startYear}} - {{show.endYear}}

{{show.startYear}}

@@ -30,7 +30,7 @@
- +

Studio: {{this.show.studio?.name}}

diff --git a/src/app/show-details/show-details.component.ts b/src/app/show-details/show-details.component.ts index 58bb69d9..7c71fb0e 100644 --- a/src/app/show-details/show-details.component.ts +++ b/src/app/show-details/show-details.component.ts @@ -32,7 +32,7 @@ export class ShowDetailsComponent implements OnInit this.show = data.show; this.title.setTitle(this.show.title + " - Kyoo"); - if (this.season == null || this.show.seasons.find(x => x.seasonNumber == this.season) == null) + if (this.season == undefined || this.show.seasons == undefined || this.show.seasons.find(x => x.seasonNumber == this.season) == null) this.season = 1; this.getEpisodes(); @@ -70,7 +70,7 @@ export class ShowDetailsComponent implements OnInit getEpisodes() { - if (this.show == null) + if (this.show == undefined || this.show.seasons == undefined) return; if (this.show.seasons.find(x => x.seasonNumber == this.season).episodes != null)