{#if isLoadingDevices}

{$t('settings.audio.loadingAudioDevices')}

{$t('settings.audio.parsingHardware')}

{/if}
{#if onBack} {/if}

{$t('settings.title')}

{$t('settings.audio.title')}

{$t('settings.audio.streamingQuality')} {$t('settings.audio.streamingQualityDesc')}
{$t('settings.audio.audioBackend')} {$t('settings.audio.audioBackendDesc')}
{#if selectedBackend === 'PipeWire'}
{$t('dacWizard.tooltip.title')} {$t('dacWizard.tooltip.desc')}
{/if}
{$t('settings.audio.outputDevice')} {$t('settings.audio.outputDeviceDesc')}
{#if isLoadingDevices} {$t('settings.audio.loadingDevices')} {:else if selectedBackend === 'ALSA Direct'} {:else if selectedBackend === 'PipeWire'} {:else} {/if}
{#if showAlsaPluginSelector}
{$t('settings.audio.alsaPlugin')} {$t('settings.audio.alsaPluginDesc')}
{/if} {#if showAlsaHardwareVolume}
{$t('settings.audio.hardwareVolume')} {$t('settings.audio.hardwareVolumeDesc')}
{/if}
{$t('settings.audio.exclusiveMode')} {exclusiveModeTooltipOverride ?? $t('settings.audio.exclusiveModeDesc')}
{$t('settings.audio.dacPassthrough')} {dacPassthroughTooltipOverride ?? $t('settings.audio.dacPassthroughDesc')}
{#if isFlatpak && selectedBackend === 'PipeWire' && dacPassthrough}
⚠️
{$t('settings.audio.flatpakWarningTitle')} {$t('settings.audio.flatpakWarningDesc')}
{$t('settings.audio.flatpakRecommended')} {$t('settings.audio.flatpakRecommendedDesc')}
{/if}
{$t('settings.audio.streamUncached')} {$t('settings.audio.streamUncachedDesc')}
{#if streamFirstTrack}
{$t('settings.audio.initialBuffer')} {$t('settings.audio.initialBufferDesc', { values: { seconds: streamBufferSeconds } })}
handleStreamBufferSecondsChange(parseInt(e.currentTarget.value))} class="buffer-slider" />
{/if}
{$t('settings.audio.streamingOnly')} {$t('settings.audio.streamingOnlyDesc')}
{$t('settings.audio.currentSampleRate')} {#if hardwareStatus?.is_active && hardwareStatus.hardware_sample_rate} {(hardwareStatus.hardware_sample_rate / 1000).toFixed(1)} kHz {#if hardwareStatus.hardware_format} ({hardwareStatus.hardware_format}) {/if} {:else} {$t('settings.audio.noActivePlayback')} {/if}

{$t('settings.playback.title')}

{$t('settings.playback.autoplayBehavior')} {$t('settings.playback.autoplayBehaviorDesc')}
handleAutoplayModeChange(enabled ? 'continue' : 'track_only')} />
{$t('settings.playback.showContextIcon')} {$t('settings.playback.showContextIconTooltip')}

{$t('offline.title')}

{$t('offline.status')} {#if offlineStatus.isOffline} {#if offlineStatus.reason === 'no_network'} {$t('offline.noNetwork')} {:else if offlineStatus.reason === 'not_logged_in'} {$t('offline.notLoggedIn')} {:else if offlineStatus.reason === 'manual_override'} {$t('offline.manualMode')} {:else} {$t('offline.offlineReason')} {/if} {:else} {$t('offline.online')} {/if}
{$t('offline.enableManual')} {$t('offline.enableManualDesc')}
{#if offlineSettings.manualOfflineMode}
{$t('offline.allowCast')} {$t('offline.allowCastDesc')}
{$t('offline.allowImmediateScrobbling')} {$t('offline.allowImmediateScrobblingDesc')}
{$t('offline.allowAccumulatedScrobbling')} {$t('offline.allowAccumulatedScrobblingDesc')} {$t('offline.scrobbleTimeLimit')}
{$t('offline.showNetworkFolders')} {$t('offline.showNetworkFoldersDesc')}
{/if}

{$t('settings.appearance.title')}

{$t('settings.appearance.theme')}
{$t('settings.appearance.language')}
{$t('settings.appearance.uiScale')}
{$t('settings.appearance.inAppToasts')} { toastsEnabled = v; setToastsEnabled(v); }} />
{$t('settings.appearance.systemNotifications')} { systemNotificationsEnabled = v; setSystemNotificationsEnabled(v); }} />
{$t('settings.appearance.hideTitleBar')} {$t('settings.appearance.hideTitleBarDesc')}
setHideTitleBar(v)} />
{$t('settings.appearance.immersiveDefaultView')}

{$t('settings.appearance.tray.title')}

{$t('settings.appearance.tray.enableTray')} {$t('settings.appearance.tray.enableTrayDesc')}
handleEnableTrayChange(v)} />
{$t('settings.appearance.tray.minimizeToTray')} {$t('settings.appearance.tray.minimizeToTrayDesc')}
handleMinimizeToTrayChange(v)} disabled={!enableTray} />
{$t('settings.appearance.tray.closeToTray')} {$t('settings.appearance.tray.closeToTrayDesc')}
handleCloseToTrayChange(v)} disabled={!enableTray} />
{#if !offlineLibraryCollapsed}

{$t('settings.offlineLibrary.disclaimer')}

{$t('settings.offlineLibrary.cachedTracks')} {#if downloadStats} {downloadStats.readyTracks} tracks ({formatBytes(downloadStats.totalSizeBytes)}) {:else} Loading... {/if}
{$t('settings.offlineLibrary.repair')} {$t('settings.offlineLibrary.repairDesc')}
{$t('settings.offlineLibrary.clearCache')}
{$t('settings.offlineLibrary.manageCache')} {$t('settings.offlineLibrary.manageCacheDesc')}
{/if}

{$t('settings.library.title')}

{$t('settings.library.fetchArtistImages')} {$t('settings.library.fetchArtistImagesDesc')}
{ fetchQobuzArtistImages = v; setUserItem('qbz-fetch-artist-images', String(v)); }} />

{$t('settings.contentFiltering.title')}

{$t('settings.contentFiltering.artistBlacklist')} {blacklistCount} {blacklistCount === 1 ? 'artist' : 'artists'} blocked {#if !blacklistEnabled} ({$t('settings.contentFiltering.disabled')}) {/if}

{$t('settings.integrations.title')}

{#if lastfmConnected}
{$t('settings.integrations.lastfm')} {$t('settings.integrations.connectedAs', { values: { username: lastfmUsername }})}
{$t('settings.integrations.scrobbling')}
{:else}
{$t('settings.integrations.lastfm')}
{#if lastfmAuthToken}

A browser window has been opened. Please authorize QBZ on Last.fm, then click the button below.

{:else if showLastfmConfig && !hasEmbeddedCredentials}

QBZ needs Last.fm API credentials to enable scrobbling. Create an API account and enter your credentials below.

{/if} {/if} {#if listenbrainzConnected}
ListenBrainz {$t('settings.integrations.connectedAs', { values: { username: listenbrainzUsername }})}
{$t('settings.integrations.scrobbling')}
{:else}
{$t('settings.integrations.listenbrainz')}
{#if showListenBrainzConfig}

{$t('settings.integrations.listenbrainzTokenHint')} listenbrainz.org/settings

{/if} {/if}
{$t('settings.integrations.musicbrainz')} {$t('settings.integrations.musicbrainzDesc')}

{$t('settings.updates.title')}

{$t('settings.updates.checkOnLaunch')}
{$t('settings.updates.checkNow')}
{$t('settings.updates.showWhatsNew')}
{$t('settings.updates.showChangelog')} {#if updatesCurrentVersion} {$t('settings.updates.currentVersion', { values: { version: updatesCurrentVersion } })} {/if}
{#if !remoteControlCollapsed}
{$t('settings.integrations.remoteControlEnable')} {$t('settings.integrations.remoteControlDesc')}
{$t('settings.integrations.remoteControlPort')} {$t('settings.integrations.remoteControlPortDesc')}
handleRemoteControlPortChange(Number((e.target as HTMLInputElement).value))} />
{$t('settings.integrations.remoteControlSecure')} {$t('settings.integrations.remoteControlSecureDesc')}
{#if remoteControlEnabled}
{$t('settings.integrations.remoteControlToken')} {$t('settings.integrations.remoteControlTokenDesc')}
{/if} {#if remoteControlEnabled && remoteControlSecure}
{$t('settings.integrations.remoteControlCert')} {$t('settings.integrations.remoteControlCertDesc')}
{/if}
{$t('settings.integrations.remoteControlStatus')} {#if remoteControlStatus?.running} {$t('settings.integrations.remoteControlStatusRunning')} {:else} {$t('settings.integrations.remoteControlStatusStopped')} {/if} {#if remoteControlUrl} {$t('settings.integrations.remoteControlUrlLabel')}: {remoteControlUrl} {/if}
{#if remoteControlQrOpen}
{$t('settings.integrations.remoteControlQrAlt')}

{$t('settings.integrations.remoteControlQrHelp')}

{/if} {/if}
{#if isUpdateResultOpen} {/if} {#if settingsWhatsNewRelease} {/if}
{#if !storageCollapsed}

{$t('settings.storage.queueCacheNote')}

{$t('settings.storage.clearCache')} {#if cacheStats} {$t('settings.storage.queueCacheStats', { values: { tracks: cacheStats.cached_tracks, used: formatBytes(cacheStats.current_size_bytes), max: formatBytes(cacheStats.max_size_bytes) } })} {:else} {$t('actions.loading')} {/if}
{$t('settings.lyrics.clearLyrics')} {#if lyricsCacheStats} {$t('settings.lyrics.cacheStats', { values: { entries: lyricsCacheStats.entries, size: formatBytes(lyricsCacheStats.sizeBytes) } })} {:else} - {/if}
{$t('settings.integrations.musicbrainzCache')} {#if musicBrainzCacheStats} {musicBrainzCacheStats.artists} artists, {musicBrainzCacheStats.relations} relations, {musicBrainzCacheStats.recordings} recordings {:else} - {/if}
Artist Vectors (Suggestions) {#if vectorStoreStats} {vectorStoreStats.artist_count} artists, {vectorStoreStats.entry_count} relations {:else} - {/if}
Artwork Thumbnails {#if artworkCacheStats} {@const thumbCount = artworkCacheStats.thumbnail_file_count ?? 0} {@const thumbBytes = artworkCacheStats.thumbnails_cache_bytes ?? 0} {@const legacyCount = artworkCacheStats.artwork_file_count ?? 0} {@const legacyBytes = artworkCacheStats.artwork_cache_bytes ?? 0} {#if thumbCount > 0 || legacyCount > 0} {#if thumbCount > 0}{thumbCount} thumbnails ({formatBytes(thumbBytes)}){/if}{#if thumbCount > 0 && legacyCount > 0}, {/if}{#if legacyCount > 0}{legacyCount} legacy files ({formatBytes(legacyBytes)}){/if} {:else} No cached artwork {/if} {:else} - {/if}
Clear All Caches Clears all cached data above
{/if}
{#if isFlatpak}

Flatpak Sandbox

QBZ is running inside a Flatpak sandbox. For offline libraries on NAS, network mounts, or external disks, direct filesystem access is required.

Grant Filesystem Access

Use Flatseal (GUI) or run this command for each folder you want to add:

flatpak override --user --filesystem=/path/to/your/music com.blitzfc.qbz

Examples

# CIFS / Samba mount
flatpak override --user --filesystem=/mnt/nas com.blitzfc.qbz

# SSHFS mount
flatpak override --user --filesystem=$HOME/music-nas com.blitzfc.qbz

# Custom folder (edit as needed)
flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz

Note: This setting is persistent and survives reboots and updates.
Tip: You can repeat the command for as many folders as you need.

Chromecast & DLNA Device Discovery

To detect Chromecast and DLNA devices on your network, you must grant network sharing permissions to the app:

flatpak override --user --share=network com.blitzfc.qbz

Note: Without this, device discovery will not work.
You only need to do this once.

{/if}
{#if isCheckingNetwork}
{/if} showAlsaUtilsHelpModal = false} /> showDACWizardModal = false} /> showRemoteControlGuide = false} />