Skip to content

Remove error when adding duplicate torrents#230

Merged
ikatson merged 1 commit intoikatson:mainfrom
artrixdotdev:main
Sep 1, 2024
Merged

Remove error when adding duplicate torrents#230
ikatson merged 1 commit intoikatson:mainfrom
artrixdotdev:main

Conversation

@artrixdotdev
Copy link
Copy Markdown
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
@ikatson
Copy link
Copy Markdown
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