New: Readarr 0.1

This commit is contained in:
ta264
2020-05-06 21:14:11 +01:00
parent 476f2d6047
commit 08496c82af
911 changed files with 14837 additions and 24442 deletions
@@ -61,10 +61,10 @@ class HistoryConnector extends Component {
componentDidUpdate(prevProps) {
if (hasDifferentItems(prevProps.items, this.props.items)) {
const albumIds = selectUniqueIds(this.props.items, 'albumId');
const bookIds = selectUniqueIds(this.props.items, 'bookId');
const trackIds = selectUniqueIds(this.props.items, 'trackId');
if (albumIds.length) {
this.props.fetchAlbums({ albumIds });
if (bookIds.length) {
this.props.fetchAlbums({ bookIds });
} else {
this.props.clearAlbums();
}
+5 -21
View File
@@ -53,7 +53,6 @@ class HistoryRow extends Component {
const {
artist,
album,
track,
quality,
qualityCutoffNotMet,
eventType,
@@ -94,22 +93,22 @@ class HistoryRow extends Component {
);
}
if (name === 'artist.sortName') {
if (name === 'authors.sortName') {
return (
<TableRowCell key={name}>
<ArtistNameLink
foreignArtistId={artist.foreignArtistId}
titleSlug={artist.titleSlug}
artistName={artist.artistName}
/>
</TableRowCell>
);
}
if (name === 'album.title') {
if (name === 'books.title') {
return (
<TableRowCell key={name}>
<AlbumTitleLink
foreignAlbumId={album.foreignAlbumId}
titleSlug={album.titleSlug}
title={album.title}
disambiguation={album.disambiguation}
/>
@@ -117,14 +116,6 @@ class HistoryRow extends Component {
);
}
if (name === 'trackTitle') {
return (
<TableRowCell key={name}>
{track.title}
</TableRowCell>
);
}
if (name === 'quality') {
return (
<TableRowCell key={name}>
@@ -214,10 +205,9 @@ class HistoryRow extends Component {
}
HistoryRow.propTypes = {
albumId: PropTypes.number,
bookId: PropTypes.number,
artist: PropTypes.object.isRequired,
album: PropTypes.object,
track: PropTypes.object,
quality: PropTypes.object.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
eventType: PropTypes.string.isRequired,
@@ -232,10 +222,4 @@ HistoryRow.propTypes = {
onMarkAsFailedPress: PropTypes.func.isRequired
};
HistoryRow.defaultProps = {
track: {
title: ''
}
};
export default HistoryRow;