mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Cleaning up the movie implementation in the player
This commit is contained in:
parent
632b2606b7
commit
9d7ee54bdf
@ -44,8 +44,8 @@
|
|||||||
<img src="poster/{{this.item.showSlug}}" />
|
<img src="poster/{{this.item.showSlug}}" />
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<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.isMovie">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">{{this.item.title}}</h3>
|
||||||
|
|
||||||
<div id="progress-bar">
|
<div id="progress-bar">
|
||||||
<div class="seek-bar">
|
<div class="seek-bar">
|
||||||
|
@ -70,10 +70,10 @@ export class PlayerComponent implements OnInit
|
|||||||
|
|
||||||
this.setDuration(this.item.duration);
|
this.setDuration(this.item.duration);
|
||||||
|
|
||||||
if (this.item.seasonNumber != -1)
|
if (this.item.isMovie)
|
||||||
this.title.setTitle(this.item.showTitle + " S" + this.item.seasonNumber + ":E" + this.item.episodeNumber + " - Kyoo");
|
|
||||||
else
|
|
||||||
this.title.setTitle(this.item.showTitle + " - Kyoo");
|
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)
|
if (navigator.userAgent.match(/Mobi/) && document.fullscreenElement == null)
|
||||||
{
|
{
|
||||||
|
@ -10,6 +10,7 @@ export interface WatchItem
|
|||||||
link: string;
|
link: string;
|
||||||
duration: number;
|
duration: number;
|
||||||
releaseDate;
|
releaseDate;
|
||||||
|
isMovie: boolean;
|
||||||
|
|
||||||
previousEpisode: string;
|
previousEpisode: string;
|
||||||
nextEpisode: Episode;
|
nextEpisode: Episode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user