mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
Fix Poster Render on Add Artist, Add EPs by Default
This commit is contained in:
@@ -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`);
|
||||
|
||||
@@ -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`);
|
||||
|
||||
@@ -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 {
|
||||
</div>
|
||||
}
|
||||
|
||||
{
|
||||
isPopulated && !albums.length &&
|
||||
<div>
|
||||
No episode information is available.
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
<OrganizePreviewModalConnector
|
||||
|
||||
@@ -57,8 +57,8 @@ class ArtistDetailsSeason extends Component {
|
||||
} = this.props;
|
||||
|
||||
const expand = _.some(items, (item) => {
|
||||
return isAfter(item.airDateUtc) ||
|
||||
isAfter(item.airDateUtc, { days: -30 });
|
||||
return isAfter(item.releaseDate) ||
|
||||
isAfter(item.releaseDate, { days: -30 });
|
||||
});
|
||||
|
||||
onExpandPress(name, expand && name > 0);
|
||||
@@ -273,7 +273,7 @@ class ArtistDetailsSeason extends Component {
|
||||
<IconButton
|
||||
name={icons.COLLAPSE}
|
||||
size={20}
|
||||
title="Hide episodes"
|
||||
title="Hide albums"
|
||||
onPress={this.onExpandPress}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@ export const defaultState = {
|
||||
monitor: 'allEpisodes',
|
||||
qualityProfileId: 0,
|
||||
languageProfileId: 0,
|
||||
primaryAlbumTypes: ['Album'],
|
||||
primaryAlbumTypes: ['Album', 'EP'],
|
||||
secondaryAlbumTypes: ['Studio'],
|
||||
albumFolder: true,
|
||||
tags: []
|
||||
|
||||
Reference in New Issue
Block a user