fix: PC steuern zeigt Cover scharf statt 60x60 Pixel (v1.2.1)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-05 21:21:15 +01:00
co-authored by Claude Opus 5.5
parent 7a01655e43
commit 968920e7f3
4 changed files with 40 additions and 13 deletions
@@ -71,6 +71,21 @@ class PcRemoteTest {
assertNull(PcRemote.parseState(JSONObject("""{"ok": true}""")))
}
@Test
fun requestsLargeCovers() {
assertEquals(
"https://lh3.googleusercontent.com/abc=w544-h544-l90-rj",
PcRemote.largeCover("https://lh3.googleusercontent.com/abc=w60-h60-l90-rj"),
)
assertEquals(
"https://yt3.ggpht.com/xyz=w544-h544-l90-rj",
PcRemote.largeCover("https://yt3.ggpht.com/xyz=s88-c-k-c0x00ffffff-no-rj"),
)
assertEquals("https://i.ytimg.com/vi/id/hqdefault.jpg", PcRemote.largeCover("https://i.ytimg.com/vi/id/default.jpg"))
assertEquals("https://i.ytimg.com/vi/id/hqdefault.jpg", PcRemote.largeCover("https://i.ytimg.com/vi/id/hqdefault.jpg"))
assertEquals("https://example.com/a.png", PcRemote.largeCover("https://example.com/a.png"))
}
@Test
fun formatsTimes() {
assertEquals("0:00", PcRemote.formatTime(-5.0))