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
+4 -4
View File
@@ -48,7 +48,7 @@ class Queue extends Component {
this.props.isFetching &&
nextProps.isPopulated &&
hasDifferentItems(this.props.items, nextProps.items) &&
nextProps.items.some((e) => e.albumId)
nextProps.items.some((e) => e.bookId)
) {
return false;
}
@@ -146,7 +146,7 @@ class Queue extends Component {
} = this.state;
const isRefreshing = isFetching || isAlbumsFetching || isRefreshMonitoredDownloadsExecuting;
const isAllPopulated = isPopulated && (isAlbumsPopulated || !items.length || items.every((e) => !e.albumId));
const isAllPopulated = isPopulated && (isAlbumsPopulated || !items.length || items.every((e) => !e.bookId));
const hasError = error || albumsError;
const selectedIds = this.getSelectedIds();
const selectedCount = selectedIds.length;
@@ -236,7 +236,7 @@ class Queue extends Component {
return (
<QueueRowConnector
key={item.id}
albumId={item.albumId}
bookId={item.bookId}
isSelected={selectedState[item.id]}
columns={columns}
{...item}
@@ -264,7 +264,7 @@ class Queue extends Component {
selectedIds.every((id) => {
const item = items.find((i) => i.id === id);
return !!(item && item.artistId && item.albumId);
return !!(item && item.authorId && item.bookId);
})
)}
onRemovePress={this.onRemoveSelectedConfirmed}
@@ -62,10 +62,10 @@ class QueueConnector 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');
if (albumIds.length) {
this.props.fetchAlbums({ albumIds });
if (bookIds.length) {
this.props.fetchAlbums({ bookIds });
} else {
this.props.clearAlbums();
}
+5 -5
View File
@@ -137,13 +137,13 @@ class QueueRow extends Component {
);
}
if (name === 'artist.sortName') {
if (name === 'authors.sortName') {
return (
<TableRowCell key={name}>
{
artist ?
<ArtistNameLink
foreignArtistId={artist.foreignArtistId}
titleSlug={artist.titleSlug}
artistName={artist.artistName}
/> :
title
@@ -152,13 +152,13 @@ class QueueRow extends Component {
);
}
if (name === 'album.title') {
if (name === 'books.title') {
return (
<TableRowCell key={name}>
{
album ?
<AlbumTitleLink
foreignAlbumId={album.foreignAlbumId}
titleSlug={album.titleSlug}
title={album.title}
disambiguation={album.disambiguation}
/> :
@@ -168,7 +168,7 @@ class QueueRow extends Component {
);
}
if (name === 'album.releaseDate') {
if (name === 'books.releaseDate') {
if (album) {
return (
<RelativeDateCellConnector