Fixed really weird bug where quality was not reset after download outside downloader

This commit is contained in:
Kylart 2017-09-26 10:38:11 +02:00
parent ac22505e3a
commit 988e6e849f
2 changed files with 7 additions and 2 deletions

View File

@ -114,6 +114,9 @@
: !this.selected.includes(magnet) && this.selected.push(magnet)
})
}
},
beforeDestroy () {
console.log('Destroyed')
}
}
</script>

View File

@ -20,7 +20,7 @@ export default {
const infos = {
name: name,
quality: quality,
quality: quality || rootState.config.config.quality,
fromEp: +fromEp,
untilEp: +untilEp,
fansub: rootState.config.config.fansub,
@ -61,7 +61,7 @@ export default {
choice: 'pantsu'
})
if (status === 200) {
if (status === 200 && data.magnets.length) {
log(`Request fulfilled!`)
if (magnets === true) {
@ -84,6 +84,8 @@ export default {
commit('setInfoSnackbar', 'Sorry. KawAnime was not able to get your torrents...', isRoot)
}
} else {
commit('setInfoSnackbar', 'Could not find anything, please try again.', isRoot)
}
commit(failed ? 'toggleLoading' : 'resetForm')