From d2dbeb5c49c942632efbb42a53663843b54a2322 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Thu, 26 Nov 2026 13:43:15 +0530 Subject: [PATCH 1/2] fix(sync): support reviewed upstream spatial menu status and per-song explanation --- fc/spatial-audio/apply.py | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/fc/spatial-audio/apply.py b/fc/spatial-audio/apply.py index 9a693a8b437..94b86f96bad 100644 --- a/fc/spatial-audio/apply.py +++ b/fc/spatial-audio/apply.py @@ -541,7 +541,7 @@ def copy_asset(name: str, destination: str) -> None: " spatialAudioDecision: SpatialAudioDecision? = null,") insert_after(MENU, " val isOffline = song.localUri != null\n", "\n var spatialPreference by remember(song.videoId) { mutableStateOf(spatialAudioPreference) }\n") -replace_once(MENU, +menu_row_old = ( " // Stays open after a tap: the label flips in place and the change\n" " // is audible at once, so the two settings can be compared by ear.\n" " onToggleSpatialAudio?.let {\n" @@ -553,7 +553,31 @@ def copy_asset(name: str, destination: str) -> None: " accent = palette.accent,\n" " onClick = it,\n" " )\n" - " }\n", + " }\n" +) +menu_row_current = ( + " // Stays open after a tap: the label flips in place and the change\n" + " // is audible at once, so the two settings can be compared by ear.\n" + " onToggleSpatialAudio?.let {\n" + " ActionRow(\n" + " icon = SfIcons.SurroundSound,\n" + " label = stringResource(R.string.spatial_audio),\n" + " value = stringResource(\n" + " if (spatialAudioOn) R.string.spatial_audio_state_on else R.string.spatial_audio_state_off,\n" + " ),\n" + " tint = if (spatialAudioOn) palette.accent else null,\n" + " description = stringResource(R.string.spatial_audio_this_song_only),\n" + " accent = if (spatialAudioOn) palette.accent else palette.onBackgroundVariant,\n" + " onClick = it,\n" + " )\n" + " }\n" +) +# Upstream 2026-11-26 uses a status and per-song explanation. +menu_source = read(MENU) +menu_matches = [row for row in (menu_row_old, menu_row_current) if menu_source.count(row) == 1] +if len(menu_matches) != 1: + raise SystemExit("Spatial Audio menu row changed beyond reviewed variants") +replace_once(MENU, menu_matches[0], " // One binary per-track control. Auto is internal policy, never a third toggle.\n" " onSetSpatialAudioPreference?.let { setPreference ->\n" " val isAutomatic = spatialPreference == SpatialAudioPreference.AUTO &&\n" @@ -583,6 +607,7 @@ def copy_asset(name: str, destination: str) -> None: " label = stringResource(R.string.spatial_audio),\n" " value = stringResource(status),\n" " tint = if (greenAutoOn) Color(0xFF34C759) else null,\n" + " description = stringResource(R.string.spatial_audio_this_song_only),\n" " accent = if (greenAutoOn) Color(0xFF34C759) else palette.accent,\n" " onClick = {\n" " val nextPreference = if (effectiveOn) SpatialAudioPreference.FORCE_OFF else SpatialAudioPreference.FORCE_ON\n" From 01bb3a5351e145b87eafc337a36694ddafce574d Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Thu, 26 Nov 2026 13:44:34 +0530 Subject: [PATCH 2/2] fix(sync): accommodate new upstream developer link in Settings footer --- fc/branding/makeover.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fc/branding/makeover.py b/fc/branding/makeover.py index bb8d408b951..4a5fefdfc6d 100644 --- a/fc/branding/makeover.py +++ b/fc/branding/makeover.py @@ -125,8 +125,16 @@ def settings_footer(value: str) -> str: # receives an explicit attribution link (not falsely labelled as our Reddit). value = once(value, 'context.openLink("https://github.com/rezapranata089-bit/Zenith")', 'context.openLink("https://github.com/Batmancpu/brrMusic")', "project GitHub URL") - value = once(value, 'context.openLink("https://github.com/rezapranata089-bit")', - 'context.openLink("https://github.com/Batmancpu")', "maintainer URL") + # Upstream moved the developer link to TikTok in the 2026-11-26 snapshot. + # Accept either reviewed URL, and continue to label this fork's maintainer correctly. + developer_urls = ( + 'context.openLink("https://github.com/rezapranata089-bit")', + 'context.openLink("https://www.tiktok.com/@zeux.editz?_r=1&_t=ZS-9BgOcHcAans")', + ) + matched = [url for url in developer_urls if value.count(url) == 1] + if len(matched) != 1: + raise SystemExit("Settings developer link changed beyond reviewed variants") + value = once(value, matched[0], 'context.openLink("https://github.com/Batmancpu")', "maintainer URL") value = once(value, 'text = "Reddit",', 'text = "Upstream",', "upstream label") value = once(value, 'context.openLink("https://www.reddit.com/r/ZenithMusic/s/gN6chb7onR")', 'context.openLink("https://github.com/rezapranata089-bit/Zenith")', "upstream credit URL")