Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tasks list has old wrong items and add switch for auto download torrent #980

Merged
merged 3 commits into from
Jun 19, 2021

Conversation

dicarne
Copy link
Contributor

@dicarne dicarne commented Jun 8, 2021

Description

Tasks list in task detail has wrong items when user switch between different task. I remove old items which shouldn't appear in new list.
Add a switch for auto download magnet link and torrent. Users can choose whether to automatically start downloading all the files in the torrent or whether to download only the torrent file itself.

Related Issues

Fixes #971
Close #934
Close #440

Checklist:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you linted your code locally prior to submission?
  • Have you successfully ran app with your changes locally?

@dicarne dicarne changed the title fix: tasks list has old wrong items fix: tasks list has old wrong items and add switch for auto download torrent Jun 9, 2021
Copy link
Owner

@agalwood agalwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need add follow-torrent and follow-metalink default value before 'listen-port' in ConfigManager.initSystemConfig()

'listen-port': 21301,

@@ -168,7 +168,7 @@
}
})
merge(cached.files, result)

cached.files.splice(result.length, cached.files.length - result.length)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line, and add follow codes before methods

watch: {
  gid () {
    cached.files = []
  }
},

@@ -16,7 +16,9 @@ export const initTaskForm = state => {
engineMaxConnectionPerServer,
maxConnectionPerServer,
newTaskShowDownloading,
split
split,
followTorrent,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sort the keys alphabetically

@@ -32,6 +34,8 @@ export const initTaskForm = state => {
torrent: '',
uris: addTaskUrl,
userAgent: '',
notFollowMetalink: followMetalink,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sort the keys alphabetically

@dicarne dicarne requested a review from agalwood June 15, 2021 11:58
@agalwood agalwood merged commit 3245bbd into agalwood:master Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants