From 18cec2c8e50cd4bb7cdf1a34761b895ee64f824a Mon Sep 17 00:00:00 2001 From: William Hughes Date: Sat, 29 Jul 2023 13:04:52 +0100 Subject: [PATCH] no log: Made 'id' description clearer (#2209) I've been playing with the API for the last few hours and I noticed that this wasn't clear that the ID also needs to be set if it's a movie. At first I gave it a -1 ID because I presumed the ID wasn't needed as it wasn't an episode. This small change should help people in the future when utilizing the API. --- bazarr/api/subtitles/subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/api/subtitles/subtitles.py b/bazarr/api/subtitles/subtitles.py index be2a15774..3184d3eb2 100644 --- a/bazarr/api/subtitles/subtitles.py +++ b/bazarr/api/subtitles/subtitles.py @@ -31,7 +31,7 @@ class Subtitles(Resource): patch_request_parser.add_argument('language', type=str, required=True, help='Language code2') patch_request_parser.add_argument('path', type=str, required=True, help='Subtitles file path') patch_request_parser.add_argument('type', type=str, required=True, help='Media type from ["episode", "movie"]') - patch_request_parser.add_argument('id', type=int, required=True, help='Episode ID') + patch_request_parser.add_argument('id', type=int, required=True, help='Media ID (episodeId, radarrId)') patch_request_parser.add_argument('forced', type=str, required=False, help='Forced subtitles from ["True", "False"]') patch_request_parser.add_argument('hi', type=str, required=False, help='HI subtitles from ["True", "False"]') patch_request_parser.add_argument('original_format', type=str, required=False,