Creating missing ChannelDownload when importing channels config.

This commit is contained in:
Roland 2024-07-04 19:16:33 -06:00
parent 7a784d7c45
commit 287beabb9c
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
10 changed files with 135 additions and 32 deletions

View file

@ -47,7 +47,7 @@ import {Media, ThemeContext} from "../contexts/contexts";
import {SortableTable} from "./SortableTable";
import {toast} from "react-semantic-toasts-2";
import {RecurringDownloadsTable} from "./admin/Downloads";
import {TagsSelector, useTags} from "../Tags";
import {TagsSelector} from "../Tags";
function ChannelStatistics({statistics}) {
@ -416,10 +416,10 @@ export function ChannelDownloadForm({channel_id, afterSave, closeModal, download
const settings = download.settings ? download.settings : {};
const oldTagNames = download && download.settings && download.settings.tag_names ? download.settings.tag_names : [];
const [state, setState] = React.useState({
url: download ? download.url : '',
frequency: download.frequency ? download.frequency : 604800,
title_match: settings.title_match ? settings.title_match : '',
title_exclude: settings.title_exclude ? settings.title_exclude : '',
title_match: settings.title_match ? settings.title_match : '',
url: download ? download.url : '',
})
const [disabled, setDisabled] = React.useState(useWROLMode());
const [loading, setLoading] = React.useState(false);