1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Fixed: Status on search showing queue status instead of missing (#5854)

Fix status on search to show a downloading status when it is in queue
Fix for monitor not being set to true when adding from search
This commit is contained in:
nitsua
2021-02-02 21:57:27 -05:00
committed by GitHub
parent a0d2af54e8
commit 6d7fb3de25
2 changed files with 10 additions and 3 deletions
@@ -88,6 +88,8 @@ export const actionHandlers = handleThunks({
abortCurrentRequest = abortRequest;
request.done((data) => {
data = data.map((movie) => ({ ...movie, internalId: movie.id, id: movie.tmdbId }));
dispatch(batchActions([
update({ section, data }),
@@ -116,6 +118,7 @@ export const actionHandlers = handleThunks({
const tmdbId = payload.tmdbId;
const items = getState().addMovie.items;
const newMovie = getNewMovie(_.cloneDeep(_.find(items, { tmdbId })), payload);
newMovie.id = 0;
const promise = createAjaxRequest({
url: '/movie',
@@ -125,8 +128,12 @@ export const actionHandlers = handleThunks({
}).request;
promise.done((data) => {
const updatedItem = _.cloneDeep(data);
updatedItem.id = updatedItem.tmdbId;
dispatch(batchActions([
updateItem({ section: 'movies', ...data }),
updateItem({ section: 'addMovie', ...updatedItem }),
set({
section,