diff --git a/frontend/src/Artist/ArtistBanner.js b/frontend/src/Artist/ArtistBanner.js index b79c5cc97..6bc5d7fe6 100644 --- a/frontend/src/Artist/ArtistBanner.js +++ b/frontend/src/Artist/ArtistBanner.js @@ -11,7 +11,7 @@ function findBanner(images) { function getBannerUrl(banner, size) { if (banner) { - if (banner.url.contains('lastWrite')) { + if (banner.url.contains('lastWrite=') || (/^https?:/).test(banner.url)) { // Remove protocol let url = banner.url.replace(/^https?:/, ''); url = url.replace('banner.jpg', `banner-${size}.jpg`); diff --git a/frontend/src/Artist/ArtistPoster.js b/frontend/src/Artist/ArtistPoster.js index 84867681b..25b744c80 100644 --- a/frontend/src/Artist/ArtistPoster.js +++ b/frontend/src/Artist/ArtistPoster.js @@ -11,7 +11,7 @@ function findPoster(images) { function getPosterUrl(poster, size) { if (poster) { - if (poster.url.contains('lastWrite')) { + if (poster.url.contains('lastWrite=') || (/^https?:/).test(poster.url)) { // Remove protocol let url = poster.url.replace(/^https?:/, ''); url = url.replace('poster.jpg', `poster-${size}.jpg`); diff --git a/frontend/src/Artist/Details/ArtistDetails.js b/frontend/src/Artist/Details/ArtistDetails.js index 63a690d07..de11c7766 100644 --- a/frontend/src/Artist/Details/ArtistDetails.js +++ b/frontend/src/Artist/Details/ArtistDetails.js @@ -38,13 +38,13 @@ const albumTypes = [ isVisible: true }, { - name: 'single', - label: 'Single', + name: 'ep', + label: 'EP', isVisible: true }, { - name: 'ep', - label: 'EP', + name: 'single', + label: 'Single', isVisible: true }, { @@ -524,13 +524,6 @@ class ArtistDetails extends Component { } - { - isPopulated && !albums.length && -