Revert the deliberate break (#8301)
release / go (push) Successful in 1m47s
release / integration (push) Successful in 2m35s
release / govulncheck (push) Successful in 20s
release / web (push) Successful in 1m16s
release / android (push) Successful in 4m30s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m47s
release / integration (push) Successful in 2m35s
release / govulncheck (push) Successful in 20s
release / web (push) Successful in 1m16s
release / android (push) Successful in 4m30s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,4 +16,4 @@ fun albumCoverPath(albumId: String): String =
|
||||
* cover, through the same placeholder host as [albumCoverPath].
|
||||
*/
|
||||
fun artistImagePath(artistId: String): String =
|
||||
if (artistId.isEmpty()) "" else "http://localhost/api/artists/$artistId/image" // DELIBERATE BREAK
|
||||
if (artistId.isEmpty()) "" else "http://placeholder.invalid/api/artists/$artistId/image"
|
||||
|
||||
@@ -74,7 +74,8 @@ class RemotePlayerState @Inject constructor() {
|
||||
|
||||
fun setPlayIntent(intended: Boolean) { lastPlayIntent = intended }
|
||||
|
||||
fun applyError(t: Throwable) { // DELIBERATE BREAK
|
||||
fun applyError(t: Throwable) {
|
||||
isPlaying = false
|
||||
lastError = t
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,6 +16,6 @@ internal fun idleRevertAction(
|
||||
armed: Boolean,
|
||||
): IdleRevertAction = when {
|
||||
upnpEngaged && !isPlaying -> if (armed) IdleRevertAction.IGNORE else IdleRevertAction.ARM
|
||||
armed && upnpEngaged -> IdleRevertAction.CANCEL // DELIBERATE BREAK
|
||||
armed -> IdleRevertAction.CANCEL
|
||||
else -> IdleRevertAction.IGNORE
|
||||
}
|
||||
|
||||
+1
-1
@@ -341,7 +341,7 @@ class SonosQueueLoader @Inject constructor(
|
||||
GainMath.playingAsAlbum(
|
||||
prev = queue.getOrNull(index - 1)?.let(::position),
|
||||
cur = position(queue[index]),
|
||||
next = null, // DELIBERATE BREAK
|
||||
next = queue.getOrNull(index + 1)?.let(::position),
|
||||
)
|
||||
|
||||
private fun position(t: TrackRef) =
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ class RenderingControlClient(
|
||||
}
|
||||
|
||||
suspend fun setVolume(volume: Int, channel: String = "Master") {
|
||||
val clamped = volume.coerceIn(VOLUME_MIN - 1, VOLUME_MAX) // DELIBERATE BREAK
|
||||
val clamped = volume.coerceIn(VOLUME_MIN, VOLUME_MAX)
|
||||
soap.call(
|
||||
controlUrl = controlUrl,
|
||||
serviceType = SERVICE_TYPE,
|
||||
|
||||
+2
-1
@@ -296,4 +296,5 @@ class UpnpDiscoveryController @Inject constructor(
|
||||
* everything reduces to the underlying speaker identity.
|
||||
*/
|
||||
internal fun String.bareUdn(): String = removePrefix("uuid:")
|
||||
.removeSuffix("_MR") // DELIBERATE BREAK
|
||||
.removeSuffix("_MR")
|
||||
.removeSuffix("_MS")
|
||||
|
||||
+1
-1
@@ -330,7 +330,7 @@ internal fun mergePlaylistsWithCache(
|
||||
val cachedById = counts.associate { it.playlistId to it.cachedCount }
|
||||
return rows.map { row ->
|
||||
val cached = cachedById[row.id] ?: 0
|
||||
row.toDomain().copy(fullyCached = cached >= row.trackCount) // DELIBERATE BREAK
|
||||
row.toDomain().copy(fullyCached = row.trackCount > 0 && cached >= row.trackCount)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import kotlin.math.roundToInt
|
||||
* (height 0) moves nothing.
|
||||
*/
|
||||
internal fun reorderDragDelta(offsetPx: Float, rowHeightPx: Int): Int =
|
||||
if (rowHeightPx > 0) (offsetPx / (rowHeightPx + 1)).roundToInt() else 0 // DELIBERATE BREAK
|
||||
if (rowHeightPx > 0) (offsetPx / rowHeightPx).roundToInt() else 0
|
||||
|
||||
/**
|
||||
* The index a row dragged from [index] lands on, in a list of [count] rows
|
||||
|
||||
@@ -31,7 +31,7 @@ const DETAIL_CODES: ReadonlySet<string> = new Set(detailCodesJson);
|
||||
*/
|
||||
export function errMessage(err: unknown, fallback = 'Something went wrong.'): string {
|
||||
const code = errCode(err);
|
||||
const copy = knownCopy(code) ?? (fallback && 'Something went wrong.'); /* DELIBERATE BREAK */
|
||||
const copy = knownCopy(code) ?? fallback;
|
||||
if (!DETAIL_CODES.has(code)) return copy;
|
||||
const detail = (err as { message?: unknown })?.message;
|
||||
return typeof detail === 'string' && detail.trim() !== '' ? `${copy} ${detail}` : copy;
|
||||
|
||||
Reference in New Issue
Block a user