-
Notifications
You must be signed in to change notification settings - Fork 278
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
Feature/downloadstation torrent path #9482
base: develop
Are you sure you want to change the base?
Conversation
p0psicles
commented
Apr 26, 2021
•
edited
Loading
edited
- PR is based on the DEVELOP branch
- Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
- Read the contribution guide
@BenjV i've also send invites to join the developer team, which will give you write access to the branch. |
@p0psicles A small remark, why are parameters send to all the torrent client? |
Only one torrent client class is used at a time. And it needs to initialize the object with the params, to pass username, password, host (and now torrent_path) into it. The downside of this approach, is that you need to recreate a new object each time. Opposed to initialize an object and put it on the
That's weird. I'm sure i've invited you to the |
What is meant is that the "GenericClient" gets the information via the parameters and stores them as object data (for example self.username). Also I stumbled on another issue. So somewhere that should be done with a statement like this. And I looked again but still no invite or access rights. |
…wnload-station-torrent-path # Conflicts: # medusa/clients/torrent/downloadstation.py # medusa/clients/torrent/generic.py
You'll see that I know that it's not the most readable construction. But it is using objects.
I had to double check. But from this part of the code: https://github.com/pymedusa/Medusa/blob/master/medusa/session/core.py#L66 If |
…wnload-station-torrent-path # Conflicts: # medusa/clients/torrent/rtorrent.py
@BenjV Does the torrent_path verification work with this branch? Then i'd like to merge it. |
@BenjV also maybe it's a good idea to look at the download_handler for the downloadstation. I don't think users would benifit a lot of a downloadstation nzb api. As they can always make use of the black hole (nzb drop) functionality. But for torrents the torrent api has some additional benifits when using the downloadhandler. As for ex. it can track the upload/download ratio, and then perform actions like, deleting the torrent, or pausing it. |