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

Remove error when adding duplicate torrents #230

Merged
merged 1 commit into from
Sep 1, 2024
Merged

Conversation

Artrix9095
Copy link
Contributor

Error is kinda unnecessary here. Makes the user have to make another API request beforehand to check if the torrent is already managed. This can easily be simplified by just returning the managed torrent instead of an error.

@ikatson ikatson merged commit e4670bd into ikatson:main Sep 1, 2024
6 checks passed
@ikatson
Copy link
Owner

ikatson commented Sep 1, 2024

I don't have a strong opinion on this, so if this caused trouble, no problem merging.

However there's a chance the torrent was added when different parameters, e.g. output_folder.

So maybe at least return a different status code to indicate the difference between created and already exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants