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: empty tmpFile var passed to download client's action #121

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

zmiguel
Copy link
Contributor

@zmiguel zmiguel commented Feb 7, 2022

Related to #119

After some debugging I figured out that when release.TorrentTmpFile was not empty the tmpFile variable would not be set.
Resulting in sending an empty variable to the download client's action function. That ultimately resulted in a file not found error when trying to send the torrent file to the download client.

Fixed by adding an else condition setting tmpFile to release.TorrentTmpFile (when it is not empty).

Even though this only happened to me on deluge, I added the else condition to all instances where this could possibly happen.


edit: I've tested it by building the container and deluge is now correctly getting the torrent added

@ludviglundgren ludviglundgren added backend Backend bug Something isn't working Download client labels Feb 7, 2022
Copy link
Contributor

@ludviglundgren ludviglundgren left a comment

Choose a reason for hiding this comment

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

Thank you for debugging and fixing this yourself! I haven't seen this issue before but always good to do an additional check so I'll merge this :)

Fixes #119

@ludviglundgren ludviglundgren merged commit 6da581b into autobrr:develop Feb 7, 2022
@ludviglundgren ludviglundgren linked an issue Feb 7, 2022 that may be closed by this pull request
ghost pushed a commit that referenced this pull request Mar 1, 2022
Co-authored-by: zmiguel <contact@zmiguel.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend bug Something isn't working Download client
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Error processing deluge action
2 participants