This commit is contained in:
Nikolaj Olsson 2024-04-15 22:10:49 +02:00
parent b70f6ed2e4
commit 3a68c56174

View File

@ -74,8 +74,10 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate
result.EnsureSuccessStatusCode(); result.EnsureSuccessStatusCode();
SeLogger.Error($"{StaticName}: debug json: " + json);
var parser = new SeJsonParser(); var parser = new SeJsonParser();
var resultText = parser.GetFirstObject(json, "content"); var resultText = parser.GetFirstObject(json, "text");
if (resultText == null) if (resultText == null)
{ {
return string.Empty; return string.Empty;