minor random fix/changes
This commit is contained in:
1 parent
9d89eda74c
commit
b35ab48b4f
8 files changed
+94
-104
No files matched your search
+26
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user