1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

New: Use Series Folder Format to improve unmapped folders within root folders

This commit is contained in:
Mark McDowall
2023-02-04 15:18:32 -08:00
parent 119addd75f
commit 81d2b18ce1
8 changed files with 86 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ import styles from './ImportSeriesRow.css';
function ImportSeriesRow(props) {
const {
id,
relativePath,
monitor,
qualityProfileId,
seasonFolder,
@@ -32,7 +33,7 @@ function ImportSeriesRow(props) {
/>
<VirtualTableRowCell className={styles.folder}>
{id}
{relativePath}
</VirtualTableRowCell>
<VirtualTableRowCell className={styles.monitor}>
@@ -84,6 +85,7 @@ function ImportSeriesRow(props) {
ImportSeriesRow.propTypes = {
id: PropTypes.string.isRequired,
relativePath: PropTypes.string.isRequired,
monitor: PropTypes.string.isRequired,
qualityProfileId: PropTypes.number.isRequired,
seriesType: PropTypes.string.isRequired,

View File

@@ -32,7 +32,7 @@ class ImportSeriesTable extends Component {
unmappedFolders.forEach((unmappedFolder) => {
const id = unmappedFolder.name;
onSeriesLookup(id, unmappedFolder.path);
onSeriesLookup(id, unmappedFolder.path, unmappedFolder.relativePath);
onSetImportSeriesValue({
id,

View File

@@ -26,10 +26,11 @@ function createMapStateToProps() {
function createMapDispatchToProps(dispatch, props) {
return {
onSeriesLookup(name, path) {
onSeriesLookup(name, path, relativePath) {
dispatch(queueLookupSeries({
name,
path,
relativePath,
term: name
}));
},

View File

@@ -67,6 +67,7 @@ export const actionHandlers = handleThunks({
const {
name,
path,
relativePath,
term,
topOfQueue = false
} = payload;
@@ -76,6 +77,7 @@ export const actionHandlers = handleThunks({
id: name,
term,
path,
relativePath,
isFetching: false,
isPopulated: false,
error: null