mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
parent
6d16442d4d
commit
4070f0d093
4 changed files with 24 additions and 7 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
<div class="row justify-content-center justify-content-sm-start header-container">
|
||||
<div class="details-poster-container">
|
||||
<media-poster [posterPath]="'https://image.tmdb.org/t/p/w300/' + movie.posterPath"></media-poster>
|
||||
<media-poster [posterPath]=movie.posterPath></media-poster>
|
||||
</div>
|
||||
|
||||
<!--Next to poster-->
|
||||
|
|
|
@ -68,6 +68,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
if (this.imdbId) {
|
||||
this.searchService.getMovieByImdbId(this.imdbId).subscribe(async x => {
|
||||
this.movie = x;
|
||||
this.checkPoster();
|
||||
if (this.movie.requestId > 0) {
|
||||
// Load up this request
|
||||
this.hasRequest = true;
|
||||
|
@ -78,6 +79,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
} else {
|
||||
this.searchService.getFullMovieDetails(this.theMovidDbId).subscribe(async x => {
|
||||
this.movie = x;
|
||||
this.checkPoster();
|
||||
if (this.movie.requestId > 0) {
|
||||
// Load up this request
|
||||
this.hasRequest = true;
|
||||
|
@ -272,7 +274,14 @@ export class MovieDetailsComponent implements OnInit{
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
private checkPoster() {
|
||||
if (this.movie.posterPath == null) {
|
||||
this.movie.posterPath = "../../../images/default_movie_poster.png";
|
||||
}
|
||||
else {
|
||||
this.movie.posterPath = "https://image.tmdb.org/t/p/w300/" + this.movie.posterPath
|
||||
};
|
||||
}
|
||||
private loadAdvancedInfo() {
|
||||
const profile = this.radarrService.getQualityProfilesFromSettings();
|
||||
const folders = this.radarrService.getRootFoldersFromSettings();
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<div class="small-middle-container">
|
||||
<div class="row justify-content-center justify-content-sm-start header-container">
|
||||
<div class="details-poster-container">
|
||||
<media-poster [posterPath]="'https://image.tmdb.org/t/p/w300/' + tv.images.original"></media-poster>
|
||||
<media-poster [posterPath]=tv.images.original></media-poster>
|
||||
</div>
|
||||
<!--Next to poster-->
|
||||
<div class="details-button-container">
|
||||
|
|
|
@ -48,6 +48,7 @@ export class TvDetailsComponent implements OnInit {
|
|||
|
||||
public async ngOnInit() {
|
||||
await this.load();
|
||||
this.checkPoster();
|
||||
}
|
||||
|
||||
public async load() {
|
||||
|
@ -128,7 +129,14 @@ export class TvDetailsComponent implements OnInit {
|
|||
public allEpisodesRequested(): boolean {
|
||||
return this.tv.seasonRequests.every(e => e.episodes.every(x => x.approved || x.requested));
|
||||
}
|
||||
|
||||
private checkPoster() {
|
||||
if (this.tv.images.original == null) {
|
||||
this.tv.images.original = "../../../images/default_movie_poster.png";
|
||||
}
|
||||
else {
|
||||
this.tv.images.original = 'https://image.tmdb.org/t/p/w300/' + this.tv.images.original
|
||||
};
|
||||
}
|
||||
private loadAdvancedInfo() {
|
||||
const profile = this.sonarrService.getQualityProfilesWithoutSettings();
|
||||
const folders = this.sonarrService.getRootFoldersWithoutSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue