Ask the provider to convert programmes the box can't decode (0.60.0)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m33s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m27s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-02 10:18:15 +00:00
co-authored by Claude Opus 5.5
parent 2af41bdd6d
commit 6a6335fced
8 changed files with 72 additions and 11 deletions
@@ -177,4 +177,12 @@ class EmbyPlaybackTest {
assertTrue(profile.getString("Container").split(",").contains("3gp"))
}
@org.junit.Test fun aConversionAddressIsOnlyTakenWhenOffered() {
val offered = org.json.JSONObject().put("MediaSources", org.json.JSONArray().put(org.json.JSONObject().put("Id", "a")).put(org.json.JSONObject().put("TranscodingUrl", "/videos/x/stream.ts?a=1")))
org.junit.Assert.assertEquals("/videos/x/stream.ts?a=1", convertedStreamPath(offered))
org.junit.Assert.assertNull(convertedStreamPath(org.json.JSONObject().put("MediaSources", org.json.JSONArray().put(org.json.JSONObject().put("Id", "a")))))
org.junit.Assert.assertNull(convertedStreamPath(org.json.JSONObject().put("ErrorCode", "NotAllowed").put("MediaSources", org.json.JSONArray().put(org.json.JSONObject().put("TranscodingUrl", "/x")))))
org.junit.Assert.assertNull(convertedStreamPath(org.json.JSONObject()))
}
}