Cleaning up the movie implementation in the player

This commit is contained in:
Zoe Roux 2020-03-01 04:16:00 +01:00
parent 632b2606b7
commit 9d7ee54bdf
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

@ -10,6 +10,7 @@ export interface WatchItem
link: string;
duration: number;
releaseDate;
isMovie: boolean;
previousEpisode: string;
nextEpisode: Episode;