Starting to implement movies

This commit is contained in:
Zoe Roux 2020-03-01 04:13:03 +01:00
parent 8b582d412a
commit 632b2606b7
4 changed files with 19 additions and 13 deletions

View File

@ -44,7 +44,8 @@
<img src="poster/{{this.item.showSlug}}" />
</div>
<div class="content">
<h3>S{{this.item.seasonNumber}}:E{{this.item.episodeNumber}} - {{this.item.title}}</h3>
<h3 *ngIf="this.item.seasonNumber != -1">S{{this.item.seasonNumber}}:E{{this.item.episodeNumber}} - {{this.item.title}}</h3>
<h3 *ngIf="this.item.seasonNumber == -1">{{this.item.title}}</h3>
<div id="progress-bar">
<div class="seek-bar">

View File

@ -70,7 +70,10 @@ export class PlayerComponent implements OnInit
this.setDuration(this.item.duration);
this.title.setTitle(this.item.showTitle + " S" + this.item.seasonNumber + ":E" + this.item.episodeNumber + " - Kyoo");
if (this.item.seasonNumber != -1)
this.title.setTitle(this.item.showTitle + " S" + this.item.seasonNumber + ":E" + this.item.episodeNumber + " - Kyoo");
else
this.title.setTitle(this.item.showTitle + " - Kyoo");
if (navigator.userAgent.match(/Mobi/) && document.fullscreenElement == null)
{

View File

@ -62,16 +62,17 @@
</div>
<div class="container-fluid mt-3">
<mat-form-field>
<mat-label>Season</mat-label>
<mat-select [(value)]="season" (selectionChange)="getEpisodes()">
<mat-option *ngFor="let season of this.show.seasons" [value]="season.seasonNumber">{{season.title}}</mat-option>
</mat-select>
</mat-form-field>
<div *ngIf="!this.show.isMovie">
<div class="container-fluid mt-3">
<mat-form-field>
<mat-label>Season</mat-label>
<mat-select [(value)]="season" (selectionChange)="getEpisodes()">
<mat-option *ngFor="let season of this.show.seasons" [value]="season.seasonNumber">{{season.title}}</mat-option>
</mat-select>
</mat-form-field>
</div>
<app-episodes-list [episodes]="episodes"></app-episodes-list>
</div>
<app-episodes-list [episodes]="episodes"></app-episodes-list>
<div class="container-fluid mt-5">
<h3>Staff</h3>

View File

@ -16,6 +16,7 @@ export interface Show
seasons: Season[];
trailerUrl: string;
isCollection: boolean;
isMovie: boolean;
startYear: number;
endYear : number;