mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-02 22:57:43 -05:00
API Docs for Commands #4413
Labels
No labels
1%
blocked-by: skyhook
bug
connection
discussion
docs
download-client
enhancement
external-bug
indexer
missing-description
mono-bug
naming
needs-to-be-tested
needs-triage
one-day-maybe
parsing
platform: linux
platform: macos
platform: windows
priority:high
priority:low
priority:medium
priority:medium
proposal
skyhook/services
suboptimal
support
task
ui-only
up-for-grabs
v3
v4
waiting-for-contributor
waiting-for-info
wip
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Sonarr#4413
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mariotacke on GitHub (Feb 6, 2023).
Is there an existing issue for this?
Current Behavior
For the longest time, I could invoke
/api/command/withwhich would happily import episodes which were already matched/could be matched without user input.
This endpoint appears to no longer exists. I cannot find any commits removing it/feature replacing it or otherwise. It now returns 415 Method Not Allowed.
Expected Behavior
I've used this endpoint for many years and it was triggered via curl after an episode completed downloading. I expect to invoke this Sonarr command which then scans the provided path, and perform the import as it would if triggered via the UI.
Steps To Reproduce
Environment
What branch are you running?
Develop
Trace Logs?
No trace logs are generated when hitting the endpoint. It appears to have been removed entirely.
Anything else?
Looking at the UI network traffic, it appears to now require a two step process:
Is there a way to auto-generate the "simple" DownloadedEpisodeScan behavior from before? Are all fields required in the "ManualImport" command?
@mariotacke commented on GitHub (Feb 6, 2023):
Found this https://github.com/Sonarr/Sonarr/issues/3599#issuecomment-594105342 from March 3, 2020 which suggests the approach above.
@mariotacke commented on GitHub (Feb 6, 2023):
Appending
--header "Content-Type: application/json; charset=utf-8"seems to have remedied the issue (wasn't needed in the past). Still curious why this command is undocumented/no commits exists for it?@markus101 commented on GitHub (Feb 7, 2023):
As you've discovered, nothing has happened to it. and you can see it in use via Manual Import's Move Automatically from Wanted: Missing. The change in behaviour is likely due to the new libraries being used in v4.
The individual commands aren't currently tracked in the API docs, the old v2 API were removed as they are woefully out of date. https://sonarr.tv/docs/api/
@mariotacke commented on GitHub (Feb 9, 2023):
Thanks @markus101. Looking forward to the new docs documenting the commands eventually.