Ask the provider to convert programmes the box can't decode (0.60.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user