feat: Make Radarr optional and some improvements to optional integrations

This commit is contained in:
Aleksi Lassila
2023-08-15 14:01:43 +03:00
parent 0b7956e6b6
commit 1200489a19
14 changed files with 356 additions and 297 deletions

View File

@@ -69,10 +69,10 @@
function handleDownload(guid: string) {
downloadFetchingGuid = guid;
if (radarrId) {
downloadRadarrMovie(guid).then((res) => {
downloadRadarrMovie(guid).then((ok) => {
dispatch('download');
downloadFetchingGuid = undefined;
if (res.response?.ok) {
if (ok) {
downloadingGuid = guid;
}
});