Merge branch 'develop'

This commit is contained in:
Damien Broqua 2022-04-16 18:37:30 +02:00
commit cc25b83b2e
3 changed files with 7 additions and 5 deletions

View file

@ -242,7 +242,9 @@ class Albums extends Pages {
const item = {
...album.toJSON(),
released: formatDate(album.released, "MM/dd/yyyy"),
released: album.released
? formatDate(album.released, "MM/dd/yyyy")
: null,
};
this.setPageContent("item", item);

View file

@ -175,10 +175,10 @@
let url = `/api/v1/albums?userId=${this.userId}&page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
if ( this.artist ) {
url += `&artists_sort=${this.artist}`;
url += `&artists_sort=${this.artist.replace('&', '%26')}`;
}
if ( this.format ) {
url += `&format=${this.format}`;
url += `&format=${this.format.replace('&', '%26')}`;
}
if ( this.year ) {
url += `&year=${this.year}`;

View file

@ -229,10 +229,10 @@
let url = `/api/v1/albums?page=${this.page}&limit=${this.limit}&sort=${this.sort}&order=${this.order}`;
if ( this.artist ) {
url += `&artists_sort=${this.artist}`;
url += `&artists_sort=${this.artist.replace('&', '%26')}`;
}
if ( this.format ) {
url += `&format=${this.format}`;
url += `&format=${this.format.replace('&', '%26')}`;
}
if ( this.year ) {
url += `&year=${this.year}`;