Revert "Ask the provider to convert programmes the box can't decode (0.60.0)"

This reverts commit 6a6335fced.
This commit is contained in:
2026-11-02 10:27:22 +00:00
parent 6a6335fced
commit 10424d3633
8 changed files with 11 additions and 72 deletions
@@ -177,12 +177,4 @@ 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()))
}
}