diff --git a/frontend/src/app/features/collections/user-collections/userCollection-list-item/userCollections-list-item.component.ts b/frontend/src/app/features/collections/user-collections/userCollection-list-item/userCollections-list-item.component.ts index 6f59bc9..85a2c49 100644 --- a/frontend/src/app/features/collections/user-collections/userCollection-list-item/userCollections-list-item.component.ts +++ b/frontend/src/app/features/collections/user-collections/userCollection-list-item/userCollections-list-item.component.ts @@ -49,11 +49,37 @@ export class UserCollectionsListItemComponent { return this.getEntryPosterPath(this.list.entries[0]); } + return `https://www.themoviedb.org/w1280/${this.list.posterPath}`; // * if the collection is empty return 'assets/images/default/default-poster.png'; } } + getCollectionBakcgroundPath() { + return `https://www.themoviedb.org/w1280/${this.list.backdropPath}`; + + // if (this.list.isLocal) { + // if (this.list.backdropPath == null) + // return 'assets/images/default/default-poster.png'; + + // // * use the collection custom poster + // return ( + // environment.API_URL + + // `/media/collections/posters/preview/` + + // this.list.posterPath + // ); + // } else { + // // * use the poster of the first entry in the collection if its no empty + // if (this.list.entries.length != 0) { + // return this.getEntryPosterPath(this.list.entries[0]); + // } + + // return `https://www.themoviedb.org/w1280/${this.list.backdropPath}`; + // // * if the collection is empty + // return 'assets/images/default/default-poster.png'; + // } + } + getEntryPosterPath(entry: Entry) { // * Is in library: use a local poster if (entry.medias) { diff --git a/frontend/src/app/features/home/home.component.html b/frontend/src/app/features/home/home.component.html index 352ca2e..59cfa32 100644 --- a/frontend/src/app/features/home/home.component.html +++ b/frontend/src/app/features/home/home.component.html @@ -149,33 +149,8 @@ - - - -