mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Cleaning up
This commit is contained in:
		
							parent
							
								
									81bdb69aac
								
							
						
					
					
						commit
						e91fc94789
					
				@ -24,7 +24,7 @@
 | 
				
			|||||||
	<a class="show" *ngFor="let show of this.shows" [href]="getLink(show)" [routerLink]="getLink(show)">
 | 
						<a class="show" *ngFor="let show of this.shows" [href]="getLink(show)" [routerLink]="getLink(show)">
 | 
				
			||||||
		<div matRipple [style.background-image]="getThumb(show.slug)" > </div>
 | 
							<div matRipple [style.background-image]="getThumb(show.slug)" > </div>
 | 
				
			||||||
		<p class="title">{{show.title}}</p>
 | 
							<p class="title">{{show.title}}</p>
 | 
				
			||||||
		<p class="date" *ngIf="show.endYear; else elseBlock">{{show.startYear}} - {{show.endYear}}</p>
 | 
							<p class="date" *ngIf="show.endYear && show.startYear != show.endYear; else elseBlock">{{show.startYear}} - {{show.endYear}}</p>
 | 
				
			||||||
		<ng-template #elseBlock><p class="date">{{show.startYear}}</p></ng-template>
 | 
							<ng-template #elseBlock><p class="date">{{show.startYear}}</p></ng-template>
 | 
				
			||||||
	</a>
 | 
						</a>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -4,11 +4,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<div class="header container pt-sm-5">
 | 
					<div class="header container pt-sm-5">
 | 
				
			||||||
	<div class="row">
 | 
						<div class="row">
 | 
				
			||||||
		<img class="poster d-none d-sm-block" src="poster/{{this.show.slug}}" />
 | 
							<img class="poster d-none d-sm-block" src="poster/{{this.show.slug}}" alt=""/>
 | 
				
			||||||
		<div class="main col">
 | 
							<div class="main col">
 | 
				
			||||||
			<div class="info">
 | 
								<div class="info">
 | 
				
			||||||
				<h1 class="title">{{this.show.title}}</h1>
 | 
									<h1 class="title">{{this.show.title}}</h1>
 | 
				
			||||||
				<h2 class="date" *ngIf="show.endYear; else elseBlock">{{show.startYear}} - {{show.endYear}}</h2>
 | 
									<h2 class="date" *ngIf="show.endYear && show.startYear != show.endYear; else elseBlock">{{show.startYear}} - {{show.endYear}}</h2>
 | 
				
			||||||
				<ng-template #elseBlock><h2 class="date">{{show.startYear}}</h2></ng-template>
 | 
									<ng-template #elseBlock><h2 class="date">{{show.startYear}}</h2></ng-template>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			<div class="buttons">
 | 
								<div class="buttons">
 | 
				
			||||||
@ -30,7 +30,7 @@
 | 
				
			|||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="col-3 secondary d-none d-md-block">
 | 
							<div class="col-3 secondary d-none d-md-block">
 | 
				
			||||||
			<img src="logo/{{this.show.slug}}" />
 | 
								<img src="logo/{{this.show.slug}}" #logo alt="" (error)="logo.style.display = 'none'" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			<div>
 | 
								<div>
 | 
				
			||||||
				<p>Studio: <b><a routerLink="/studio/{{this.show.studio?.slug}}">{{this.show.studio?.name}}</a></b></p>
 | 
									<p>Studio: <b><a routerLink="/studio/{{this.show.studio?.slug}}">{{this.show.studio?.name}}</a></b></p>
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,7 @@ export class ShowDetailsComponent implements OnInit
 | 
				
			|||||||
			this.show = data.show;
 | 
								this.show = data.show;
 | 
				
			||||||
			this.title.setTitle(this.show.title + " - Kyoo");
 | 
								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.season = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			this.getEpisodes();
 | 
								this.getEpisodes();
 | 
				
			||||||
@ -70,7 +70,7 @@ export class ShowDetailsComponent implements OnInit
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	getEpisodes()
 | 
						getEpisodes()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if (this.show == null)
 | 
							if (this.show == undefined || this.show.seasons == undefined)
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (this.show.seasons.find(x => x.seasonNumber == this.season).episodes != null)
 | 
							if (this.show.seasons.find(x => x.seasonNumber == this.season).episodes != null)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user