Compare commits

...
69 Commits
Author SHA1 Message Date
github-actions[bot] c5d8f9c62b chore: bump version to 2.4.0 2026-05-31 19:30:17 +00:00
edde746 4ffa3d30f6 fix(player): preserve shader toggle preset
close #1208
2026-05-31 21:25:46 +02:00
edde746 d5c8778074 fix: harden reconnect and playback regressions 2026-05-31 20:33:38 +02:00
edde746 c6c76d6828 fix(dialogs): own text input resources 2026-05-31 15:34:00 +02:00
edde746 9cfc6c0f4a fix(tv): stabilize osk dismissal 2026-05-31 15:22:13 +02:00
edde746 2eae450aa0 fix(jellyfin): preserve add screen dpad focus 2026-05-31 15:00:35 +02:00
edde746 1b5334e72f fix(jellyfin): harden local discovery flow 2026-05-31 14:33:31 +02:00
edde746 e3db54940d feat(jellyfin): add local server discovery
close #1188
2026-05-31 10:51:08 +02:00
edde746 656d512858 ci: add build platform toggles 2026-05-31 09:26:55 +02:00
edde746 d9135e0d25 fix(player): log display HDR capabilities 2026-05-31 08:48:21 +02:00
edde746 4f636dfffd fix(ci): install libmpv scripting deps 2026-05-31 07:54:37 +02:00
edde746 6438b444bf fix(player): clarify Dolby Vision playback logging 2026-05-31 06:56:18 +02:00
edde746 8413e1e5a7 fix(player): reduce sync offset dpad step 2026-05-31 06:38:25 +02:00
edde746 5671f6e5d1 fix(plex): send playback session stream header 2026-05-31 06:30:51 +02:00
edde746 a4a0475fdb fix(player): let macOS shortcuts pass through
close #1206
2026-05-31 03:03:52 +02:00
edde746 9a740b91c1 fix(plex): select available playback version 2026-05-31 02:21:15 +02:00
edde746 63ab80fa82 fix(player): switch refresh rate before ExoPlayer open 2026-05-31 00:28:54 +02:00
edde746 0bb085c70c feat(macos): support start in fullscreen setting
close #1200
2026-05-30 23:58:38 +02:00
edde746 9825ce3c7c fix: select first playable Plex Part instead of always Part[0]
close #1201
2026-05-30 21:37:01 +02:00
edde746 f5012b36ea fix(media-detail): collapse action buttons that overflow small screens 2026-05-30 17:20:16 +02:00
edde746 6111c381af fix(libraries): reload when a server connects after initial load 2026-05-30 14:01:01 +02:00
edde746 00fce3a997 fix(downloads): cap aggregate progress below 100% until all episodes complete
Rounding the smoothed per-episode progress could fill the ring to 100% while a download was still finishing; only report 100% once every queued episode is complete. Also drop the stale episode-count diagnostic log that read leafCount/_totalEpisodeCounts solely for logging after the denominator change.
2026-05-30 08:48:44 +02:00
edde746 b8417f0277 style(downloads): apply dart format to download_utils.dart
Merged via #1195 without formatting; aligns it with the repo's dart format pre-commit gate.
2026-05-30 08:48:03 +02:00
DarkmaddaandGitHub 4148c1c8ff fix(downloads): scope show progress to queued episodes; manage completed downloads (#1195)
Progress ring now measures completion against the episodes actually queued (episodes.length) instead of the show's full leafCount, and advances smoothly using per-episode progress. The completed show/season download button reopens the download-options dialog (with a Delete row) so users can fetch more episodes or switch to sync instead of only deleting.
2026-05-30 08:40:17 +02:00
edde746 9e5098f356 fix(trackers): respect server completion threshold
close #1194
2026-05-30 08:30:06 +02:00
edde746 139eed9ca9 fix(templates): require substantive issue-form fields 2026-05-30 07:33:06 +02:00
23efb02636 fix(browse): keep show in browse after deleting its downloads
The browse grid listens for DeletionEvents and decrements each show's
leafCount, evicting the show when the count hits zero. Download-only
deletions (isDownloadOnly: true) fired one event per episode, so deleting
every downloaded episode of a show drove its leafCount to zero and removed
it from browse - even though the content still exists on the server.

Browse is online-only (the Libraries tab is hidden when offline) and always
reflects server-side content, so it must ignore download-only deletions.
Add a guard at the top of onDeletionEvent, matching the existing
isDownloadOnly contract already honored by media_detail_screen.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 07:20:54 +02:00
Timo KoxandGitHub 294996eac1 feat(player): add end-of-video sleep timer option (#1111)
close #540
2026-05-30 07:16:01 +02:00
edde746 a4f0b92b4e fix(windows): stop taskbar icon flashing on minimize after playback 2026-05-30 03:01:48 +02:00
Micah MorrisonandGitHub 7cac050500 feat(playback): add option to exit fullscreen on player close (#1174)
Adds a setting to automatically exit fullscreen when the video player is closed.
2026-05-30 02:38:35 +02:00
edde746 1685ecc991 fix(playback): prevent native subtitle autoselect 2026-05-30 00:05:29 +02:00
edde746 a71711de5f fix(ci): update database schema expectation 2026-05-29 23:45:01 +02:00
edde746 7534a6c60a fix(downloads): apply progress watch snapshots 2026-05-29 21:37:27 +02:00
edde746 dba01f14bb fix(playback): harden watch progress edge cases 2026-05-29 21:16:01 +02:00
edde746 d93ea9813f fix(playback): harden offline source reporting 2026-05-29 19:55:01 +02:00
edde746 7501f461b9 fix(playback): sync downloaded watch progress
close #1171, close #1183
2026-05-29 19:55:01 +02:00
edde746 5e5702c961 fix: resume playback after iOS audio route changes
close #1185
2026-05-29 11:04:27 +02:00
edde746 4b477a4fe3 build(tvos): bump engine to 3.44.0+3 2026-05-29 08:29:18 +02:00
edde746 50ff514be8 feat(tv): wrap on-screen keyboard focus at edges 2026-05-29 05:03:10 +02:00
edde746 1c7a083d6c build(linux): enable lua and javascript in libmpv 2026-05-29 03:32:45 +02:00
edde746 097e48d705 fix(tv): trap d-pad focus at button row edges
close #1181
2026-05-29 03:31:53 +02:00
edde746 a931d5910b fix(tv): let text fields fall back to directional traversal
close #1176
2026-05-29 03:30:54 +02:00
edde746 1cd585eecb feat(android): sync external player progress
close #1175
2026-05-29 00:58:45 +02:00
edde746 9981b277c6 test: cover jellyfin trickplay aspect ratio 2026-05-29 00:18:53 +02:00
edde746 2b7ea5fe02 feat(video): add custom zoom controls
close #1159
2026-05-29 00:06:47 +02:00
edde746 47276e1bac feat(tv): add optional full-card layouts 2026-05-28 22:33:06 +02:00
edde746andGitHub c8670a8d6a Merge pull request #1178 from micahmo/fix/plex-bif-aspect-ratio
Fix scrub preview aspect ratio
2026-05-28 22:05:37 +02:00
Micah Morrison 9cc32e125b Fix BIF scrub preview aspect ratio and raise desktop size limit 2026-05-28 15:46:08 -04:00
edde746 4217da1a8f fix(android): recover ExoPlayer audio failures 2026-05-28 09:31:19 +02:00
edde746 704c37f97f fix(ui): tighten media detail spacing 2026-05-28 08:16:27 +02:00
edde746 0c8e0fc2ec fix(i18n): update Bulgarian generated strings 2026-05-28 05:55:55 +02:00
edde746 d6315a0f75 feat(desktop): improve snackbar behavior 2026-05-28 04:48:36 +02:00
edde746 92cdbdd723 chore: remove local MPVKit checkout 2026-05-28 04:07:27 +02:00
edde746andDimitar Topper Maznekov 3939ba809f feat(i18n): add Bulgarian language
Co-authored-by: Dimitar "Topper" Maznekov <23097319+TopperBG@users.noreply.github.com>
2026-05-28 04:01:37 +02:00
edde746 6642348a96 feat(jellyfin): support multiple server urls 2026-05-28 03:43:46 +02:00
edde746 0b29673a5e fix(plex): use provider continue watching hub
close #1166
2026-05-28 01:29:29 +02:00
edde746 3747a74cb3 fix(pip): guard callbacks after dispose 2026-05-28 01:14:38 +02:00
edde746 bcb7f1d3c1 fix(android): disable flutter deeplink routing 2026-05-28 00:48:59 +02:00
edde746 7b56b90f24 fix(main): guard tvOS menu updates after dispose 2026-05-28 00:37:07 +02:00
edde746 ba62129414 fix(playback): support Apple DV conversion 2026-05-28 00:33:20 +02:00
edde746 e559a6125d fix(detail): isolate overlay sheet scrolling 2026-05-28 00:29:13 +02:00
edde746 869b4fe230 chore: bump MPVKit 2026-05-28 00:14:06 +02:00
edde746 3b4110d7e5 fix(android): improve Dolby Vision fallback 2026-05-27 21:02:48 +02:00
edde746 7b4e399013 chore: bump MPVKit 2026-05-27 06:52:03 +02:00
edde746 5788d93e89 feat(profiles): sort by recent use
close #1151
2026-05-27 06:52:03 +02:00
edde746 08a806e457 fix(playback): restore system ui after video
close #1152
2026-05-27 06:52:03 +02:00
edde746 e45bfadc14 feat(libraries): add nav quick picker
close #1144
2026-05-27 06:52:03 +02:00
edde746 56cfb95af5 fix(playback): apply default quality to jellyfin
close #1150
2026-05-27 00:02:23 +02:00
github-actions[bot] 8e8942fb36 chore: update cask to 2.3.0 2026-05-26 21:34:32 +00:00
240 changed files with 16408 additions and 1663 deletions
+4
View File
@@ -82,6 +82,8 @@ body:
options:
- Jellyfin
- Plex
validations:
required: true
- type: input
id: device
@@ -89,6 +91,8 @@ body:
label: Device Information
description: What device are you using?
placeholder: e.g., iPhone 14 Pro, Pixel 7, Chrome on macOS
validations:
required: true
- type: textarea
id: logs
+7 -2
View File
@@ -41,6 +41,8 @@ body:
1. As a user, I would...
2. This would help me...
3. The benefit would be...
validations:
required: true
- type: dropdown
id: platform
@@ -57,17 +59,20 @@ body:
- tvOS
- Linux
- All platforms
validations:
required: true
- type: dropdown
id: media-server
attributes:
label: Media Server
description: Is this for Jellyfin, Plex, or both?
description: Which media server(s) is this for?
multiple: true
options:
- Jellyfin
- Plex
- Both
validations:
required: true
- type: textarea
id: additional
+81 -33
View File
@@ -2,15 +2,45 @@ name: Build
on:
workflow_dispatch:
inputs:
build_android:
description: Build Android
default: true
type: boolean
build_ios:
description: Build iOS
default: true
type: boolean
build_macos:
description: Build macOS
default: true
type: boolean
build_windows:
description: Build Windows
default: true
type: boolean
build_linux:
description: Build Linux
default: true
type: boolean
env:
SENTRY_DART_DEFINE: ${{ github.repository == 'edde746/plezy' && '--dart-define=ENABLE_SENTRY=true' || '' }}
GIT_COMMIT_DART_DEFINE: --dart-define=GIT_COMMIT=${{ github.sha }}
SENTRY_ENV_DART_DEFINE: --dart-define=SENTRY_ENVIRONMENT=github
DONATIONS_DART_DEFINE: --dart-define=ENABLE_DONATIONS=true
LINUX_APT_PACKAGES: >
clang cmake meson ninja-build pkg-config nasm libgtk-3-dev libevdev-dev liblzma-dev
libstdc++-12-dev libasound2-dev libass-dev libfreetype-dev libfontconfig-dev libfribidi-dev
libharfbuzz-dev libepoxy-dev libegl-dev libgl-dev libgnutls28-dev libpipewire-0.3-dev
libva-dev libvdpau-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev
libxss-dev libxpresent-dev libxkbcommon-dev libpulse-dev libdbus-1-dev libdrm-dev
libgbm-dev libwayland-dev wayland-protocols liblcms2-dev libmujs-dev liblua5.2-dev
ruby ruby-dev rubygems build-essential rpm libarchive-tools imagemagick libcurl4-openssl-dev
jobs:
build-android:
if: ${{ inputs.build_android }}
runs-on: ubuntu-latest
permissions:
id-token: write
@@ -101,6 +131,7 @@ jobs:
plezy-android-x86_64.tar.gz
build-ios:
if: ${{ inputs.build_ios }}
runs-on: macos-26
permissions:
id-token: write
@@ -166,6 +197,7 @@ jobs:
path: plezy-ios.ipa
build-macos:
if: ${{ inputs.build_macos }}
runs-on: macos-26
permissions:
id-token: write
@@ -337,6 +369,7 @@ jobs:
macos-dmg-size.txt
build-windows-x64:
if: ${{ inputs.build_windows }}
runs-on: windows-latest
permissions:
contents: read
@@ -385,6 +418,7 @@ jobs:
path: build/windows/x64/runner/Release/
build-windows-arm64:
if: ${{ inputs.build_windows }}
runs-on: windows-11-arm
permissions:
contents: read
@@ -441,6 +475,7 @@ jobs:
package-windows:
needs: [build-windows-x64, build-windows-arm64]
if: ${{ inputs.build_windows }}
runs-on: windows-latest
permissions:
id-token: write
@@ -523,6 +558,7 @@ jobs:
win-installer-size.txt
build-linux-x64:
if: ${{ inputs.build_linux }}
runs-on: ubuntu-latest
permissions:
id-token: write
@@ -549,20 +585,12 @@ jobs:
- name: Cache APT packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: clang cmake meson ninja-build pkg-config nasm libgtk-3-dev libevdev-dev liblzma-dev libstdc++-12-dev libasound2-dev libass-dev libfreetype-dev libfontconfig-dev libfribidi-dev libharfbuzz-dev libepoxy-dev libegl-dev libgl-dev libgnutls28-dev libpipewire-0.3-dev libva-dev libvdpau-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxss-dev libxpresent-dev libxkbcommon-dev libpulse-dev libdbus-1-dev libdrm-dev libgbm-dev libwayland-dev wayland-protocols liblcms2-dev ruby ruby-dev rubygems build-essential rpm libarchive-tools imagemagick libcurl4-openssl-dev
packages: ${{ env.LINUX_APT_PACKAGES }}
version: 1.1
- name: Install Linux dependencies
run: |
packages=(
clang cmake meson ninja-build pkg-config nasm libgtk-3-dev libevdev-dev liblzma-dev
libstdc++-12-dev libasound2-dev libass-dev libfreetype-dev libfontconfig-dev libfribidi-dev
libharfbuzz-dev libepoxy-dev libegl-dev libgl-dev libgnutls28-dev libpipewire-0.3-dev
libva-dev libvdpau-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev
libxss-dev libxpresent-dev libxkbcommon-dev libpulse-dev libdbus-1-dev libdrm-dev
libgbm-dev libwayland-dev wayland-protocols liblcms2-dev ruby ruby-dev rubygems
build-essential rpm libarchive-tools imagemagick libcurl4-openssl-dev
)
read -r -a packages <<< "$LINUX_APT_PACKAGES"
for attempt in 1 2 3; do
if sudo apt-get update -o Acquire::Retries=3 && sudo apt-get install -y -o Acquire::Retries=3 "${packages[@]}"; then
@@ -657,6 +685,7 @@ jobs:
plezy-linux-x64.pkg.tar.zst
build-linux-arm64:
if: ${{ inputs.build_linux }}
runs-on: ubuntu-24.04-arm
permissions:
id-token: write
@@ -683,20 +712,12 @@ jobs:
- name: Cache APT packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: clang cmake meson ninja-build pkg-config nasm libgtk-3-dev libevdev-dev liblzma-dev libstdc++-12-dev libasound2-dev libass-dev libfreetype-dev libfontconfig-dev libfribidi-dev libharfbuzz-dev libepoxy-dev libegl-dev libgl-dev libgnutls28-dev libpipewire-0.3-dev libva-dev libvdpau-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxss-dev libxpresent-dev libxkbcommon-dev libpulse-dev libdbus-1-dev libdrm-dev libgbm-dev libwayland-dev wayland-protocols liblcms2-dev ruby ruby-dev rubygems build-essential rpm libarchive-tools imagemagick libcurl4-openssl-dev
packages: ${{ env.LINUX_APT_PACKAGES }}
version: 1.1
- name: Install Linux dependencies
run: |
packages=(
clang cmake meson ninja-build pkg-config nasm libgtk-3-dev libevdev-dev liblzma-dev
libstdc++-12-dev libasound2-dev libass-dev libfreetype-dev libfontconfig-dev libfribidi-dev
libharfbuzz-dev libepoxy-dev libegl-dev libgl-dev libgnutls28-dev libpipewire-0.3-dev
libva-dev libvdpau-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev
libxss-dev libxpresent-dev libxkbcommon-dev libpulse-dev libdbus-1-dev libdrm-dev
libgbm-dev libwayland-dev wayland-protocols liblcms2-dev ruby ruby-dev rubygems
build-essential rpm libarchive-tools imagemagick libcurl4-openssl-dev
)
read -r -a packages <<< "$LINUX_APT_PACKAGES"
for attempt in 1 2 3; do
if sudo apt-get update -o Acquire::Retries=3 && sudo apt-get install -y -o Acquire::Retries=3 "${packages[@]}"; then
@@ -801,7 +822,8 @@ jobs:
plezy-linux-arm64.pkg.tar.zst
create-release:
needs: [build-android, build-ios, build-macos, package-windows, build-linux-x64, build-linux-arm64]
needs: [build-android, build-ios, build-macos, build-windows-x64, build-windows-arm64, package-windows, build-linux-x64, build-linux-arm64]
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && (inputs.build_android || inputs.build_ios || inputs.build_macos || inputs.build_windows || inputs.build_linux) }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -812,48 +834,56 @@ jobs:
sparse-checkout-cone-mode: false
- name: Download Android artifacts
if: ${{ inputs.build_android }}
uses: actions/download-artifact@v4
with:
name: android-apk
path: artifacts/android-apk
- name: Download iOS artifact
if: ${{ inputs.build_ios }}
uses: actions/download-artifact@v4
with:
name: ios-ipa
path: artifacts/ios-ipa
- name: Download macOS artifact
if: ${{ inputs.build_macos }}
uses: actions/download-artifact@v4
with:
name: macos-dmg
path: artifacts/macos-dmg
- name: Download Windows x64 artifact
if: ${{ inputs.build_windows }}
uses: actions/download-artifact@v4
with:
name: windows-x64-portable
path: artifacts/windows-x64-portable
- name: Download Windows arm64 artifact
if: ${{ inputs.build_windows }}
uses: actions/download-artifact@v4
with:
name: windows-arm64-portable
path: artifacts/windows-arm64-portable
- name: Download Windows installer artifact
if: ${{ inputs.build_windows }}
uses: actions/download-artifact@v4
with:
name: windows-installer
path: artifacts/windows-installer
- name: Download Linux x64 artifacts
if: ${{ inputs.build_linux }}
uses: actions/download-artifact@v4
with:
name: linux-x64
path: artifacts/linux-x64
- name: Download Linux arm64 artifacts
if: ${{ inputs.build_linux }}
uses: actions/download-artifact@v4
with:
name: linux-arm64
@@ -940,21 +970,39 @@ jobs:
echo "Generated appcast.xml:"
cat appcast.xml
- name: Collect release files
id: release-files
run: |
{
echo 'files<<EOF'
if [ "${{ inputs.build_android }}" = "true" ]; then
echo artifacts/android-apk/plezy-android-arm64-v8a.tar.gz
echo artifacts/android-apk/plezy-android-armeabi-v7a.tar.gz
echo artifacts/android-apk/plezy-android-x86_64.tar.gz
fi
if [ "${{ inputs.build_ios }}" = "true" ]; then
echo artifacts/ios-ipa/plezy-ios.ipa
fi
if [ "${{ inputs.build_macos }}" = "true" ]; then
echo artifacts/macos-dmg/plezy-macos.dmg
fi
if [ "${{ inputs.build_windows }}" = "true" ]; then
echo artifacts/windows-x64-portable/plezy-windows-x64-portable.7z
echo artifacts/windows-arm64-portable/plezy-windows-arm64-portable.7z
echo artifacts/windows-installer/plezy-windows-installer.exe
fi
if [ "${{ inputs.build_linux }}" = "true" ]; then
echo 'artifacts/linux-x64/*'
echo 'artifacts/linux-arm64/*'
fi
echo appcast.xml
echo EOF
} >> "$GITHUB_OUTPUT"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
artifacts/android-apk/plezy-android-arm64-v8a.tar.gz
artifacts/android-apk/plezy-android-armeabi-v7a.tar.gz
artifacts/android-apk/plezy-android-x86_64.tar.gz
artifacts/ios-ipa/plezy-ios.ipa
artifacts/macos-dmg/plezy-macos.dmg
artifacts/windows-x64-portable/plezy-windows-x64-portable.7z
artifacts/windows-arm64-portable/plezy-windows-arm64-portable.7z
artifacts/windows-installer/plezy-windows-installer.exe
artifacts/linux-x64/*
artifacts/linux-arm64/*
appcast.xml
files: ${{ steps.release-files.outputs.files }}
draft: true
prerelease: false
generate_release_notes: true
+2 -2
View File
@@ -1,6 +1,6 @@
cask "plezy" do
version "2.2.0"
sha256 "9bfd7397d27bb2dbfd0f4d3e47d6fb73d6a1135f9f181ec8c48767c95964f1e9"
version "2.3.0"
sha256 "2255247656fb352e95184986ee2918bbc8e452a2adee0e27749b2e9ec77d892b"
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
name "Plezy"
+3
View File
@@ -59,6 +59,9 @@
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data
android:name="flutter_deeplinking_enabled"
android:value="false" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
+1 -1
View File
@@ -86,7 +86,7 @@ extern "C" JNIEXPORT jint JNICALL Java_com_edde746_plezy_exoplayer_DoviBridge_na
}
}
// Convert to target profile (mode 2 = P8.1 with no-op curves)
// Mode 2 matches Kodi's P8.1 compatibility path and sets luma/chroma curves to no-op.
int32_t ret = dovi_convert_rpu_with_mode(rpu, static_cast<uint8_t>(mode));
if (ret != 0) {
err = dovi_rpu_get_error(rpu);
@@ -1,5 +1,6 @@
package com.edde746.plezy
import android.app.Activity
import android.app.ActivityManager
import android.app.AppOpsManager
import android.app.PictureInPictureParams
@@ -42,6 +43,31 @@ class MainActivity : FlutterActivity() {
companion object {
private const val TAG = "MainActivity"
private const val TEXT_INPUT_DIAGNOSTICS_ENABLED = false
private const val EXTERNAL_PLAYER_REQUEST_CODE = 7461
// External player result APIs used by Jellyfin Android TV.
private const val API_MX_RETURN_RESULT = "return_result"
private const val API_MX_RESULT_ID = "com.mxtech.intent.result.VIEW"
private const val API_MX_RESULT_POSITION = "position"
private const val API_MX_RESULT_DURATION = "duration"
private const val API_MX_RESULT_END_BY = "end_by"
private const val API_MX_RESULT_END_BY_PLAYBACK_COMPLETION = "playback_completion"
private const val API_MX_TITLE = "title"
private const val API_MX_FILENAME = "filename"
private const val API_MX_SECURE_URI = "secure_uri"
private const val API_VLC_RESULT_POSITION = "extra_position"
private const val API_VLC_RESULT_DURATION = "extra_duration"
private const val API_VIMU_TITLE = "forcename"
private const val API_VIMU_SEEK_POSITION = "startfrom"
private const val API_VIMU_RESUME = "forceresume"
private const val API_VIMU_RESULT_ID = "net.gtvbox.videoplayer.result"
private const val API_VIMU_RESULT_ERROR = 4
private const val API_VIMU_RESULT_PLAYBACK_COMPLETED = 1
private val externalPlayerPositionExtras = arrayOf(API_MX_RESULT_POSITION, API_VLC_RESULT_POSITION)
private val externalPlayerDurationExtras = arrayOf(API_MX_RESULT_DURATION, API_VLC_RESULT_DURATION)
var usingSkia = false
}
@@ -54,6 +80,7 @@ class MainActivity : FlutterActivity() {
private val APP_FOREGROUND_CHANNEL = "com.plezy/app_foreground"
private var watchNextPlugin: WatchNextPlugin? = null
private var nativeTextInputFocused = false
private var pendingExternalPlayerResult: MethodChannel.Result? = null
private inline fun logTextInputDiag(message: () -> String) {
if (TEXT_INPUT_DIAGNOSTICS_ENABLED) {
@@ -250,6 +277,67 @@ class MainActivity : FlutterActivity() {
return handled
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (requestCode == EXTERNAL_PLAYER_REQUEST_CODE) {
val pendingResult = pendingExternalPlayerResult
pendingExternalPlayerResult = null
if (pendingResult == null) {
Log.w(TAG, "External player result received without a pending channel result")
} else {
pendingResult.success(buildExternalPlayerResult(resultCode, data))
}
return
}
super.onActivityResult(requestCode, resultCode, data)
}
private fun buildExternalPlayerResult(resultCode: Int, data: Intent?): Map<String, Any?> {
val extras = data?.extras
val endPosition = firstNumberExtra(extras, externalPlayerPositionExtras)
val duration = firstNumberExtra(extras, externalPlayerDurationExtras)
val action = data?.action
val playbackCompleted = when (action) {
API_MX_RESULT_ID -> extras?.getString(API_MX_RESULT_END_BY) == API_MX_RESULT_END_BY_PLAYBACK_COMPLETION
API_VIMU_RESULT_ID -> resultCode == API_VIMU_RESULT_PLAYBACK_COMPLETED
else -> false
}
val playbackError = when (action) {
API_VIMU_RESULT_ID -> resultCode == API_VIMU_RESULT_ERROR
else -> false
}
return mapOf(
"launched" to true,
"resultCode" to resultCode,
"resultOk" to (resultCode == Activity.RESULT_OK),
"action" to action,
"positionMs" to endPosition,
"durationMs" to duration,
"playbackCompleted" to playbackCompleted,
"playbackError" to playbackError
)
}
private fun firstNumberExtra(extras: Bundle?, keys: Array<String>): Long? {
if (extras == null) return null
for (key in keys) {
@Suppress("DEPRECATION")
val value = extras.get(key)
when (value) {
is Number -> return value.toLong()
is String -> value.toLongOrNull()?.let { return it }
}
}
return null
}
override fun onDestroy() {
pendingExternalPlayerResult?.error("ACTIVITY_DESTROYED", "Activity was destroyed while external player was active", null)
pendingExternalPlayerResult = null
super.onDestroy()
}
private fun handleWatchNextIntent(intent: Intent?) {
val contentId = WatchNextPlugin.handleIntent(intent)
if (contentId != null) {
@@ -382,43 +470,68 @@ class MainActivity : FlutterActivity() {
"openVideo" -> {
val filePath = call.argument<String>("filePath")
val packageName = call.argument<String>("package")
val title = call.argument<String>("title")?.trim()?.takeIf { it.isNotEmpty() }
val startPositionMs = call.argument<Number>("startPositionMs")?.toLong() ?: 0L
if (filePath == null) {
result.error("INVALID_ARGUMENT", "filePath is required", null)
return@setMethodCallHandler
}
if (pendingExternalPlayerResult != null) {
result.error("ALREADY_ACTIVE", "An external player is already active", null)
return@setMethodCallHandler
}
try {
val uri: Uri
val grantRead: Boolean
val fileName: String?
if (filePath.startsWith("http://") || filePath.startsWith("https://")) {
uri = Uri.parse(filePath)
grantRead = false
fileName = uri.lastPathSegment
} else if (filePath.startsWith("content://")) {
uri = Uri.parse(filePath)
grantRead = true
fileName = uri.lastPathSegment
} else {
val path = if (filePath.startsWith("file://")) filePath.removePrefix("file://") else filePath
fileName = File(path).name
uri = FileProvider.getUriForFile(this, "com.edde746.plezy.fileprovider", File(path))
grantRead = true
}
val intent = Intent(Intent.ACTION_VIEW).apply {
setDataAndType(uri, "video/*")
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (grantRead) {
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
}
if (packageName != null) {
setPackage(packageName)
}
val startPosition = startPositionMs.coerceAtLeast(0).coerceAtMost(Int.MAX_VALUE.toLong()).toInt()
if (startPosition > 0) {
putExtra(API_MX_RESULT_POSITION, startPosition)
putExtra(API_VIMU_SEEK_POSITION, startPosition)
}
putExtra(API_MX_RETURN_RESULT, true)
putExtra(API_MX_SECURE_URI, true)
putExtra(API_VIMU_RESUME, false)
title?.let {
putExtra(API_MX_TITLE, it)
putExtra(API_VIMU_TITLE, it)
}
fileName?.let { putExtra(API_MX_FILENAME, it) }
}
startActivity(intent)
result.success(true)
pendingExternalPlayerResult = result
startActivityForResult(intent, EXTERNAL_PLAYER_REQUEST_CODE)
} catch (e: android.content.ActivityNotFoundException) {
pendingExternalPlayerResult = null
result.error("APP_NOT_FOUND", "No app found for package: $packageName", null)
} catch (e: Exception) {
pendingExternalPlayerResult = null
result.error("LAUNCH_FAILED", e.message ?: e.javaClass.simpleName, null)
}
}
@@ -1,18 +1,63 @@
package com.edde746.plezy.exoplayer
import android.content.Context
import android.media.MediaCodecInfo
import android.media.MediaCodecList
import android.os.Build
import android.util.Log
import android.view.Display
import android.view.WindowManager
enum class DvConversionMode { DISABLED, DV81, HEVC_STRIP }
object DoviBridge {
private const val TAG = "DoviBridge"
data class DvAutoDecision(
val mode: DvConversionMode,
val reason: String,
val bridgeReady: Boolean,
val displayDv: Boolean,
val nativeDecoder: Boolean,
val advertisedP7: Boolean,
val advertisedP8: Boolean,
val decoders: String,
val displayHdr: String
) {
fun logMessage(): String = "AUTO P7 DV decision: mode=$mode; reason=$reason; bridgeReady=$bridgeReady, " +
"displayDV=$displayDv, nativeDecoder=$nativeDecoder, advertisedP7=$advertisedP7, " +
"advertisedP8=$advertisedP8, decoders=$decoders, displayHdr=$displayHdr"
}
data class Dv7FallbackDecision(
val mode: DvConversionMode,
val reason: String,
val bridgeReady: Boolean,
val displayDv: Boolean,
val advertisedP8: Boolean,
val displayHdr: String
) {
fun logMessage(): String = "DV7 fallback decision: mode=$mode; reason=$reason; bridgeReady=$bridgeReady, " +
"displayDV=$displayDv, advertisedP8=$advertisedP8, displayHdr=$displayHdr"
}
private val DOLBY_VISION_MIME_TYPES = setOf(
"video/dolby-vision",
"video/hevcdv",
"video/dv_hevc"
)
const val CONVERT_FAILED = -1
const val DESTINATION_TOO_SMALL = -2
private data class DvProfileLevel(val profile: Int, val level: Int)
private data class DvDecoderCapability(
val name: String,
val mimeType: String,
val profileLevels: List<DvProfileLevel>
)
private val nativeLoaded: Boolean by lazy {
try {
System.loadLibrary("dovi_bridge")
@@ -29,46 +74,254 @@ object DoviBridge {
fun isAvailable(): Boolean = conversionPathReady
private fun deviceSupportsDvProfile(profile: Int, minApi: Int = 0): Boolean {
private val dolbyVisionDecoders: List<DvDecoderCapability> by lazy {
try {
if (Build.VERSION.SDK_INT < minApi) return false
val codecList = MediaCodecList(MediaCodecList.REGULAR_CODECS)
return codecList.codecInfos.any { info ->
!info.isEncoder &&
info.supportedTypes.any { type ->
type.equals("video/dolby-vision", ignoreCase = true) &&
info.getCapabilitiesForType(type).profileLevels.any { it.profile == profile }
codecList.codecInfos.flatMap { info ->
if (info.isEncoder) {
emptyList()
} else {
info.supportedTypes.mapNotNull { type ->
if (!DOLBY_VISION_MIME_TYPES.contains(type.lowercase())) return@mapNotNull null
val capabilities = runCatching { info.getCapabilitiesForType(type) }
.onFailure { Log.w(TAG, "Failed to query ${info.name} capabilities for $type", it) }
.getOrNull()
?: return@mapNotNull null
DvDecoderCapability(
name = info.name,
mimeType = type,
profileLevels = capabilities.profileLevels.map { DvProfileLevel(it.profile, it.level) }
)
}
}
}
} catch (e: Exception) {
Log.w(TAG, "Failed to query DV profile $profile support", e)
return false
Log.w(TAG, "Failed to query native Dolby Vision decoder support", e)
emptyList()
}
}
val hasNativeDolbyVisionDecoder: Boolean by lazy {
dolbyVisionDecoders.isNotEmpty().also {
Log.i(TAG, "Native Dolby Vision decoder available: $it; decoders=${describeDolbyVisionDecoders()}")
}
}
private fun deviceAdvertisesDvProfile(profile: Int, minApi: Int = 0): Boolean {
if (Build.VERSION.SDK_INT < minApi) return false
return dolbyVisionDecoders.any { decoder ->
decoder.profileLevels.any { it.profile == profile }
}
}
val deviceSupportsDvProfile7: Boolean by lazy {
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtr)
.also { Log.i(TAG, "Device DV Profile 7 support: $it") }
deviceAdvertisesDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtb)
.also { Log.i(TAG, "Device advertises exact DV Profile 7 (DvheDtb): $it") }
}
val deviceSupportsDvProfile8: Boolean by lazy {
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt, minApi = 27)
.also { Log.i(TAG, "Device DV Profile 8 support: $it") }
deviceAdvertisesDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt, minApi = 27)
.also { Log.i(TAG, "Device advertises DV Profile 8 (DvheSt): $it") }
}
fun getConversionMode(): DvConversionMode = when {
!isAvailable() -> DvConversionMode.DISABLED
deviceSupportsDvProfile7 -> DvConversionMode.DISABLED // try native first; ExoPlayerCore retries with conversion on failure
deviceSupportsDvProfile8 -> DvConversionMode.DV81
else -> DvConversionMode.HEVC_STRIP
fun displaySupportsDolbyVision(context: Context): Boolean {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
Log.i(TAG, "Display Dolby Vision support: false (HDR capabilities require API 24, device API=${Build.VERSION.SDK_INT})")
return false
}
val display = getCurrentDisplay(context)
if (display == null) {
Log.i(TAG, "Display Dolby Vision support: false (no active display)")
return false
}
val hdrTypes = runCatching {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
display.mode.supportedHdrTypes
} else {
@Suppress("DEPRECATION")
val legacyHdrTypes = display.hdrCapabilities.supportedHdrTypes
legacyHdrTypes
}
}.getOrElse { error ->
Log.w(TAG, "Display Dolby Vision support: false (failed to query HDR types)", error)
return false
}
val supported = hdrTypes.contains(Display.HdrCapabilities.HDR_TYPE_DOLBY_VISION)
Log.i(TAG, "Display Dolby Vision support: $supported; ${describeDisplayHdrCapabilities(display)}")
return supported
}
fun describeDisplayHdrCapabilities(context: Context): String {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return "HDR capabilities unavailable (API=${Build.VERSION.SDK_INT})"
val display = getCurrentDisplay(context) ?: return "HDR capabilities unavailable (no active display)"
return describeDisplayHdrCapabilities(display)
}
fun logSupportSummary(context: Context) {
Log.i(
TAG,
"DV support summary: bridgeReady=${isAvailable()}, displayDV=${displaySupportsDolbyVision(context)}, " +
"nativeDecoder=$hasNativeDolbyVisionDecoder, advertisedP7=$deviceSupportsDvProfile7, " +
"advertisedP8=$deviceSupportsDvProfile8, decoders=${describeDolbyVisionDecoders()}, " +
"displayHdr=${describeDisplayHdrCapabilities(context)}"
)
}
fun getConversionDecision(context: Context): DvAutoDecision {
val bridgeReady = isAvailable()
val displayDv = displaySupportsDolbyVision(context)
val nativeDecoder = hasNativeDolbyVisionDecoder
val advertisedP7 = deviceSupportsDvProfile7
val advertisedP8 = deviceSupportsDvProfile8
val mode = when {
!displayDv -> DvConversionMode.HEVC_STRIP
advertisedP7 -> DvConversionMode.DISABLED
advertisedP8 && bridgeReady -> DvConversionMode.DV81
else -> DvConversionMode.HEVC_STRIP
}
val reason = when {
!displayDv -> "active display does not support Dolby Vision; stripping DV metadata for HEVC fallback"
advertisedP7 -> "active display supports Dolby Vision and decoder advertises exact Profile 7; trying native DV first"
advertisedP8 && bridgeReady -> "active display supports Dolby Vision and decoder advertises Profile 8; converting to Profile 8.1"
!bridgeReady -> "conversion bridge unavailable; stripping DV metadata for HEVC fallback"
else -> "Dolby Vision output path is unavailable; stripping DV metadata for HEVC fallback"
}
val decision = DvAutoDecision(
mode = mode,
reason = reason,
bridgeReady = bridgeReady,
displayDv = displayDv,
nativeDecoder = nativeDecoder,
advertisedP7 = advertisedP7,
advertisedP8 = advertisedP8,
decoders = describeDolbyVisionDecoders(),
displayHdr = describeDisplayHdrCapabilities(context)
)
Log.i(TAG, decision.logMessage())
return decision
}
fun getConversionMode(context: Context): DvConversionMode = getConversionDecision(context).mode
/** Get the fallback mode when native DV7 decoding fails. */
fun getDv7FallbackMode(): DvConversionMode = when {
deviceSupportsDvProfile8 -> DvConversionMode.DV81
else -> DvConversionMode.HEVC_STRIP
fun getDv7FallbackDecision(context: Context): Dv7FallbackDecision {
val bridgeReady = isAvailable()
val displayDv = displaySupportsDolbyVision(context)
val advertisedP8 = deviceSupportsDvProfile8
val mode = if (displayDv && advertisedP8 && bridgeReady) DvConversionMode.DV81 else DvConversionMode.HEVC_STRIP
val reason = when {
mode == DvConversionMode.DV81 -> "display supports Dolby Vision and decoder advertises Profile 8"
!bridgeReady -> "conversion bridge unavailable; stripping DV metadata for HEVC fallback"
else -> "Dolby Vision output or Profile 8 support is unavailable"
}
val decision = Dv7FallbackDecision(
mode = mode,
reason = reason,
bridgeReady = bridgeReady,
displayDv = displayDv,
advertisedP8 = advertisedP8,
displayHdr = describeDisplayHdrCapabilities(context)
)
Log.i(TAG, decision.logMessage())
return decision
}
fun getDv7FallbackMode(context: Context): DvConversionMode = getDv7FallbackDecision(context).mode
private fun getCurrentDisplay(context: Context): Display? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
context.display
} else {
@Suppress("DEPRECATION")
(context.getSystemService(Context.WINDOW_SERVICE) as? WindowManager)?.defaultDisplay
}
private fun describeDolbyVisionDecoders(): String {
if (dolbyVisionDecoders.isEmpty()) return "none"
return dolbyVisionDecoders.joinToString { decoder ->
val profiles = if (decoder.profileLevels.isEmpty()) {
"none"
} else {
decoder.profileLevels.joinToString(prefix = "[", postfix = "]") {
"${describeDvProfile(it.profile)}/${describeDvLevel(it.level)}"
}
}
"${decoder.name}(${decoder.mimeType}, profiles=$profiles)"
}
}
private fun describeHdrTypes(hdrTypes: IntArray): String {
if (hdrTypes.isEmpty()) return "none"
return hdrTypes.joinToString(prefix = "[", postfix = "]") { type ->
when (type) {
Display.HdrCapabilities.HDR_TYPE_DOLBY_VISION -> "DOLBY_VISION"
Display.HdrCapabilities.HDR_TYPE_HDR10 -> "HDR10"
Display.HdrCapabilities.HDR_TYPE_HLG -> "HLG"
Display.HdrCapabilities.HDR_TYPE_HDR10_PLUS -> "HDR10_PLUS"
else -> "unknown(${hex(type)})"
}
}
}
private fun describeDisplayHdrCapabilities(display: Display): String {
val hdrCapabilities = display.hdrCapabilities
val parts = mutableListOf(
"display=${display.displayId}:${display.name}",
"activeMode=${describeDisplayMode(display.mode)}",
"hdrCapabilities=${describeHdrTypes(hdrCapabilities.supportedHdrTypes)}",
"desiredLuminance=max=${formatLuminance(hdrCapabilities.desiredMaxLuminance)}, " +
"maxAvg=${formatLuminance(hdrCapabilities.desiredMaxAverageLuminance)}, " +
"min=${formatLuminance(hdrCapabilities.desiredMinLuminance)}"
)
parts += "supportedModes=${display.supportedModes.joinToString(prefix = "[", postfix = "]") { describeDisplayMode(it) }}"
return parts.joinToString(prefix = "{", postfix = "}")
}
private fun describeDisplayMode(mode: Display.Mode): String {
val hdr = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
", hdr=${describeHdrTypes(mode.supportedHdrTypes)}"
} else {
""
}
return "#${mode.modeId} ${mode.physicalWidth}x${mode.physicalHeight}@${mode.refreshRate}Hz$hdr"
}
private fun formatLuminance(value: Float): String = if (value.isNaN() || value <= 0f) "unknown" else "${value}nits"
private fun describeDvProfile(profile: Int): String = when (profile) {
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvavPer -> "P0/DvavPer"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvavPen -> "P1/DvavPen"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDer -> "P2/DvheDer"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDen -> "P3/DvheDen"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtr -> "P4/DvheDtr"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheStn -> "P5/DvheStn"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDth -> "P6/DvheDth"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtb -> "P7/DvheDtb"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt -> "P8/DvheSt"
MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvavSe -> "P9/DvavSe"
else -> "unknown(${hex(profile)})"
}
private fun describeDvLevel(level: Int): String = when (level) {
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelHd24 -> "L1/Hd24"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelHd30 -> "L2/Hd30"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd24 -> "L3/Fhd24"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd30 -> "L4/Fhd30"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelFhd60 -> "L5/Fhd60"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd24 -> "L6/Uhd24"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd30 -> "L7/Uhd30"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd48 -> "L8/Uhd48"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd60 -> "L9/Uhd60"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevelUhd120 -> "L10/Uhd120"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevel8k30 -> "L11/8k30"
MediaCodecInfo.CodecProfileLevel.DolbyVisionLevel8k60 -> "L12/8k60"
else -> "unknown(${hex(level)})"
}
private fun hex(value: Int): String = "0x${value.toString(16)}"
fun convertRpuNalu(
payload: ByteArray,
payloadOffset: Int,
@@ -11,9 +11,10 @@ import androidx.media3.extractor.TrackOutput
/**
* TrackOutput wrapper that processes DV Profile 7 HEVC samples based on conversion mode:
*
* - DV81: Convert RPU NALs via libdovi to Profile 8.1, present as video/dolby-vision
* with dvhe.08.XX codec string. Preserves dynamic tone mapping metadata.
* - HEVC_STRIP: Strip all DV enhancement layers, present as plain video/hevc.
* - DV81: Convert RPU NALs via libdovi mode 2 to Profile 8.1, present as
* video/dolby-vision with dvhe.08.XX codec string. Conversion failures drop
* that RPU instead of forwarding Profile 7 metadata into a Profile 8.1 stream.
* - HEVC_STRIP: Strip DV RPU/EL NALs, present as plain video/hevc.
*
* Two modes of NAL framing (auto-detected):
* - Annex B (MKV path): MatroskaExtractor outputs 00 00 00 01 start codes
@@ -22,8 +23,7 @@ import androidx.media3.extractor.TrackOutput
* NAL processing:
* - Type 62 (UNSPEC62): DV RPU → convert (DV81) or strip (HEVC_STRIP)
* - Type 63 (UNSPEC63): DV Enhancement Layer → strip
* - nuh_layer_id > 0: Enhancement layer NAL → strip
* - All retained NALs: normalize nuh_layer_id to 0
* - All other NALs: pass through unchanged, matching Kodi's compatibility path
*
* All buffers are reused across samples to minimize GC pressure on the hot path.
*/
@@ -47,6 +47,10 @@ class DoviConvertingTrackOutput(
private set
var strippedNalCount = 0L
private set
var strippedRpuNalCount = 0L
private set
var strippedElNalCount = 0L
private set
var strippedInitNalCount = 0L
private set
var convertedRpuCount = 0L
@@ -79,11 +83,17 @@ class DoviConvertingTrackOutput(
override fun format(format: Format) {
if (!conversionActive) {
val codecs = format.codecs
if (codecs != null && codecs.startsWith("dvhe.07")) {
if (isDvProfile7Codec(codecs)) {
val codecString = codecs ?: ""
conversionActive = true
logInfo("DV Profile 7 detected ($codecs), mode=$dvMode")
logInfo("DV Profile 7 detected ($codecString), mode=$dvMode")
when (dvMode) {
DvConversionMode.DV81 -> logInfo("DV81: Kodi-style libdovi conversion (convert RPU type 62, drop EL type 63)")
DvConversionMode.HEVC_STRIP -> logInfo("HEVC_STRIP: Kodi-compatible strip (drop RPU type 62 and EL type 63 only)")
else -> Unit
}
logInfo(
"Original format: mime=${format.sampleMimeType}, codecs=$codecs, " +
"Original format: mime=${format.sampleMimeType}, codecs=$codecString, " +
"initData=${format.initializationData.size} entries " +
"(${format.initializationData.mapIndexed { i, d -> "$i:${d.size}B" }.joinToString()})"
)
@@ -92,7 +102,7 @@ class DoviConvertingTrackOutput(
val newFormat = when (dvMode) {
DvConversionMode.DV81 -> {
// Parse DV level from codec string: "dvhe.07.06" → 6
val level = codecs.split('.').getOrNull(2)?.toIntOrNull() ?: 6
val level = codecString.split('.').getOrNull(2)?.toIntOrNull() ?: 6
val newCodecs = "dvhe.08.%02d".format(level)
val dvConfigRecord = buildDv81ConfigRecord(level)
logInfo("DV81: rewriting to $newCodecs, config=${dvConfigRecord.size}B")
@@ -360,7 +370,6 @@ class DoviConvertingTrackOutput(
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
outputLen += 4
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
normalizeLayerId(outputBuf, outputLen)
outputLen += nalLen
kept++
} else if (action == NalAction.CONVERT) {
@@ -368,16 +377,15 @@ class DoviConvertingTrackOutput(
if (convertedLen >= 0) {
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
outputLen += 4
normalizeLayerId(outputBuf, outputLen)
outputLen += convertedLen
convertedRpuCount++
kept++
} else {
strippedNalCount++
recordStrippedNal(action)
stripped++
}
} else {
strippedNalCount++
recordStrippedNal(action)
stripped++
}
}
@@ -428,7 +436,6 @@ class DoviConvertingTrackOutput(
writeInt32BE(outputBuf, outputLen, nalLen)
outputLen += 4
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
normalizeLayerId(outputBuf, outputLen)
outputLen += nalLen
kept++
} else if (action == NalAction.CONVERT) {
@@ -436,16 +443,15 @@ class DoviConvertingTrackOutput(
if (convertedLen >= 0) {
writeInt32BE(outputBuf, outputLen, convertedLen)
outputLen += 4
normalizeLayerId(outputBuf, outputLen)
outputLen += convertedLen
convertedRpuCount++
kept++
} else {
strippedNalCount++
recordStrippedNal(action)
stripped++
}
} else {
strippedNalCount++
recordStrippedNal(action)
stripped++
}
@@ -461,7 +467,17 @@ class DoviConvertingTrackOutput(
}
}
private enum class NalAction { KEEP, STRIP, CONVERT }
private enum class NalAction { KEEP, STRIP_RPU, STRIP_EL, CONVERT }
private fun recordStrippedNal(action: NalAction) {
strippedNalCount++
// CONVERT reaches here only after conversion fails; raw P7 RPUs are not safe in P8.1 output.
when (action) {
NalAction.STRIP_RPU, NalAction.CONVERT -> strippedRpuNalCount++
NalAction.STRIP_EL -> strippedElNalCount++
NalAction.KEEP -> Unit
}
}
private fun convertRpuIntoOutput(nalStart: Int, nalLen: Int, outputOffset: Int): Int {
ensureOutputCapacity(outputOffset + MAX_CONVERTED_RPU_SIZE)
@@ -565,7 +581,6 @@ class DoviConvertingTrackOutput(
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
outputLen += 4
System.arraycopy(data, nalStart, outputBuf, outputLen, nalLen)
normalizeLayerId(outputBuf, outputLen)
outputLen += nalLen
kept++
}
@@ -617,25 +632,22 @@ class DoviConvertingTrackOutput(
/** Classify a NAL at sampleBuf[offset..offset+len) without copying. */
private fun processNalInline(offset: Int, len: Int): NalAction = classifyNal(sampleBuf, offset, len, convertRpu = dvMode == DvConversionMode.DV81)
private fun isDvProfile7Codec(codecs: String?): Boolean {
val normalized = codecs?.lowercase() ?: return false
return normalized.startsWith("dvhe.07") || normalized.startsWith("dvh1.07")
}
private fun classifyNal(data: ByteArray, offset: Int, len: Int, convertRpu: Boolean): NalAction {
if (len < 2) return NalAction.KEEP
val nalType = (data[offset].toInt() ushr 1) and 0x3F
val nuhLayerId = ((data[offset].toInt() and 1) shl 5) or
((data[offset + 1].toInt() ushr 3) and 0x1F)
return when {
nalType == NAL_TYPE_UNSPEC62 && convertRpu -> NalAction.CONVERT
nalType == NAL_TYPE_UNSPEC62 || nalType == NAL_TYPE_UNSPEC63 || nuhLayerId > 0 -> NalAction.STRIP
nalType == NAL_TYPE_UNSPEC62 -> NalAction.STRIP_RPU
nalType == NAL_TYPE_UNSPEC63 -> NalAction.STRIP_EL
else -> NalAction.KEEP
}
}
private fun normalizeLayerId(data: ByteArray, offset: Int) {
if (data.size - offset >= 2) {
data[offset] = (data[offset].toInt() and 0xFE).toByte()
data[offset + 1] = (data[offset + 1].toInt() and 0x07).toByte()
}
}
private fun writeInt32BE(buf: ByteArray, offset: Int, value: Int) {
buf[offset] = ((value ushr 24) and 0xFF).toByte()
buf[offset + 1] = ((value ushr 16) and 0xFF).toByte()
@@ -43,6 +43,7 @@ import androidx.media3.datasource.cronet.CronetDataSource
import androidx.media3.exoplayer.DecoderReuseEvaluation
import androidx.media3.exoplayer.DefaultLoadControl
import androidx.media3.exoplayer.DefaultRenderersFactory
import androidx.media3.exoplayer.ExoPlaybackException
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.exoplayer.RenderersFactory
import androidx.media3.exoplayer.analytics.AnalyticsListener
@@ -96,8 +97,10 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private const val WATCHDOG_CHECK_INTERVAL_MS = 1000L
private const val WATCHDOG_TIMEOUT_MS = 8000L
private const val DECODER_HANG_TIMEOUT_MS = 5000L
private const val MAX_AUDIO_RECOVERY_ATTEMPTS = 2
private const val FPS_SAMPLE_COUNT = 8
private const val TS_TIMESTAMP_SEARCH_PACKETS = 1800
private val DV_CODEC_PROFILE_REGEX = Regex("""(?:^|,)\s*dvh[1e]\.(\d{2})""")
// Codec capability caches — codec support doesn't change at runtime
private val hwAudioDecoderCache = HashMap<String, Boolean>()
@@ -120,6 +123,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private var surfaceContainer: FrameLayout? = null
private var videoAspectContainer: AspectRatioFrameLayout? = null
private var subtitleView: SubtitleView? = null
private var videoZoomScale: Float = 1.0f
private var assHandler: AssHandler? = null
private var overlayLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
private var lastVideoSize: VideoSize? = null
@@ -136,8 +140,9 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private var tunnelingDisabledForAudioCodec: Boolean = false
private var tunnelingDisabledForVideoCodec: Boolean = false
private var tunnelingDisabledForDecodedTrueHdPcm: Boolean = false
private var tunnelingDisabledForAudioRecovery: Boolean = false
private val tunnelingDisabledForCodec: Boolean
get() = tunnelingDisabledForAudioCodec || tunnelingDisabledForVideoCodec || tunnelingDisabledForDecodedTrueHdPcm
get() = tunnelingDisabledForAudioCodec || tunnelingDisabledForVideoCodec || tunnelingDisabledForDecodedTrueHdPcm || tunnelingDisabledForAudioRecovery
private var currentTunneledPlayback: Boolean = false
private var lastSeekable: Boolean? = null
@@ -153,6 +158,13 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private var decoderHangRunnable: Runnable? = null
private var decoderInitName: String? = null
private var audioDecoderInitName: String? = null
private var lastAudioTrackConfig: AudioSink.AudioTrackConfig? = null
private val directAudioOutputBlockedAfterFailure = mutableSetOf<String>()
private val loggedDirectAudioRecoveryBlocks = mutableSetOf<String>()
private var audioRecoveryAttempts: Int = 0
private var lastAudioRecoveryAction: String? = null
private var lastAudioRecoveryReason: String? = null
private var lastAudioSinkError: String? = null
private var loggedEwasteEac3Workaround: Boolean = false
private var lastTrueHdDirectOutputLogKey: String? = null
private var loggedDecodedTrueHdTunnelingGuard: Boolean = false
@@ -225,6 +237,13 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
val score: Int
)
private data class DvPlaybackInfo(
val sourceProfile: Int,
val path: String,
val reason: String,
val decoder: String
)
private fun emitLog(level: String, prefix: String, message: String) {
when (level) {
"error" -> Log.e(TAG, "[$prefix] $message")
@@ -300,12 +319,24 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
private var dvMode: DvConversionMode = DvConversionMode.DISABLED
private var debugDvModeOverride: DvConversionMode? = null
private var dv7RetryAttempted = false
private var currentVideoFormat: Format? = null
private var loggedNativeDvSelectionKey: String? = null
private var loggedNativeDvFirstFrame = false
private var loggedDvPlaybackPathKey: String? = null
private var lastDvPlaybackInfo: DvPlaybackInfo? = null
@Volatile private var activeDoviMkvWrapper: DoviExtractorWrapper? = null
@Volatile private var activeDoviMp4Wrapper: DoviExtractorWrapper? = null
private fun getConfiguredDvMode(): DvConversionMode = debugDvModeOverride ?: DoviBridge.getConversionMode()
private fun getConfiguredDvMode(): DvConversionMode {
val override = debugDvModeOverride
if (override != null) return override
val decision = DoviBridge.getConversionDecision(activity)
emitLog("info", "dv-auto", decision.logMessage())
return decision.mode
}
fun initialize(bufferSizeBytes: Int? = null, tunnelingEnabled: Boolean = true): Boolean {
if (isInitialized) {
@@ -315,10 +346,10 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
tunnelingUserEnabled = tunnelingEnabled
this.dvMode = getConfiguredDvMode()
DoviBridge.logSupportSummary(activity)
Log.i(
TAG,
"DV conversion: mode=$dvMode, bridge=${DoviBridge.isAvailable()}, " +
"deviceDV7=${DoviBridge.deviceSupportsDvProfile7}, deviceDV8=${DoviBridge.deviceSupportsDvProfile8}"
"DV conversion: mode=$dvMode, override=${debugDvModeOverride?.name ?: "AUTO"}"
)
disposing = false
@@ -426,7 +457,6 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
// encoded audio track when capabilities come back. See androidx/media#2258.
.setAllowInvalidateSelectionsOnRendererCapabilitiesChange(true)
.setTrackTypeDisabled(C.TRACK_TYPE_TEXT, false)
.setPreferredTextLanguage("en")
)
}
@@ -436,7 +466,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
// Use DefaultRenderersFactory with FFmpeg fallback for unsupported or blocked audio codecs.
val renderersFactory = PlezyRenderersFactory(activity).apply {
audioDiagnosticsLogger = { level, prefix, message -> emitLog(level, prefix, message) }
shouldBlockDirectTrueHd = { format -> this@ExoPlayerCore.shouldBlockDirectTrueHd(format, "sink support") }
shouldBlockDirectAudioOutput = { format -> this@ExoPlayerCore.shouldBlockDirectAudioOutput(format, "sink support") }
onAudioCapabilitiesChanged = { updateAudioDecoderPolicy("audio capabilities changed") }
setEnableDecoderFallback(true)
setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_ON)
@@ -889,11 +919,16 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
val audioGroup = tracks.groups.firstOrNull { it.type == C.TRACK_TYPE_AUDIO && it.isSelected }
if (videoGroup != null) {
val vf = videoGroup.mediaTrackGroup.getFormat(0)
currentVideoFormat = vf
val hdr = vf.colorInfo?.let { ci ->
val transfer = ci.colorTransfer
if (transfer != null && transfer != 0) " HDR(transfer=$transfer)" else ""
} ?: ""
emitLog("info", "tracks", "Video: ${vf.codecs} ${vf.width}x${vf.height}$hdr")
logNativeDvSelectionIfNeeded(vf)
logDolbyVisionPlaybackPathIfNeeded()
} else {
currentVideoFormat = null
}
if (audioGroup != null) {
val af = audioGroup.mediaTrackGroup.getFormat(0)
@@ -946,6 +981,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
return
}
if (retryAfterAudioTrackError(error, causeChain)) return
if (currentMediaUri != null) {
Log.w(TAG, "ExoPlayer error (code ${error.errorCode}) - attempting fallback to MPV")
val handled = delegate?.onFormatUnsupported(
@@ -967,22 +1004,227 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
)
}
private fun retryAfterAudioTrackError(error: PlaybackException, causeChain: String): Boolean {
if (!isAudioTrackError(error.errorCode)) return false
val player = exoPlayer ?: return false
val uri = currentMediaUri ?: return false
if (audioRecoveryAttempts >= MAX_AUDIO_RECOVERY_ATTEMPTS) {
emitLog(
"warn",
"audio-recovery",
"ExoPlayer audio recovery exhausted after $audioRecoveryAttempts attempts for ${PlaybackException.getErrorCodeName(error.errorCode)}"
)
return false
}
val selectedFormat = selectedAudioFormat()
val errorFormat = (error as? ExoPlaybackException)?.rendererFormat?.takeIf { format ->
format.sampleMimeType?.startsWith("audio/") == true
}
val recoveryFormat = selectedFormat ?: errorFormat
val actions = mutableListOf<String>()
recoveryFormat?.sampleMimeType
?.takeIf { isEncodedAudioMimeType(it) }
?.let { mimeType ->
if (directAudioOutputBlockedAfterFailure.add(mimeType)) {
actions.add("force-decoded-pcm($mimeType)")
}
}
if (!tunnelingDisabledForAudioRecovery) {
tunnelingDisabledForAudioRecovery = true
actions.add("disable-tunneling")
}
if (actions.isEmpty()) actions.add("reload")
audioRecoveryAttempts++
val savedPosition = maxOf(player.currentPosition, lastPosition, pendingStartPositionMs)
val savedPlayWhenReady = player.playWhenReady
val previousAudioTrackConfig = lastAudioTrackConfig
pendingStartPositionMs = savedPosition
pendingPlayWhenReady = savedPlayWhenReady
audioDecoderInitName = null
lastAudioTrackConfig = null
lastAudioRecoveryAction = actions.joinToString(",")
lastAudioRecoveryReason = "${PlaybackException.getErrorCodeName(error.errorCode)}: ${error.message ?: causeChain.ifEmpty { "unknown" }}"
stopFrameWatchdog()
cancelDecoderHangCheck()
applyTrackSelectorPolicy(reason = "audio recovery", forceSelector = true)
emitLog(
"warn",
"audio-recovery",
"Retrying in ExoPlayer ($audioRecoveryAttempts/$MAX_AUDIO_RECOVERY_ATTEMPTS) at ${savedPosition}ms; " +
"format=${recoveryFormat?.let { formatAudioSummary(it) } ?: "unknown"}, " +
"lastOutput=${describeAudioTrackConfig(previousAudioTrackConfig)}, actions=$lastAudioRecoveryAction"
)
if (!setCurrentMediaForRetry(player, uri, savedPosition)) return false
player.prepare()
player.playWhenReady = savedPlayWhenReady
return true
}
private fun isAudioTrackError(errorCode: Int): Boolean = when (errorCode) {
PlaybackException.ERROR_CODE_AUDIO_TRACK_INIT_FAILED,
PlaybackException.ERROR_CODE_AUDIO_TRACK_WRITE_FAILED,
PlaybackException.ERROR_CODE_AUDIO_TRACK_OFFLOAD_INIT_FAILED,
PlaybackException.ERROR_CODE_AUDIO_TRACK_OFFLOAD_WRITE_FAILED -> true
else -> false
}
private fun isEncodedAudioMimeType(mimeType: String): Boolean = mimeType.startsWith("audio/") && mimeType != MimeTypes.AUDIO_RAW
private fun setCurrentMediaForRetry(player: ExoPlayer, uri: String, positionMs: Long): Boolean {
if (currentMediaIsLive) {
val factory = dataSourceFactory ?: return false
val extractorsFactory = androidx.media3.extractor.ExtractorsFactory {
arrayOf(MatroskaExtractor(MatroskaExtractor.FLAG_DISABLE_SEEK_FOR_CUES))
}
val mediaSource = ProgressiveMediaSource.Factory(factory, extractorsFactory)
.createMediaSource(MediaItem.fromUri(uri))
player.setMediaSource(mediaSource, positionMs)
} else {
player.setMediaItem(buildMediaItem(uri), positionMs)
}
return true
}
private fun activeDoviTrackOutput(): DoviConvertingTrackOutput? = activeDoviMkvWrapper?.doviTrackOutput ?: activeDoviMp4Wrapper?.doviTrackOutput
private fun dolbyVisionProfile(format: Format?): Int? {
val codecs = format?.codecs?.lowercase() ?: return null
return DV_CODEC_PROFILE_REGEX.find(codecs)?.groupValues?.getOrNull(1)?.toIntOrNull()
}
private fun isDvProfile7Format(format: Format): Boolean = dolbyVisionProfile(format) == 7
private fun buildDvPlaybackInfo(format: Format?, decoderName: String?): DvPlaybackInfo? {
val doviTrack = activeDoviTrackOutput()
val conversionActive = doviTrack?.conversionActive == true
val sourceProfile = if (conversionActive) 7 else (dolbyVisionProfile(format) ?: return null)
val decoder = decoderName ?: decoderInitName ?: getVideoDecoderInfo(format) ?: "unknown"
val mimeType = format?.sampleMimeType
val (path, reason) = when {
sourceProfile == 7 && dvMode == DvConversionMode.DV81 ->
"P7 -> P8.1" to "Profile 7 conversion is active; RPU metadata is converted to Profile 8.1"
sourceProfile == 7 && dvMode == DvConversionMode.HEVC_STRIP ->
"P7 -> HEVC" to "Profile 7 HEVC strip is active; DV RPU/EL metadata is removed"
sourceProfile == 7 ->
"Native DV P7" to "Profile 7 conversion is disabled; trying native Dolby Vision decode"
sourceProfile == 8 && mimeType != MimeTypes.VIDEO_DOLBY_VISION ->
"HDR fallback" to "Profile 8 is being decoded through the HEVC/HDR10-compatible path"
sourceProfile == 8 ->
"DV P8 passthrough" to "Profile 8 is being passed through the native Dolby Vision-capable path"
else ->
"Native DV P$sourceProfile" to "Dolby Vision profile $sourceProfile is being sent to the native decoder path"
}
return DvPlaybackInfo(
sourceProfile = sourceProfile,
path = path,
reason = reason,
decoder = decoder
)
}
private fun logDolbyVisionPlaybackPathIfNeeded(decoderName: String? = decoderInitName) {
val format = currentVideoFormat ?: exoPlayer?.videoFormat ?: return
val info = buildDvPlaybackInfo(format, decoderName) ?: return
lastDvPlaybackInfo = info
val key = "${info.sourceProfile}|${format.sampleMimeType}|${format.codecs}|${info.decoder}|${info.path}|$dvMode"
if (loggedDvPlaybackPathKey == key) return
loggedDvPlaybackPathKey = key
emitLog(
"info",
"dv-playback",
"DV source: profile=${info.sourceProfile}, path=${info.path}, reason=${info.reason}, " +
"mime=${format.sampleMimeType}, codecs=${format.codecs}, decoder=${info.decoder}, p7Mode=$dvMode, " +
"displayDV=${DoviBridge.displaySupportsDolbyVision(activity)}, " +
"advertisedP7=${DoviBridge.deviceSupportsDvProfile7}, advertisedP8=${DoviBridge.deviceSupportsDvProfile8}"
)
}
private fun findDv7VideoFormat(): Format? {
currentVideoFormat?.takeIf { isDvProfile7Format(it) }?.let { return it }
val tracks = exoPlayer?.currentTracks ?: return null
for (group in tracks.groups) {
if (group.type != C.TRACK_TYPE_VIDEO) continue
for (i in 0 until group.mediaTrackGroup.length) {
val format = group.mediaTrackGroup.getFormat(i)
if (isDvProfile7Format(format)) return format
}
}
return null
}
private fun describeVideoFormat(format: Format?): String {
if (format == null) return "none"
return "mime=${format.sampleMimeType}, codecs=${format.codecs}, size=${format.width}x${format.height}"
}
private fun logNativeDvSelectionIfNeeded(format: Format) {
if (dvMode != DvConversionMode.DISABLED || !isDvProfile7Format(format)) return
val key = "${format.sampleMimeType}|${format.codecs}|${format.width}x${format.height}"
if (loggedNativeDvSelectionKey == key) return
loggedNativeDvSelectionKey = key
emitLog(
"info",
"dv-native",
"Selected DV Profile 7 for native playback: ${describeVideoFormat(format)}, " +
"displayDV=${DoviBridge.displaySupportsDolbyVision(activity)}, " +
"nativeDecoder=${DoviBridge.hasNativeDolbyVisionDecoder}, " +
"advertisedP7=${DoviBridge.deviceSupportsDvProfile7}, advertisedP8=${DoviBridge.deviceSupportsDvProfile8}"
)
}
private fun logNativeDvFirstFrameIfNeeded() {
if (loggedNativeDvFirstFrame || dvMode != DvConversionMode.DISABLED) return
val format = currentVideoFormat ?: return
if (!isDvProfile7Format(format)) return
loggedNativeDvFirstFrame = true
emitLog(
"info",
"dv-native",
"Native DV Profile 7 playback confirmed: ${describeVideoFormat(format)}, decoder=${decoderInitName ?: "unknown"}"
)
}
/**
* When native DV7 decoding fails (device falsely advertises DV7 support),
* upgrade to DV7→8.1 conversion or HEVC strip and reload the media.
* Returns true if retry was initiated.
* When native DV7 decoding fails, upgrade to DV7→8.1 conversion or HEVC strip
* and reload the media. Returns true if retry was initiated.
*/
private fun retryWithDvConversion(reason: String): Boolean {
if (dv7RetryAttempted) return false
if (debugDvModeOverride == DvConversionMode.DISABLED) return false
if (dvMode != DvConversionMode.DISABLED) return false
if (!DoviBridge.isAvailable()) return false
if (debugDvModeOverride == DvConversionMode.DISABLED) {
emitLog("debug", "dv-fallback", "Skipping DV conversion retry for $reason: native/disabled mode is forced")
return false
}
if (dvMode != DvConversionMode.DISABLED) {
emitLog("debug", "dv-fallback", "Skipping DV conversion retry for $reason: conversion already active ($dvMode)")
return false
}
if (currentMediaUri == null) return false
val dv7Format = findDv7VideoFormat()
if (dv7Format == null) {
emitLog(
"debug",
"dv-fallback",
"Skipping DV conversion retry for $reason: current video is not DV Profile 7 (${describeVideoFormat(currentVideoFormat)})"
)
return false
}
dv7RetryAttempted = true
val newMode = DoviBridge.getDv7FallbackMode()
val fallbackDecision = DoviBridge.getDv7FallbackDecision(activity)
val newMode = fallbackDecision.mode
dvMode = newMode
Log.i(TAG, "Native DV7 playback failed ($reason), retrying with $newMode")
Log.i(TAG, "Native DV7 playback failed ($reason, ${describeVideoFormat(dv7Format)}), retrying with $newMode")
emitLog("info", "dv-fallback", "${fallbackDecision.logMessage()}; trigger=$reason")
emitLog("info", "dv-fallback", "DV7 native failed ($reason), retrying as $newMode")
return reloadCurrentMediaForDvMode()
@@ -1022,18 +1264,26 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
val containerHeight = contentView.height
if (containerWidth == 0 || containerHeight == 0) return
// In cover/stretch modes subtitles stay at container size so they never get
// cropped or distorted. In letterbox mode they follow the video rect so they
// anchor to the bottom of the video (matching MPV's default sub positioning).
// In cover/stretch/zoomed-in modes subtitles stay at container size so they
// never get cropped. In letterbox mode they follow the visible video rect.
val isLetterbox = videoAspectContainer?.resizeMode == AspectRatioFrameLayout.RESIZE_MODE_FIT
val (subWidth, subHeight) = if (isLetterbox) {
val videoAspect = (videoWidth * pixelRatio) / videoHeight
val containerAspect = containerWidth.toFloat() / containerHeight
if (videoAspect > containerAspect) {
val (baseWidth, baseHeight) = if (videoAspect > containerAspect) {
containerWidth to (containerWidth / videoAspect).toInt()
} else {
(containerHeight * videoAspect).toInt() to containerHeight
}
if (videoZoomScale < 0.999f) {
val zoomedWidth = ((baseWidth * videoZoomScale).toInt()).coerceAtLeast(1)
val zoomedHeight = ((baseHeight * videoZoomScale).toInt()).coerceAtLeast(1)
zoomedWidth to zoomedHeight
} else if (videoZoomScale > 1.001f) {
containerWidth to containerHeight
} else {
baseWidth to baseHeight
}
} else {
containerWidth to containerHeight
}
@@ -1064,6 +1314,21 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
}
}
fun setVideoZoom(scale: Double) {
if (disposing) return
val clamped = scale.coerceIn(0.5, 2.0).toFloat()
activity.runOnUiThread {
videoZoomScale = clamped
videoAspectContainer?.scaleX = clamped
videoAspectContainer?.scaleY = clamped
lastVideoSize?.let { vs ->
if (vs.width > 0 && vs.height > 0) {
updateSubtitleViewSize(vs.width, vs.height, vs.pixelWidthHeightRatio)
}
}
}
}
private fun emitTrackList() {
val player = exoPlayer ?: return
val tracks = player.currentTracks
@@ -1403,6 +1668,21 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
return decision.blockDirectOutput
}
private fun shouldBlockDirectAudioOutput(format: Format, reason: String): Boolean {
val mimeType = format.sampleMimeType ?: return false
if (directAudioOutputBlockedAfterFailure.contains(mimeType)) {
if (loggedDirectAudioRecoveryBlocks.add("$mimeType|$reason")) {
emitLog(
"info",
"audio-recovery",
"Direct $mimeType output disabled after AudioTrack failure (reason=$reason); decoded PCM will be preferred"
)
}
return true
}
return mimeType == MimeTypes.AUDIO_TRUEHD && shouldBlockDirectTrueHd(format, reason)
}
private fun updateAudioDecoderPolicy(reason: String, format: Format? = null) {
if (format != null && format.sampleMimeType != MimeTypes.AUDIO_TRUEHD) return
val decision = evaluateTrueHdDirectOutput(format)
@@ -1755,7 +2035,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
currentTunneledPlayback = shouldTunnel
val speed = exoPlayer?.playbackParameters?.speed ?: 1f
val audioDelayActive = (renderersFactory?.audioDelayUs?.get() ?: 0L) != 0L
emitLog("info", "tunneling", "Toggling tunneling=$shouldTunnel (reason=$reason, user=$tunnelingUserEnabled, speed=$speed, audioCodecDisabled=$tunnelingDisabledForAudioCodec, videoCodecDisabled=$tunnelingDisabledForVideoCodec, decodedTrueHdPcmDisabled=$tunnelingDisabledForDecodedTrueHdPcm, audioDelay=$audioDelayActive)")
emitLog("info", "tunneling", "Toggling tunneling=$shouldTunnel (reason=$reason, user=$tunnelingUserEnabled, speed=$speed, audioCodecDisabled=$tunnelingDisabledForAudioCodec, videoCodecDisabled=$tunnelingDisabledForVideoCodec, decodedTrueHdPcmDisabled=$tunnelingDisabledForDecodedTrueHdPcm, audioRecoveryDisabled=$tunnelingDisabledForAudioRecovery, audioDelay=$audioDelayActive)")
return true
}
@@ -1822,6 +2102,13 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
return parts.joinToString(", ")
}
private fun describeAudioTrackConfig(config: AudioSink.AudioTrackConfig?): String {
if (config == null) return "none"
return "encoding=${config.encoding}, channels=${Integer.bitCount(config.channelConfig)}, " +
"channelConfig=0x${config.channelConfig.toString(16)}, buffer=${config.bufferSize}B, " +
"tunneling=${config.tunneling}, offload=${config.offload}"
}
// Decoder hang detection via AnalyticsListener:
// Tracks the gap between onVideoDecoderInitialized and onRenderedFirstFrame.
// If the decoder is initialized and fed input but never produces output, it's hung
@@ -1836,6 +2123,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
decoderInitName = decoderName
firstFrameRendered = false
emitLog("debug", "decoder-hang", "Decoder initialized: $decoderName (${initializationDurationMs}ms)")
logDolbyVisionPlaybackPathIfNeeded(decoderName)
startDecoderHangCheck(decoderName)
}
@@ -1880,6 +2168,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
}
override fun onAudioSinkError(eventTime: AnalyticsListener.EventTime, audioSinkError: Exception) {
lastAudioSinkError = "${audioSinkError.javaClass.name}: ${audioSinkError.message}"
emitLog("warn", "audio", "Sink error: ${audioSinkError.javaClass.name}: ${audioSinkError.message}")
}
@@ -1891,14 +2180,14 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
eventTime: AnalyticsListener.EventTime,
audioTrackConfig: AudioSink.AudioTrackConfig
) {
lastAudioTrackConfig = audioTrackConfig
val audioFormat = selectedAudioFormat()
emitLog(
"info",
"audio",
"AudioTrack initialized: encoding=${audioTrackConfig.encoding}, sampleRate=${audioTrackConfig.sampleRate}, " +
"channelConfig=0x${audioTrackConfig.channelConfig.toString(16)}, buffer=${audioTrackConfig.bufferSize}B, " +
"tunneling=${audioTrackConfig.tunneling}, offload=${audioTrackConfig.offload}"
"AudioTrack initialized: input=${audioFormat?.let { formatAudioSummary(it) } ?: "unknown"}, " +
"decoder=${audioDecoderInitName ?: "direct/bypass"}, ${describeAudioTrackConfig(audioTrackConfig)}"
)
val audioFormat = selectedAudioFormat()
if (audioFormat?.sampleMimeType == MimeTypes.AUDIO_TRUEHD) {
if (audioTrackConfig.tunneling && isPcmEncoding(audioTrackConfig.encoding)) {
if (!loggedDecodedTrueHdTunnelingGuard) {
@@ -1938,6 +2227,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
firstFrameRendered = true
cancelDecoderHangCheck()
emitLog("debug", "decoder-hang", "First frame rendered — decoder OK")
logNativeDvFirstFrameIfNeeded()
logDolbyVisionPlaybackPathIfNeeded()
// STATE_READY fires when the player has enough buffered to start, but
// the first frame may not be on screen yet (decoder init + keyframe
// decode). The MPV-parity `playback-restart` event consumers (Dart
@@ -2060,7 +2351,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
startPositionMs: Long,
autoPlay: Boolean,
isLive: Boolean = false,
externalSubtitleList: List<Map<String, String?>>? = null
externalSubtitleList: List<Map<String, Any?>>? = null
) {
if (!isInitialized) return
@@ -2078,6 +2369,18 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
decoderInitName = null
audioDecoderInitName = null
lastAudioTrackConfig = null
lastAudioSinkError = null
audioRecoveryAttempts = 0
lastAudioRecoveryAction = null
lastAudioRecoveryReason = null
directAudioOutputBlockedAfterFailure.clear()
loggedDirectAudioRecoveryBlocks.clear()
currentVideoFormat = null
loggedNativeDvSelectionKey = null
loggedNativeDvFirstFrame = false
loggedDvPlaybackPathKey = null
lastDvPlaybackInfo = null
loggedDecodedTrueHdTunnelingGuard = false
updateAudioDecoderPolicy("open")
currentMediaUri = uri
@@ -2101,12 +2404,22 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
// Build external subtitle configurations (attached to MediaItem before prepare)
externalSubtitleList?.forEachIndexed { index, sub ->
val subUri = sub["uri"] ?: return@forEachIndexed
val subUri = sub["uri"] as? String ?: return@forEachIndexed
val title = sub["title"] as? String
val language = sub["language"] as? String
val codec = sub["codec"] as? String
val mimeType = sub["mimeType"] as? String
val isDefault = sub["isDefault"] as? Boolean ?: false
val isForced = sub["isForced"] as? Boolean ?: false
val selectionFlags =
(if (isDefault) C.SELECTION_FLAG_DEFAULT else 0) or
(if (isForced) C.SELECTION_FLAG_FORCED else 0)
val config = MediaItem.SubtitleConfiguration.Builder(Uri.parse(subUri))
.setId("external_$index")
.setLabel(sub["title"] ?: "External")
.setLanguage(sub["language"])
.setMimeType(sub["mimeType"] ?: detectSubtitleMimeType(subUri))
.setLabel(title ?: "External")
.setLanguage(language)
.setMimeType(mimeType ?: subtitleMimeTypeForCodec(codec) ?: detectSubtitleMimeType(subUri))
.setSelectionFlags(selectionFlags)
.build()
externalSubtitles.add(config)
externalSubtitleUris.add(subUri)
@@ -2114,6 +2427,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
tunnelingDisabledForAudioCodec = false
tunnelingDisabledForVideoCodec = false
tunnelingDisabledForDecodedTrueHdPcm = false
tunnelingDisabledForAudioRecovery = false
currentTunneledPlayback = false
pendingStartPositionMs = startPositionMs
pendingPlayWhenReady = autoPlay
@@ -2121,7 +2435,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
reason = "open",
forceSelector = true,
clearAudioOverrides = true,
clearTextOverrides = true
clearTextOverrides = true,
textDisabled = true
)
emitSeekable(false, force = true)
@@ -2182,7 +2497,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
activeDoviMkvWrapper = null
activeDoviMp4Wrapper = null
val debugMode = override?.name ?: "AUTO"
emitLog("info", "dv-debug", "Debug DV conversion mode set to $debugMode (active=$dvMode)")
emitLog("info", "dv-debug", "P7 DV conversion mode set to $debugMode (active=$dvMode)")
reloadCurrentMediaForDvMode()
return true
}
@@ -2209,6 +2524,11 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
detectedFrameRate = -1f
fpsTimestampCount = 0
firstFrameRendered = false
currentVideoFormat = null
loggedNativeDvSelectionKey = null
loggedNativeDvFirstFrame = false
loggedDvPlaybackPathKey = null
lastDvPlaybackInfo = null
activeDoviMkvWrapper = null
activeDoviMp4Wrapper = null
stopFrameWatchdog()
@@ -2385,6 +2705,14 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
}
}
private fun subtitleMimeTypeForCodec(codec: String?): String? = when (codec?.lowercase()) {
"srt", "subrip" -> MimeTypes.APPLICATION_SUBRIP
"ass", "ssa" -> MimeTypes.TEXT_SSA
"webvtt", "vtt" -> MimeTypes.TEXT_VTT
"ttml" -> MimeTypes.APPLICATION_TTML
else -> null
}
fun setVisible(visible: Boolean) {
if (disposing) return
currentVisible = visible
@@ -2557,9 +2885,12 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
val player = exoPlayer ?: return emptyMap()
val videoFormat = player.videoFormat
val audioFormat = player.audioFormat
val audioTrackConfig = lastAudioTrackConfig
// Get decoder info from the format's codecs field and check if hardware accelerated
val videoDecoderInfo = getVideoDecoderInfo(videoFormat)
val videoDecoderName = decoderInitName ?: videoDecoderInfo
val dvPlaybackInfo = buildDvPlaybackInfo(videoFormat, videoDecoderName) ?: lastDvPlaybackInfo
return mapOf(
// Video metrics
@@ -2569,7 +2900,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
"videoHeight" to videoFormat?.height,
"videoFps" to (videoFormat?.frameRate?.takeIf { it > 0 } ?: detectedFrameRate.takeIf { it > 0 }),
"videoBitrate" to videoFormat?.bitrate,
"videoDecoderName" to (decoderInitName ?: videoDecoderInfo),
"videoDecoderName" to videoDecoderName,
"videoDroppedFrames" to player.videoDecoderCounters?.droppedBufferCount,
"videoRenderedFrames" to player.videoDecoderCounters?.renderedOutputBufferCount,
// Color info
@@ -2584,6 +2915,17 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
"audioChannels" to audioFormat?.channelCount,
"audioBitrate" to audioFormat?.bitrate,
"audioDecoderName" to audioDecoderInitName,
"audioOutputEncoding" to audioTrackConfig?.encoding,
"audioOutputChannels" to audioTrackConfig?.channelConfig?.let { Integer.bitCount(it) },
"audioOutputChannelConfig" to audioTrackConfig?.channelConfig,
"audioOutputTunneling" to audioTrackConfig?.tunneling,
"audioOutputOffload" to audioTrackConfig?.offload,
"audioOutputBufferSize" to audioTrackConfig?.bufferSize,
"audioLastSinkError" to lastAudioSinkError,
"audioRecoveryAttempts" to audioRecoveryAttempts,
"audioRecoveryLastAction" to lastAudioRecoveryAction,
"audioRecoveryLastReason" to lastAudioRecoveryReason,
"audioDirectOutputBlockedMimes" to directAudioOutputBlockedAfterFailure.toList(),
// Tunneling
"tunneledPlayback" to currentTunneledPlayback,
"tunnelingStatus" to getTunnelingStatus(player),
@@ -2604,8 +2946,13 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
"dvConversionActive" to (dovi?.conversionActive == true),
"dvConversionMode" to dvMode.name,
"dvConversionDebugMode" to (debugDvModeOverride?.name ?: "AUTO"),
"dvSourceProfile" to dvPlaybackInfo?.sourceProfile,
"dvPlaybackPath" to dvPlaybackInfo?.path,
"dvPlaybackReason" to dvPlaybackInfo?.reason,
"dvStrippedInitNals" to (dovi?.strippedInitNalCount ?: 0L),
"dvStrippedNals" to (dovi?.strippedNalCount ?: 0L),
"dvStrippedRpuNals" to (dovi?.strippedRpuNalCount ?: 0L),
"dvStrippedElNals" to (dovi?.strippedElNalCount ?: 0L),
"dvConvertedRpus" to (dovi?.convertedRpuCount ?: 0L),
"dvRpuConversionFailures" to (dovi?.rpuConversionFailureCount ?: 0L),
"dvRpuOutputTooSmall" to (dovi?.rpuOutputTooSmallCount ?: 0L),
@@ -2646,6 +2993,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
if (currentTunneledPlayback) return "Active"
if (!tunnelingUserEnabled) return "Disabled by user"
if (player.playbackParameters.speed != 1f) return "Off (speed ≠ 1×)"
if (tunnelingDisabledForAudioRecovery) return "Off (audio recovery)"
if (tunnelingDisabledForDecodedTrueHdPcm) return "Off (decoded TrueHD PCM)"
if (tunnelingDisabledForVideoCodec) return "Off (video codec unsupported)"
if (tunnelingDisabledForAudioCodec) return "Off (no HW audio decoder)"
@@ -2682,9 +3030,17 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
decoderInitName = null
audioDecoderInitName = null
lastAudioTrackConfig = null
lastAudioSinkError = null
audioRecoveryAttempts = 0
lastAudioRecoveryAction = null
lastAudioRecoveryReason = null
directAudioOutputBlockedAfterFailure.clear()
loggedDirectAudioRecoveryBlocks.clear()
tunnelingDisabledForAudioCodec = false
tunnelingDisabledForVideoCodec = false
tunnelingDisabledForDecodedTrueHdPcm = false
tunnelingDisabledForAudioRecovery = false
currentTunneledPlayback = false
pendingStartPositionMs = 0L
pendingPlayWhenReady = null
@@ -148,6 +148,7 @@ class ExoPlayerPlugin :
}
"setSubtitleStyle" -> handleSetSubtitleStyle(call, result)
"setBoxFitMode" -> handleSetBoxFitMode(call, result)
"setVideoZoom" -> handleSetVideoZoom(call, result)
"setDvConversionMode" -> handleSetDvConversionMode(call, result)
"observeProperty" -> handleObserveProperty(call, result)
"setMpvProperty" -> handleSetMpvProperty(call, result)
@@ -239,7 +240,7 @@ class ExoPlayerPlugin :
val startPositionMs = call.argument<Number>("startPositionMs")?.toLong() ?: 0L
val autoPlay = call.argument<Boolean>("autoPlay") ?: true
val isLive = call.argument<Boolean>("isLive") ?: false
val externalSubtitles = call.argument<List<Map<String, String?>>>("externalSubtitles")
val externalSubtitles = call.argument<List<Map<String, Any?>>>("externalSubtitles")
if (uri == null) {
result.error("INVALID_ARGS", "Missing 'uri'", null)
@@ -259,6 +260,8 @@ class ExoPlayerPlugin :
val options = mutableListOf<String>()
options.add("start=$startSeconds")
if (!autoPlay) options.add("pause=yes")
options.add("sid=no")
options.add("secondary-sid=no")
headers?.forEach { (key, value) ->
options.add("http-header-fields-append=$key: $value")
}
@@ -550,6 +553,22 @@ class ExoPlayerPlugin :
} ?: result.success(null)
}
private fun handleSetVideoZoom(call: MethodCall, result: MethodChannel.Result) {
val scale = call.argument<Number>("scale")?.toDouble()
if (scale == null) {
result.error("INVALID_ARGS", "Missing 'scale'", null)
return
}
if (usingMpvFallback) {
result.success(null)
return
}
activity?.runOnUiThread {
playerCore?.setVideoZoom(scale)
result.success(null)
} ?: result.success(null)
}
private fun handleSetDvConversionMode(call: MethodCall, result: MethodChannel.Result) {
val mode = call.argument<String>("mode")
if (mode == null) {
@@ -5,7 +5,6 @@ import android.media.AudioDeviceInfo
import android.os.Build
import androidx.annotation.OptIn
import androidx.media3.common.Format
import androidx.media3.common.MimeTypes
import androidx.media3.common.PlaybackParameters
import androidx.media3.common.util.Clock
import androidx.media3.common.util.UnstableApi
@@ -29,8 +28,8 @@ class PlezyRenderersFactory(context: Context) : DefaultRenderersFactory(context)
/** Audio delay in microseconds. Shared with PositionFixAudioSink for live updates. */
val audioDelayUs = AtomicLong(0L)
/** Returns whether direct TrueHD output should be hidden so decoded PCM output can be selected. */
var shouldBlockDirectTrueHd: ((Format) -> Boolean)? = null
/** Returns whether direct encoded output should be hidden so decoded PCM output can be selected. */
var shouldBlockDirectAudioOutput: ((Format) -> Boolean)? = null
/** Called before Media3 reacts to an audio route/capability change. */
var onAudioCapabilitiesChanged: (() -> Unit)? = null
@@ -68,7 +67,7 @@ class PlezyRenderersFactory(context: Context) : DefaultRenderersFactory(context)
defaultSink,
rawPositionUs,
audioDelayUs,
shouldBlockDirectTrueHd,
shouldBlockDirectAudioOutput,
onAudioCapabilitiesChanged,
audioDiagnosticsLogger
)
@@ -101,7 +100,7 @@ private class PositionFixAudioSink(
sink: AudioSink,
private val rawPositionUs: AtomicLong,
private val audioDelayUs: AtomicLong,
private val shouldBlockDirectTrueHd: ((Format) -> Boolean)?,
private val shouldBlockDirectAudioOutput: ((Format) -> Boolean)?,
private val onAudioCapabilitiesChanged: (() -> Unit)?,
private val log: ((String, String, String) -> Unit)?
) : ForwardingAudioSink(sink) {
@@ -117,27 +116,27 @@ private class PositionFixAudioSink(
// Transient counter-offset: after seek/flush, ramp offset from 0 to full
// over recoveryDurationUs to prevent video frame drops.
private var recoveryDurationUs = 0L
private var loggedTrueHdDirectBlock = false
private val loggedDirectBlockMimeTypes = mutableSetOf<String>()
private var loggedFirstBuffer = false
override fun supportsFormat(format: Format): Boolean {
if (blocksDirectTrueHd(format)) return false
if (blocksDirectAudioOutput(format)) return false
return super.supportsFormat(format)
}
override fun getFormatSupport(format: Format): Int {
if (blocksDirectTrueHd(format)) return AudioSink.SINK_FORMAT_UNSUPPORTED
if (blocksDirectAudioOutput(format)) return AudioSink.SINK_FORMAT_UNSUPPORTED
return super.getFormatSupport(format)
}
private fun blocksDirectTrueHd(format: Format): Boolean {
if (format.sampleMimeType != MimeTypes.AUDIO_TRUEHD || shouldBlockDirectTrueHd?.invoke(format) != true) return false
if (!loggedTrueHdDirectBlock) {
loggedTrueHdDirectBlock = true
private fun blocksDirectAudioOutput(format: Format): Boolean {
if (shouldBlockDirectAudioOutput?.invoke(format) != true) return false
val mimeType = format.sampleMimeType ?: "unknown"
if (loggedDirectBlockMimeTypes.add(mimeType)) {
log?.invoke(
"info",
"audio",
"Blocking direct TrueHD output; route does not report TrueHD bitstream support, decoded PCM output will be preferred"
"Blocking direct $mimeType output; decoded PCM output will be preferred"
)
}
return true
@@ -349,6 +348,7 @@ private class RawPositionAudioOutput(
private var loggedFirstWrite = false
private var writeCount = 0L
private var writtenBytes = 0L
private var failed = false
override fun getPositionUs(): Long {
val pos = delegate.getPositionUs()
@@ -362,7 +362,14 @@ private class RawPositionAudioOutput(
@Throws(AudioOutput.WriteException::class)
override fun write(buffer: ByteBuffer, size: Int, presentationTimeUs: Long): Boolean {
val before = buffer.position()
val handled = delegate.write(buffer, size, presentationTimeUs)
val handled = try {
delegate.write(buffer, size, presentationTimeUs)
} catch (e: AudioOutput.WriteException) {
failed = true
rawPositionUs.set(Long.MIN_VALUE)
log?.invoke("warn", "audio-output", "Write failed; AudioTrack will not be reused: ${e.message}")
throw e
}
val written = buffer.position() - before
if (written > 0) {
writeCount++
@@ -391,6 +398,10 @@ private class RawPositionAudioOutput(
override fun release() {
rawPositionUs.set(Long.MIN_VALUE)
if (failed) {
delegate.release()
return
}
if (Build.VERSION.SDK_INT >= 25) {
delegate.stop()
delegate.flush()
+1 -1
View File
@@ -789,7 +789,7 @@
repositoryURL = "https://github.com/edde746/MPVKit";
requirement = {
kind = revision;
revision = 01bcdad9840ba50fc874bc4d6e83bafd311ebf07;
revision = 6f711b36920b37d22e81353dda5a7df7965b1a44;
};
};
/* End XCRemoteSwiftPackageReference section */
@@ -40,7 +40,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/edde746/MPVKit",
"state" : {
"revision" : "01bcdad9840ba50fc874bc4d6e83bafd311ebf07"
"revision" : "6f711b36920b37d22e81353dda5a7df7965b1a44"
}
},
{
@@ -40,7 +40,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/edde746/MPVKit",
"state" : {
"revision" : "01bcdad9840ba50fc874bc4d6e83bafd311ebf07"
"revision" : "6f711b36920b37d22e81353dda5a7df7965b1a44"
}
},
{
+42 -5
View File
@@ -200,9 +200,13 @@ class JellyfinConnection extends Connection {
@override
final DateTime? lastAuthenticatedAt;
/// Server base URL, no trailing slash. e.g. `https://jellyfin.home.lan`.
/// Active server base URL, no trailing slash. e.g. `https://jellyfin.home.lan`.
final String baseUrl;
/// Candidate server URLs for this Jellyfin server, with [baseUrl] first.
/// Existing installs only have [baseUrl]; deserialization backfills this.
final List<String> baseUrls;
/// Server's reported name (System/Info).
final String serverName;
@@ -230,6 +234,7 @@ class JellyfinConnection extends Connection {
JellyfinConnection({
required this.id,
required this.baseUrl,
List<String>? baseUrls,
required this.serverName,
required this.serverMachineId,
required this.userId,
@@ -240,7 +245,7 @@ class JellyfinConnection extends Connection {
this.status = ConnectionStatus.unknown,
required this.createdAt,
this.lastAuthenticatedAt,
});
}) : baseUrls = _normalizeBaseUrls(baseUrl, baseUrls);
@override
ConnectionKind get kind => ConnectionKind.jellyfin;
@@ -252,16 +257,38 @@ class JellyfinConnection extends Connection {
String get displayLabel => serverName;
@override
String? get displaySubtitle => '$userName · ${_truncateUrl(baseUrl)}';
String? get displaySubtitle {
final extraCount = baseUrls.length - 1;
final suffix = extraCount > 0 ? ' +$extraCount' : '';
return '$userName · ${_truncateUrl(baseUrl)}$suffix';
}
static String _truncateUrl(String url) {
if (url.length <= 40) return url;
return '${url.substring(0, 37)}…';
}
static List<String> _normalizeBaseUrls(String activeBaseUrl, List<String>? urls) {
final result = <String>[];
final seen = <String>{};
void add(String url) {
final trimmed = url.trim();
if (trimmed.isEmpty || !seen.add(trimmed)) return;
result.add(trimmed);
}
add(activeBaseUrl);
for (final url in urls ?? const <String>[]) {
add(url);
}
return List.unmodifiable(result);
}
JellyfinConnection copyWith({
String? id,
String? baseUrl,
List<String>? baseUrls,
String? serverName,
String? serverMachineId,
String? userId,
@@ -273,9 +300,11 @@ class JellyfinConnection extends Connection {
DateTime? createdAt,
DateTime? lastAuthenticatedAt,
}) {
final nextBaseUrl = baseUrl ?? this.baseUrl;
return JellyfinConnection(
id: id ?? this.id,
baseUrl: baseUrl ?? this.baseUrl,
baseUrl: nextBaseUrl,
baseUrls: baseUrls ?? this.baseUrls,
serverName: serverName ?? this.serverName,
serverMachineId: serverMachineId ?? this.serverMachineId,
userId: userId ?? this.userId,
@@ -293,6 +322,7 @@ class JellyfinConnection extends Connection {
Map<String, Object?> toConfigJson() {
return {
'baseUrl': baseUrl,
'baseUrls': baseUrls,
'serverName': serverName,
'serverMachineId': serverMachineId,
'userId': userId,
@@ -310,9 +340,16 @@ class JellyfinConnection extends Connection {
required DateTime createdAt,
DateTime? lastAuthenticatedAt,
}) {
final rawBaseUrls = json['baseUrls'];
final baseUrls = rawBaseUrls is List ? rawBaseUrls.whereType<String>().toList(growable: false) : const <String>[];
final rawBaseUrl = json['baseUrl'] as String?;
final baseUrl = rawBaseUrl != null && rawBaseUrl.isNotEmpty
? rawBaseUrl
: (baseUrls.isNotEmpty ? baseUrls.first : '');
return JellyfinConnection(
id: id,
baseUrl: json['baseUrl'] as String? ?? '',
baseUrl: baseUrl,
baseUrls: baseUrls,
serverName: json['serverName'] as String? ?? 'Jellyfin',
serverMachineId: json['serverMachineId'] as String? ?? '',
userId: json['userId'] as String? ?? '',
+107 -47
View File
@@ -60,7 +60,7 @@ class AppDatabase extends _$AppDatabase {
AppDatabase.forTesting(super.e);
@override
int get schemaVersion => 14;
int get schemaVersion => 15;
@override
MigrationStrategy get migration {
@@ -206,6 +206,13 @@ class AppDatabase extends _$AppDatabase {
() => m.create(idxOfflineWatchProgressProfile),
);
}
if (from < 15) {
appLogger.i('Adding mediaSourceId column to DownloadedMedia (v15 migration)');
await _ignoreAlreadyExists(
'DownloadedMedia.mediaSourceId column',
() => m.addColumn(downloadedMedia, downloadedMedia.mediaSourceId),
);
}
},
);
}
@@ -277,11 +284,57 @@ class AppDatabase extends _$AppDatabase {
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)) &
(filterClientScope ? _clientScopePredicate(t.clientScopeId, clientScopeId) : const Constant(true)),
)
..orderBy([(t) => OrderingTerm.desc(t.updatedAt)])
..orderBy([(t) => OrderingTerm.desc(t.updatedAt), (t) => OrderingTerm.desc(t.id)])
..limit(1))
.getSingleOrNull();
}
Future<List<OfflineWatchProgressItem>> getWatchActionsForKey(
String globalKey, {
String? profileId,
bool filterProfile = false,
String? clientScopeId,
bool filterClientScope = false,
}) {
return (select(offlineWatchProgress)
..where(
(t) =>
t.globalKey.equals(globalKey) &
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)) &
(filterClientScope ? _clientScopePredicate(t.clientScopeId, clientScopeId) : const Constant(true)),
)
..orderBy([(t) => OrderingTerm.desc(t.updatedAt), (t) => OrderingTerm.desc(t.id)]))
.get();
}
Future<Map<String, List<OfflineWatchProgressItem>>> getWatchActionsForKeys(
Set<String> globalKeys, {
String? profileId,
bool filterProfile = false,
Map<String, String?>? clientScopeIdsByGlobalKey,
}) async {
if (globalKeys.isEmpty) return const {};
final rows =
await (select(offlineWatchProgress)
..where(
(t) =>
t.globalKey.isIn(globalKeys) &
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)),
)
..orderBy([(t) => OrderingTerm.desc(t.updatedAt), (t) => OrderingTerm.desc(t.id)]))
.get();
final result = <String, List<OfflineWatchProgressItem>>{};
for (final action in rows) {
if (clientScopeIdsByGlobalKey != null && clientScopeIdsByGlobalKey.containsKey(action.globalKey)) {
final expectedScope = clientScopeIdsByGlobalKey[action.globalKey];
if (!_clientScopeValuesMatch(action.clientScopeId, expectedScope)) continue;
}
result.putIfAbsent(action.globalKey, () => <OfflineWatchProgressItem>[]).add(action);
}
return result;
}
/// Get the latest actions for multiple items in a single query
///
/// Returns a map of globalKey -> latest action for each key.
@@ -302,7 +355,7 @@ class AppDatabase extends _$AppDatabase {
t.globalKey.isIn(globalKeys) &
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)),
)
..orderBy([(t) => OrderingTerm.desc(t.updatedAt)]))
..orderBy([(t) => OrderingTerm.desc(t.updatedAt), (t) => OrderingTerm.desc(t.id)]))
.get();
// Group by globalKey and take the latest (first due to ordering)
@@ -332,55 +385,59 @@ class AppDatabase extends _$AppDatabase {
String? clientScopeId,
required String ratingKey,
required int viewOffset,
required int duration,
required int? duration,
required bool shouldMarkWatched,
}) async {
final globalKey = buildGlobalKey(serverId, ratingKey);
final now = DateTime.now().millisecondsSinceEpoch;
// Check for existing progress entry
final existing =
await (select(offlineWatchProgress)
..where(
(t) =>
t.globalKey.equals(globalKey) &
_nullableTextPredicate(t.profileId, profileId) &
_clientScopePredicate(t.clientScopeId, clientScopeId) &
t.actionType.equals(OfflineActionType.progress.id),
)
..limit(1))
.getSingleOrNull();
await transaction(() async {
final existing =
await (select(offlineWatchProgress)
..where(
(t) =>
t.globalKey.equals(globalKey) &
_nullableTextPredicate(t.profileId, profileId) &
_clientScopePredicate(t.clientScopeId, clientScopeId) &
t.actionType.equals(OfflineActionType.progress.id),
)
..orderBy([(t) => OrderingTerm.asc(t.id)]))
.get();
if (existing != null) {
// Update existing progress entry
await (update(offlineWatchProgress)..where((t) => t.id.equals(existing.id))).write(
OfflineWatchProgressCompanion(
viewOffset: Value(viewOffset),
duration: Value(duration),
shouldMarkWatched: Value(shouldMarkWatched),
profileId: Value(profileId),
clientScopeId: Value(clientScopeId),
updatedAt: Value(now),
),
);
} else {
// Insert new progress entry
await into(offlineWatchProgress).insert(
OfflineWatchProgressCompanion.insert(
serverId: serverId,
profileId: Value(profileId),
clientScopeId: Value(clientScopeId),
ratingKey: ratingKey,
globalKey: globalKey,
actionType: OfflineActionType.progress.id,
viewOffset: Value(viewOffset),
duration: Value(duration),
shouldMarkWatched: Value(shouldMarkWatched),
createdAt: now,
updatedAt: now,
),
);
}
final keep = existing.isEmpty ? null : existing.first;
if (keep != null) {
await (update(offlineWatchProgress)..where((t) => t.id.equals(keep.id))).write(
OfflineWatchProgressCompanion(
viewOffset: Value(viewOffset),
duration: Value(duration),
shouldMarkWatched: Value(shouldMarkWatched),
profileId: Value(profileId),
clientScopeId: Value(clientScopeId),
updatedAt: Value(now),
),
);
final duplicateIds = existing.skip(1).map((row) => row.id).toList(growable: false);
if (duplicateIds.isNotEmpty) {
await (delete(offlineWatchProgress)..where((t) => t.id.isIn(duplicateIds))).go();
}
} else {
await into(offlineWatchProgress).insert(
OfflineWatchProgressCompanion.insert(
serverId: serverId,
profileId: Value(profileId),
clientScopeId: Value(clientScopeId),
ratingKey: ratingKey,
globalKey: globalKey,
actionType: OfflineActionType.progress.id,
viewOffset: Value(viewOffset),
duration: Value(duration),
shouldMarkWatched: Value(shouldMarkWatched),
createdAt: now,
updatedAt: now,
),
);
}
});
}
/// Insert a manual watch action (watched or unwatched).
@@ -436,11 +493,14 @@ class AppDatabase extends _$AppDatabase {
}
/// Get count of pending sync items
Future<int> getPendingSyncCount({String? profileId}) async {
Future<int> getPendingSyncCount({String? profileId, int? maxSyncAttempts}) async {
final query = selectOnly(offlineWatchProgress)..addColumns([offlineWatchProgress.id.count()]);
if (profileId != null) {
query.where(offlineWatchProgress.profileId.equals(profileId));
}
if (maxSyncAttempts != null) {
query.where(offlineWatchProgress.syncAttempts.isSmallerThanValue(maxSyncAttempts));
}
final count = await query.map((row) => row.read(offlineWatchProgress.id.count())).getSingle();
return count ?? 0;
}
+80 -3
View File
@@ -221,6 +221,17 @@ class $DownloadedMediaTable extends DownloadedMedia
requiredDuringInsert: false,
defaultValue: const Constant(0),
);
static const VerificationMeta _mediaSourceIdMeta = const VerificationMeta(
'mediaSourceId',
);
@override
late final GeneratedColumn<String> mediaSourceId = GeneratedColumn<String>(
'media_source_id',
aliasedName,
true,
type: DriftSqlType.string,
requiredDuringInsert: false,
);
@override
List<GeneratedColumn> get $columns => [
id,
@@ -242,6 +253,7 @@ class $DownloadedMediaTable extends DownloadedMedia
retryCount,
bgTaskId,
mediaIndex,
mediaSourceId,
];
@override
String get aliasedName => _alias ?? actualTableName;
@@ -397,6 +409,15 @@ class $DownloadedMediaTable extends DownloadedMedia
mediaIndex.isAcceptableOrUnknown(data['media_index']!, _mediaIndexMeta),
);
}
if (data.containsKey('media_source_id')) {
context.handle(
_mediaSourceIdMeta,
mediaSourceId.isAcceptableOrUnknown(
data['media_source_id']!,
_mediaSourceIdMeta,
),
);
}
return context;
}
@@ -482,6 +503,10 @@ class $DownloadedMediaTable extends DownloadedMedia
DriftSqlType.int,
data['${effectivePrefix}media_index'],
)!,
mediaSourceId: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}media_source_id'],
),
);
}
@@ -512,6 +537,7 @@ class DownloadedMediaItem extends DataClass
final int retryCount;
final String? bgTaskId;
final int mediaIndex;
final String? mediaSourceId;
const DownloadedMediaItem({
required this.id,
required this.serverId,
@@ -532,6 +558,7 @@ class DownloadedMediaItem extends DataClass
required this.retryCount,
this.bgTaskId,
required this.mediaIndex,
this.mediaSourceId,
});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
@@ -573,6 +600,9 @@ class DownloadedMediaItem extends DataClass
map['bg_task_id'] = Variable<String>(bgTaskId);
}
map['media_index'] = Variable<int>(mediaIndex);
if (!nullToAbsent || mediaSourceId != null) {
map['media_source_id'] = Variable<String>(mediaSourceId);
}
return map;
}
@@ -615,6 +645,9 @@ class DownloadedMediaItem extends DataClass
? const Value.absent()
: Value(bgTaskId),
mediaIndex: Value(mediaIndex),
mediaSourceId: mediaSourceId == null && nullToAbsent
? const Value.absent()
: Value(mediaSourceId),
);
}
@@ -645,6 +678,7 @@ class DownloadedMediaItem extends DataClass
retryCount: serializer.fromJson<int>(json['retryCount']),
bgTaskId: serializer.fromJson<String?>(json['bgTaskId']),
mediaIndex: serializer.fromJson<int>(json['mediaIndex']),
mediaSourceId: serializer.fromJson<String?>(json['mediaSourceId']),
);
}
@override
@@ -670,6 +704,7 @@ class DownloadedMediaItem extends DataClass
'retryCount': serializer.toJson<int>(retryCount),
'bgTaskId': serializer.toJson<String?>(bgTaskId),
'mediaIndex': serializer.toJson<int>(mediaIndex),
'mediaSourceId': serializer.toJson<String?>(mediaSourceId),
};
}
@@ -693,6 +728,7 @@ class DownloadedMediaItem extends DataClass
int? retryCount,
Value<String?> bgTaskId = const Value.absent(),
int? mediaIndex,
Value<String?> mediaSourceId = const Value.absent(),
}) => DownloadedMediaItem(
id: id ?? this.id,
serverId: serverId ?? this.serverId,
@@ -721,6 +757,9 @@ class DownloadedMediaItem extends DataClass
retryCount: retryCount ?? this.retryCount,
bgTaskId: bgTaskId.present ? bgTaskId.value : this.bgTaskId,
mediaIndex: mediaIndex ?? this.mediaIndex,
mediaSourceId: mediaSourceId.present
? mediaSourceId.value
: this.mediaSourceId,
);
DownloadedMediaItem copyWithCompanion(DownloadedMediaCompanion data) {
return DownloadedMediaItem(
@@ -763,6 +802,9 @@ class DownloadedMediaItem extends DataClass
mediaIndex: data.mediaIndex.present
? data.mediaIndex.value
: this.mediaIndex,
mediaSourceId: data.mediaSourceId.present
? data.mediaSourceId.value
: this.mediaSourceId,
);
}
@@ -787,7 +829,8 @@ class DownloadedMediaItem extends DataClass
..write('errorMessage: $errorMessage, ')
..write('retryCount: $retryCount, ')
..write('bgTaskId: $bgTaskId, ')
..write('mediaIndex: $mediaIndex')
..write('mediaIndex: $mediaIndex, ')
..write('mediaSourceId: $mediaSourceId')
..write(')'))
.toString();
}
@@ -813,6 +856,7 @@ class DownloadedMediaItem extends DataClass
retryCount,
bgTaskId,
mediaIndex,
mediaSourceId,
);
@override
bool operator ==(Object other) =>
@@ -836,7 +880,8 @@ class DownloadedMediaItem extends DataClass
other.errorMessage == this.errorMessage &&
other.retryCount == this.retryCount &&
other.bgTaskId == this.bgTaskId &&
other.mediaIndex == this.mediaIndex);
other.mediaIndex == this.mediaIndex &&
other.mediaSourceId == this.mediaSourceId);
}
class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
@@ -859,6 +904,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
final Value<int> retryCount;
final Value<String?> bgTaskId;
final Value<int> mediaIndex;
final Value<String?> mediaSourceId;
const DownloadedMediaCompanion({
this.id = const Value.absent(),
this.serverId = const Value.absent(),
@@ -879,6 +925,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
this.retryCount = const Value.absent(),
this.bgTaskId = const Value.absent(),
this.mediaIndex = const Value.absent(),
this.mediaSourceId = const Value.absent(),
});
DownloadedMediaCompanion.insert({
this.id = const Value.absent(),
@@ -900,6 +947,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
this.retryCount = const Value.absent(),
this.bgTaskId = const Value.absent(),
this.mediaIndex = const Value.absent(),
this.mediaSourceId = const Value.absent(),
}) : serverId = Value(serverId),
ratingKey = Value(ratingKey),
globalKey = Value(globalKey),
@@ -925,6 +973,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
Expression<int>? retryCount,
Expression<String>? bgTaskId,
Expression<int>? mediaIndex,
Expression<String>? mediaSourceId,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
@@ -947,6 +996,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
if (retryCount != null) 'retry_count': retryCount,
if (bgTaskId != null) 'bg_task_id': bgTaskId,
if (mediaIndex != null) 'media_index': mediaIndex,
if (mediaSourceId != null) 'media_source_id': mediaSourceId,
});
}
@@ -970,6 +1020,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
Value<int>? retryCount,
Value<String?>? bgTaskId,
Value<int>? mediaIndex,
Value<String?>? mediaSourceId,
}) {
return DownloadedMediaCompanion(
id: id ?? this.id,
@@ -991,6 +1042,7 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
retryCount: retryCount ?? this.retryCount,
bgTaskId: bgTaskId ?? this.bgTaskId,
mediaIndex: mediaIndex ?? this.mediaIndex,
mediaSourceId: mediaSourceId ?? this.mediaSourceId,
);
}
@@ -1056,6 +1108,9 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
if (mediaIndex.present) {
map['media_index'] = Variable<int>(mediaIndex.value);
}
if (mediaSourceId.present) {
map['media_source_id'] = Variable<String>(mediaSourceId.value);
}
return map;
}
@@ -1080,7 +1135,8 @@ class DownloadedMediaCompanion extends UpdateCompanion<DownloadedMediaItem> {
..write('errorMessage: $errorMessage, ')
..write('retryCount: $retryCount, ')
..write('bgTaskId: $bgTaskId, ')
..write('mediaIndex: $mediaIndex')
..write('mediaIndex: $mediaIndex, ')
..write('mediaSourceId: $mediaSourceId')
..write(')'))
.toString();
}
@@ -5319,6 +5375,7 @@ typedef $$DownloadedMediaTableCreateCompanionBuilder =
Value<int> retryCount,
Value<String?> bgTaskId,
Value<int> mediaIndex,
Value<String?> mediaSourceId,
});
typedef $$DownloadedMediaTableUpdateCompanionBuilder =
DownloadedMediaCompanion Function({
@@ -5341,6 +5398,7 @@ typedef $$DownloadedMediaTableUpdateCompanionBuilder =
Value<int> retryCount,
Value<String?> bgTaskId,
Value<int> mediaIndex,
Value<String?> mediaSourceId,
});
class $$DownloadedMediaTableFilterComposer
@@ -5446,6 +5504,11 @@ class $$DownloadedMediaTableFilterComposer
column: $table.mediaIndex,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get mediaSourceId => $composableBuilder(
column: $table.mediaSourceId,
builder: (column) => ColumnFilters(column),
);
}
class $$DownloadedMediaTableOrderingComposer
@@ -5551,6 +5614,11 @@ class $$DownloadedMediaTableOrderingComposer
column: $table.mediaIndex,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get mediaSourceId => $composableBuilder(
column: $table.mediaSourceId,
builder: (column) => ColumnOrderings(column),
);
}
class $$DownloadedMediaTableAnnotationComposer
@@ -5638,6 +5706,11 @@ class $$DownloadedMediaTableAnnotationComposer
column: $table.mediaIndex,
builder: (column) => column,
);
GeneratedColumn<String> get mediaSourceId => $composableBuilder(
column: $table.mediaSourceId,
builder: (column) => column,
);
}
class $$DownloadedMediaTableTableManager
@@ -5696,6 +5769,7 @@ class $$DownloadedMediaTableTableManager
Value<int> retryCount = const Value.absent(),
Value<String?> bgTaskId = const Value.absent(),
Value<int> mediaIndex = const Value.absent(),
Value<String?> mediaSourceId = const Value.absent(),
}) => DownloadedMediaCompanion(
id: id,
serverId: serverId,
@@ -5716,6 +5790,7 @@ class $$DownloadedMediaTableTableManager
retryCount: retryCount,
bgTaskId: bgTaskId,
mediaIndex: mediaIndex,
mediaSourceId: mediaSourceId,
),
createCompanionCallback:
({
@@ -5738,6 +5813,7 @@ class $$DownloadedMediaTableTableManager
Value<int> retryCount = const Value.absent(),
Value<String?> bgTaskId = const Value.absent(),
Value<int> mediaIndex = const Value.absent(),
Value<String?> mediaSourceId = const Value.absent(),
}) => DownloadedMediaCompanion.insert(
id: id,
serverId: serverId,
@@ -5758,6 +5834,7 @@ class $$DownloadedMediaTableTableManager
retryCount: retryCount,
bgTaskId: bgTaskId,
mediaIndex: mediaIndex,
mediaSourceId: mediaSourceId,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
+8
View File
@@ -85,6 +85,7 @@ extension DownloadDatabaseOperations on AppDatabase {
String? grandparentRatingKey,
required int status,
int mediaIndex = 0,
String? mediaSourceId,
}) async {
await into(downloadedMedia).insert(
DownloadedMediaCompanion.insert(
@@ -97,6 +98,7 @@ extension DownloadDatabaseOperations on AppDatabase {
grandparentRatingKey: Value(grandparentRatingKey),
status: status,
mediaIndex: Value(mediaIndex),
mediaSourceId: Value(mediaSourceId),
),
mode: InsertMode.insertOrReplace,
);
@@ -145,6 +147,12 @@ extension DownloadDatabaseOperations on AppDatabase {
)..where((t) => t.globalKey.equals(globalKey))).write(DownloadedMediaCompanion(status: Value(status)));
}
Future<void> updateDownloadMediaSource(String globalKey, String? mediaSourceId) async {
await (update(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).write(
DownloadedMediaCompanion(mediaSourceId: Value(mediaSourceId)),
);
}
Future<void> updateDownloadProgress(String globalKey, int progress, int downloadedBytes, int totalBytes) async {
await (update(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).write(
DownloadedMediaCompanion(
+1
View File
@@ -59,6 +59,7 @@ class DownloadedMedia extends Table {
IntColumn get retryCount => integer().withDefault(const Constant(0))();
TextColumn get bgTaskId => text().nullable()();
IntColumn get mediaIndex => integer().withDefault(const Constant(0))();
TextColumn get mediaSourceId => text().nullable()();
}
/// Profile ownership for shared physical downloads.
+34 -1
View File
@@ -5,8 +5,12 @@ class FocusTheme {
FocusTheme._();
static const double focusScale = 1.02;
static const double fullCardFocusScale = 1.03;
static const double focusBorderWidth = 2.5;
static const double defaultBorderRadius = 8.0;
static const double focusGlowInnerBlurRadius = 18;
static const double focusGlowOuterBlurRadius = 34;
static const double focusGlowSpreadRadius = 1.5;
static Color getFocusBorderColor(BuildContext context) {
return Theme.of(context).colorScheme.primary;
@@ -20,13 +24,42 @@ class FocusTheme {
BuildContext context, {
required bool isFocused,
double borderRadius = defaultBorderRadius,
double borderStrokeAlign = BorderSide.strokeAlignInside,
Color? color,
}) {
final focusColor = color ?? getFocusBorderColor(context);
return BoxDecoration(
borderRadius: BorderRadius.circular(borderRadius),
border: Border.all(color: isFocused ? focusColor : Colors.transparent, width: focusBorderWidth),
border: Border.all(
color: isFocused ? focusColor : Colors.transparent,
width: focusBorderWidth,
strokeAlign: borderStrokeAlign,
),
);
}
static BoxDecoration focusGlowDecoration(
BuildContext context, {
required bool isFocused,
double borderRadius = defaultBorderRadius,
Color? color,
}) {
final focusColor = color ?? getFocusBorderColor(context);
return BoxDecoration(
borderRadius: BorderRadius.circular(borderRadius),
boxShadow: [
BoxShadow(
color: isFocused ? focusColor.withValues(alpha: 0.34) : Colors.transparent,
blurRadius: focusGlowInnerBlurRadius,
spreadRadius: focusGlowSpreadRadius,
),
BoxShadow(
color: isFocused ? focusColor.withValues(alpha: 0.20) : Colors.transparent,
blurRadius: focusGlowOuterBlurRadius,
),
],
);
}
+3
View File
@@ -140,6 +140,9 @@ class FocusableActionBarState extends State<FocusableActionBar> {
: widget.onNavigateRight,
onDown: widget.onNavigateDown,
onUp: widget.onNavigateUp,
// Consume LEFT/RIGHT at the row's first/last button when no edge
// callback is wired, so focus can't fall off the row (#1181).
trapHorizontalEdges: true,
)(node, event);
},
child: ClickableCursor(
+43 -13
View File
@@ -74,6 +74,7 @@ class _NativeTvTextInputFocusBridge {
KeyEventResult _handleInputKey({
required TextEditingController controller,
required FocusNode node,
required bool usesTvKeyboard,
required bool enabled,
required VoidCallback openKeyboard,
@@ -150,24 +151,52 @@ KeyEventResult _handleInputKey({
if (!event.isActionable) return finish(KeyEventResult.ignored, 'non-actionable');
if (key.isUpKey && onNavigateUp != null) {
onNavigateUp();
return finish(KeyEventResult.handled, 'onNavigateUp');
final isMultiline = _isMultilineTextInput(keyboardType: keyboardType, maxLines: maxLines);
// Directional escape: an explicit callback always wins. Otherwise, fall back
// to the framework's geometry-based directional traversal so an un-wired
// field moves to its nearest neighbour instead of dead-ending (the field's
// own onKeyEvent runs before EditableText, which would otherwise swallow the
// arrow). Single-line only for UP/DOWN — multiline falls through so
// EditableText can move the caret between lines.
if (key.isUpKey) {
if (onNavigateUp != null) {
onNavigateUp();
return finish(KeyEventResult.handled, 'onNavigateUp');
}
if (!isMultiline) {
final moved = node.focusInDirection(TraversalDirection.up);
return finish(moved ? KeyEventResult.handled : KeyEventResult.ignored, 'focusInDirection-up');
}
}
if (key.isDownKey && onNavigateDown != null) {
onNavigateDown();
return finish(KeyEventResult.handled, 'onNavigateDown');
if (key.isDownKey) {
if (onNavigateDown != null) {
onNavigateDown();
return finish(KeyEventResult.handled, 'onNavigateDown');
}
if (!isMultiline) {
final moved = node.focusInDirection(TraversalDirection.down);
return finish(moved ? KeyEventResult.handled : KeyEventResult.ignored, 'focusInDirection-down');
}
}
final sel = controller.selection;
if (sel.isCollapsed) {
if (key.isLeftKey && sel.baseOffset == 0 && onNavigateLeft != null) {
onNavigateLeft();
return finish(KeyEventResult.handled, 'onNavigateLeft-at-start');
if (key.isLeftKey && sel.baseOffset == 0) {
if (onNavigateLeft != null) {
onNavigateLeft();
return finish(KeyEventResult.handled, 'onNavigateLeft-at-start');
}
final moved = node.focusInDirection(TraversalDirection.left);
return finish(moved ? KeyEventResult.handled : KeyEventResult.ignored, 'focusInDirection-left-at-start');
}
if (key.isRightKey && sel.baseOffset == controller.text.length && onNavigateRight != null) {
onNavigateRight();
return finish(KeyEventResult.handled, 'onNavigateRight-at-end');
if (key.isRightKey && sel.baseOffset == controller.text.length) {
if (onNavigateRight != null) {
onNavigateRight();
return finish(KeyEventResult.handled, 'onNavigateRight-at-end');
}
final moved = node.focusInDirection(TraversalDirection.right);
return finish(moved ? KeyEventResult.handled : KeyEventResult.ignored, 'focusInDirection-right-at-end');
}
}
@@ -571,9 +600,10 @@ abstract class _FocusableTextInputBase extends StatelessWidget {
}
}
KeyEventResult _handleKey(BuildContext context, FocusNode _, KeyEvent event, VoidCallback openKeyboard) {
KeyEventResult _handleKey(BuildContext context, FocusNode node, KeyEvent event, VoidCallback openKeyboard) {
return _handleInputKey(
controller: controller,
node: node,
usesTvKeyboard: _hasTvKeyboard,
enabled: enabled,
openKeyboard: openKeyboard,
+39 -5
View File
@@ -106,6 +106,18 @@ class FocusableWrapper extends StatefulWidget {
/// Useful for elements like sliders where scaling looks odd.
final bool disableScale;
/// Scale used for the focus animation.
final double focusScale;
/// Stroke alignment for the focus border.
final double focusBorderStrokeAlign;
/// Whether to draw a glow around the focused widget.
final bool useFocusGlow;
/// Whether to draw the focus border as a foreground decoration.
final bool useForegroundFocusDecoration;
/// Whether descendants can receive focus.
/// Set to false when the child widget has its own Focus (e.g. buttons)
/// that would compete with this wrapper's focus handling.
@@ -136,6 +148,10 @@ class FocusableWrapper extends StatefulWidget {
this.useBackgroundFocus = false,
this.focusColor,
this.disableScale = false,
this.focusScale = FocusTheme.focusScale,
this.focusBorderStrokeAlign = BorderSide.strokeAlignInside,
this.useFocusGlow = false,
this.useForegroundFocusDecoration = false,
this.descendantsAreFocusable = true,
});
@@ -149,7 +165,7 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
bool _isFocused = false;
late final AnimationController _animationController;
late final Animation<double> _scaleAnimation;
late Animation<double> _scaleAnimation;
// Long-press detection for SELECT key
Timer? _longPressTimer;
@@ -178,9 +194,13 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
void _initAnimations() {
_animationController = AnimationController(vsync: this, duration: const Duration(milliseconds: 150));
_scaleAnimation = Tween<double>(
_scaleAnimation = _createScaleAnimation();
}
Animation<double> _createScaleAnimation() {
return Tween<double>(
begin: 1.0,
end: FocusTheme.focusScale,
end: widget.focusScale,
).animate(CurvedAnimation(parent: _animationController, curve: Curves.easeOutCubic));
}
@@ -200,6 +220,10 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
if (widget.canRequestFocus != oldWidget.canRequestFocus) {
_focusNode.canRequestFocus = widget.canRequestFocus;
}
if (widget.focusScale != oldWidget.focusScale) {
_scaleAnimation = _createScaleAnimation();
}
}
@override
@@ -447,14 +471,23 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
}
// Choose decoration based on useBackgroundFocus
final decoration = widget.useBackgroundFocus
final focusDecoration = widget.useBackgroundFocus
? FocusTheme.focusBackgroundDecoration(isFocused: showFocus, borderRadius: widget.borderRadius)
: FocusTheme.focusDecoration(
context,
isFocused: showFocus,
borderRadius: widget.borderRadius,
color: widget.focusColor,
borderStrokeAlign: widget.focusBorderStrokeAlign,
);
final glowDecoration = widget.useFocusGlow
? FocusTheme.focusGlowDecoration(
context,
isFocused: showFocus,
borderRadius: widget.borderRadius,
color: widget.focusColor,
)
: null;
Widget result = Focus(
focusNode: _focusNode,
@@ -471,7 +504,8 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
child: AnimatedContainer(
duration: duration,
curve: Curves.easeOutCubic,
decoration: decoration,
decoration: widget.useForegroundFocusDecoration ? glowDecoration : focusDecoration,
foregroundDecoration: widget.useForegroundFocusDecoration ? focusDecoration : null,
child: widget.child,
),
);
+35 -6
View File
@@ -120,6 +120,13 @@ KeyEventResult handleOneShotSelect(KeyEvent event, VoidCallback onActivate) {
/// (passed through to the framework). Directions mapped to a callback
/// automatically return [KeyEventResult.handled].
///
/// When [trapHorizontalEdges] is true, LEFT/RIGHT with no callback return
/// [KeyEventResult.handled] (consumed) instead of being passed through. Use
/// this for a self-contained horizontal group (e.g. a button row) so D-pad
/// can't escape off the edge into an off-screen "black hole" (#1181); wire an
/// explicit [onLeft]/[onRight] only where edge-escape into another region is
/// intended. UP/DOWN are unaffected and always pass through when unmapped.
///
/// Directional keys repeat on [KeyRepeatEvent] (via [isActionable]).
/// Select is one-shot: fires on [KeyDownEvent] only, consumes repeat and up.
///
@@ -140,6 +147,7 @@ FocusOnKeyEventCallback dpadKeyHandler({
VoidCallback? onLeft,
VoidCallback? onRight,
VoidCallback? onSelect,
bool trapHorizontalEdges = false,
}) {
return (FocusNode _, KeyEvent event) {
// Select: one-shot activation (no repeat), must run before isActionable
@@ -160,19 +168,40 @@ FocusOnKeyEventCallback dpadKeyHandler({
onDown();
return KeyEventResult.handled;
}
if (key.isLeftKey && onLeft != null) {
onLeft();
return KeyEventResult.handled;
if (key.isLeftKey) {
if (onLeft != null) {
onLeft();
return KeyEventResult.handled;
}
if (trapHorizontalEdges) return KeyEventResult.handled;
}
if (key.isRightKey && onRight != null) {
onRight();
return KeyEventResult.handled;
if (key.isRightKey) {
if (onRight != null) {
onRight();
return KeyEventResult.handled;
}
if (trapHorizontalEdges) return KeyEventResult.handled;
}
return KeyEventResult.ignored;
};
}
/// Whether [container] has another focusable descendant beyond the currently
/// focused one in [direction]. Lets a row's key handler move between interior
/// items (true) but trap at the row's edge (false) so focus can't escape into
/// an off-screen "black hole" (#1181). Horizontal only.
///
/// Relies on [FocusNode.traversalDescendants] being in reading (left→right)
/// order, which holds for a flat [Row].
bool hasHorizontalNeighbor(FocusNode container, TraversalDirection direction) {
assert(direction == TraversalDirection.left || direction == TraversalDirection.right);
final items = container.traversalDescendants.toList();
final index = items.indexWhere((node) => node.hasPrimaryFocus);
if (index < 0) return false;
return direction == TraversalDirection.right ? index < items.length - 1 : index > 0;
}
/// Navigator observer that automatically suppresses stray back KeyUp events
/// after any route pop caused by a back key press.
///
File diff suppressed because it is too large Load Diff
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Ja",
"no": "Nej",
"delete": "Slet",
"edit": "Rediger",
"shuffle": "Bland",
"addTo": "Tilføj til...",
"createNew": "Opret ny",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Vis sæson- og episodenummer på episodekort",
"showSeasonPostersOnTabs": "Vis sæsonplakater på faner",
"showSeasonPostersOnTabsDescription": "Vis hver sæsons plakat over dens fane",
"tvFullCardLayout": "Fuldflade TV-kort",
"tvFullCardLayoutDescription": "Brug TV-kort kun med billeder og skuespillernavne ovenpå",
"hideSpoilers": "Skjul spoilere for usete episoder",
"hideSpoilersDescription": "Slør miniaturebilleder og beskrivelser for usete episoder",
"playerBackend": "Afspillerbackend",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Tving TV-layout. Til enheder, der ikke registreres automatisk. Kræver genstart.",
"startInFullscreen": "Start i fuldskærm",
"startInFullscreenDescription": "Åbn Plezy i fuldskærmstilstand ved opstart",
"exitFullscreenOnPlayerClose": "Forlad fuldskærm ved lukning af afspiller",
"exitFullscreenOnPlayerCloseDescription": "Afslut automatisk fuldskærm, når videoafspilleren lukkes",
"autoHidePerformanceOverlay": "Skjul ydelses-overlay automatisk",
"autoHidePerformanceOverlayDescription": "Fade ydelses-overlayet med afspilningskontrollerne",
"showNavBarLabels": "Vis navigationsbarlabels",
@@ -303,6 +308,9 @@
"speedIncrease": "Øg hastighed",
"speedDecrease": "Sænk hastighed",
"speedReset": "Nulstil hastighed",
"zoomIn": "Zoom ind",
"zoomOut": "Zoom ud",
"zoomReset": "Nulstil zoom",
"subSeekNext": "Søg til næste undertekst",
"subSeekPrev": "Søg til forrige undertekst",
"shaderToggle": "Skift shadere",
@@ -399,6 +407,10 @@
"unlockRotation": "Lås rotation op",
"timerActive": "Timer aktiv",
"playbackWillPauseIn": "Afspilning pauses om ${duration}",
"sleepTimerEndOfVideo": "Slutningen af aktuel video",
"sleepTimerStopAtHeader": "Stop ved",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Afspilning pauses i slutningen af denne video",
"stillWatching": "Ser du stadig?",
"pausingIn": "Pauser om ${seconds}s",
"continueWatching": "Fortsæt",
@@ -441,6 +453,7 @@
"pipActive": "Afspiller i billede-i-billede",
"pipFailed": "Billede-i-billede kunne ikke starte",
"screenshotSaved": "Skærmbillede gemt",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Kræver Android 8.0 eller nyere",
"iosVersion": "Kræver iOS 15.0 eller nyere",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Føj til ${displayName}: Plex, Jellyfin eller en anden profilforbindelse",
"sessionExpiredOne": "Sessionen er udløbet for ${name}",
"sessionExpiredMany": "Sessionen er udløbet for ${count} servere",
"signInAgain": "Log ind igen"
"signInAgain": "Log ind igen",
"editJellyfinTitle": "Rediger Jellyfin-forbindelse",
"editJellyfinIntro": "Tilføj eller fjern URL'er for ${serverName}. Plezy bruger den tilgængelige URL med lavest latenstid."
},
"discover": {
"title": "Opdag",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Afspilningshastighed",
"zoom": "Zoom",
"sleepTimer": "Sove-timer",
"audioSync": "Lydsynkronisering",
"subtitleSync": "Undertekstsynkronisering",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Tilføj Jellyfin-server",
"jellyfinUrlIntro": "Indtast server-URL'en, f.eks. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Indtast en eller flere server-URL'er, adskilt med kommaer eller nye linjer. Plezy bruger den tilgængelige URL med lavest latenstid.",
"serverUrl": "Server-URL",
"serverUrls": "Server-URL'er",
"findServer": "Find server",
"searchingLocalServers": "Søger efter lokale Jellyfin-servere...",
"localServers": "Lokale Jellyfin-servere",
"username": "Brugernavn",
"password": "Adgangskode",
"signIn": "Log ind",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Ja",
"no": "Nein",
"delete": "Löschen",
"edit": "Bearbeiten",
"shuffle": "Zufall",
"addTo": "Hinzufügen zu...",
"createNew": "Neu erstellen",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Staffel- und Episodennummer auf Episodenkarten anzeigen",
"showSeasonPostersOnTabs": "Staffelposter auf Tabs anzeigen",
"showSeasonPostersOnTabsDescription": "Poster jeder Staffel über ihrem Tab anzeigen",
"tvFullCardLayout": "Vollflächige TV-Karten",
"tvFullCardLayoutDescription": "TV-Karten nur mit Bild verwenden und Darstellernamen einblenden",
"hideSpoilers": "Spoiler für nicht gesehene Episoden verbergen",
"hideSpoilersDescription": "Vorschaubilder und Beschreibungen ungesehener Episoden verwischen",
"playerBackend": "Player-Backend",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "TV-Layout erzwingen. Für Geräte ohne automatische Erkennung. Neustart erforderlich.",
"startInFullscreen": "Im Vollbildmodus starten",
"startInFullscreenDescription": "Plezy beim Start im Vollbildmodus öffnen",
"exitFullscreenOnPlayerClose": "Vollbild beim Schließen des Players beenden",
"exitFullscreenOnPlayerCloseDescription": "Vollbildmodus automatisch beenden, wenn der Videoplayer geschlossen wird",
"autoHidePerformanceOverlay": "Leistungsoverlay automatisch ausblenden",
"autoHidePerformanceOverlayDescription": "Leistungsoverlay mit den Wiedergabesteuerungen ein-/ausblenden",
"showNavBarLabels": "Navigationsleisten-Beschriftungen anzeigen",
@@ -303,6 +308,9 @@
"speedIncrease": "Geschwindigkeit erhöhen",
"speedDecrease": "Geschwindigkeit verringern",
"speedReset": "Geschwindigkeit zurücksetzen",
"zoomIn": "Vergrößern",
"zoomOut": "Verkleinern",
"zoomReset": "Zoom zurücksetzen",
"subSeekNext": "Zum nächsten Untertitel springen",
"subSeekPrev": "Zum vorherigen Untertitel springen",
"shaderToggle": "Shader umschalten",
@@ -399,6 +407,10 @@
"unlockRotation": "Rotation entsperren",
"timerActive": "Schlaftimer aktiv",
"playbackWillPauseIn": "Wiedergabe wird in ${duration} pausiert",
"sleepTimerEndOfVideo": "Ende des aktuellen Videos",
"sleepTimerStopAtHeader": "Beenden bei",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Wiedergabe wird am Ende dieses Videos pausiert",
"stillWatching": "Schaust du noch?",
"pausingIn": "Pause in ${seconds}s",
"continueWatching": "Weiter",
@@ -441,6 +453,7 @@
"pipActive": "Wiedergabe im Bild-in-Bild-Modus",
"pipFailed": "Bild-in-Bild konnte nicht gestartet werden",
"screenshotSaved": "Screenshot gespeichert",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Erfordert Android 8.0 oder neuer",
"iosVersion": "Erfordert iOS 15.0 oder neuer",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Zu ${displayName} hinzufügen: Plex, Jellyfin oder eine andere Profilverbindung",
"sessionExpiredOne": "Sitzung für ${name} abgelaufen",
"sessionExpiredMany": "Sitzungen für ${count} Server abgelaufen",
"signInAgain": "Erneut anmelden"
"signInAgain": "Erneut anmelden",
"editJellyfinTitle": "Jellyfin-Verbindung bearbeiten",
"editJellyfinIntro": "Füge URLs für ${serverName} hinzu oder entferne sie. Plezy verwendet die erreichbare URL mit der geringsten Latenz."
},
"discover": {
"title": "Entdecken",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Wiedergabegeschwindigkeit",
"zoom": "Zoom",
"sleepTimer": "Schlaftimer",
"audioSync": "Audio-Synchronisation",
"subtitleSync": "Untertitel-Synchronisation",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Jellyfin-Server hinzufügen",
"jellyfinUrlIntro": "Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas oder neue Zeilen. Plezy verwendet die erreichbare URL mit der geringsten Latenz.",
"serverUrl": "Server-URL",
"serverUrls": "Server-URLs",
"findServer": "Server finden",
"searchingLocalServers": "Suche nach lokalen Jellyfin-Servern...",
"localServers": "Lokale Jellyfin-Server",
"username": "Benutzername",
"password": "Passwort",
"signIn": "Anmelden",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Yes",
"no": "No",
"delete": "Delete",
"edit": "Edit",
"shuffle": "Shuffle",
"addTo": "Add to...",
"createNew": "Create new",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Show season and episode number on episode cards",
"showSeasonPostersOnTabs": "Show Season Posters on Tabs",
"showSeasonPostersOnTabsDescription": "Show each season's poster above its tab",
"tvFullCardLayout": "Full TV Cards",
"tvFullCardLayoutDescription": "Use image-only TV cards with actor names overlaid",
"hideSpoilers": "Hide Spoilers for Unwatched Episodes",
"hideSpoilersDescription": "Blur thumbnails and descriptions for unwatched episodes",
"playerBackend": "Player Backend",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Force TV layout. For devices that don't auto-detect. Requires restart.",
"startInFullscreen": "Start in fullscreen",
"startInFullscreenDescription": "Open Plezy in fullscreen mode at launch",
"exitFullscreenOnPlayerClose": "Exit fullscreen on player close",
"exitFullscreenOnPlayerCloseDescription": "Automatically exit fullscreen when closing the video player",
"autoHidePerformanceOverlay": "Auto-Hide Performance Overlay",
"autoHidePerformanceOverlayDescription": "Fade the performance overlay with the playback controls",
"showNavBarLabels": "Show Navigation Bar Labels",
@@ -303,6 +308,9 @@
"speedIncrease": "Increase Speed",
"speedDecrease": "Decrease Speed",
"speedReset": "Reset Speed",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out",
"zoomReset": "Reset Zoom",
"subSeekNext": "Seek to Next Subtitle",
"subSeekPrev": "Seek to Previous Subtitle",
"shaderToggle": "Toggle Shaders",
@@ -399,6 +407,10 @@
"unlockRotation": "Unlock rotation",
"timerActive": "Timer Active",
"playbackWillPauseIn": "Playback will pause in ${duration}",
"sleepTimerEndOfVideo": "End of current video",
"sleepTimerStopAtHeader": "Stop at",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Playback will pause at the end of this video",
"stillWatching": "Still watching?",
"pausingIn": "Pausing in ${seconds}s",
"continueWatching": "Continue",
@@ -441,6 +453,7 @@
"pipActive": "Playing in Picture-in-Picture",
"pipFailed": "Picture-in-picture failed to start",
"screenshotSaved": "Screenshot saved",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Requires Android 8.0 or newer",
"iosVersion": "Requires iOS 15.0 or newer",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Add to ${displayName}: Plex, Jellyfin, or another profile connection",
"sessionExpiredOne": "Session expired for ${name}",
"sessionExpiredMany": "Session expired for ${count} servers",
"signInAgain": "Sign in again"
"signInAgain": "Sign in again",
"editJellyfinTitle": "Edit Jellyfin connection",
"editJellyfinIntro": "Add or remove URLs for ${serverName}. Plezy will use the reachable URL with the lowest latency."
},
"discover": {
"title": "Discover",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Playback Speed",
"zoom": "Zoom",
"sleepTimer": "Sleep Timer",
"audioSync": "Audio Sync",
"subtitleSync": "Subtitle Sync",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Add Jellyfin server",
"jellyfinUrlIntro": "Enter the server URL, e.g. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Enter one or more server URLs, separated by commas or new lines. Plezy will use the reachable URL with the lowest latency.",
"serverUrl": "Server URL",
"serverUrls": "Server URLs",
"findServer": "Find server",
"searchingLocalServers": "Looking for local Jellyfin servers...",
"localServers": "Local Jellyfin servers",
"username": "Username",
"password": "Password",
"signIn": "Sign in",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Sí",
"no": "No",
"delete": "Eliminar",
"edit": "Editar",
"shuffle": "Aleatorio",
"addTo": "Añadir a...",
"createNew": "Crear",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Mostrar temporada y episodio en tarjetas de episodio",
"showSeasonPostersOnTabs": "Mostrar pósters de temporada en las pestañas",
"showSeasonPostersOnTabsDescription": "Mostrar el póster de cada temporada sobre su pestaña",
"tvFullCardLayout": "Tarjetas TV completas",
"tvFullCardLayoutDescription": "Usar tarjetas TV solo con imagen y nombres de actores superpuestos",
"hideSpoilers": "Ocultar spoilers de episodios no vistos",
"hideSpoilersDescription": "Desenfocar miniaturas y descripciones de episodios no vistos",
"playerBackend": "Reproductor",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Forzar diseño TV. Para dispositivos que no lo detectan. Requiere reinicio.",
"startInFullscreen": "Iniciar en pantalla completa",
"startInFullscreenDescription": "Abrir Plezy en modo pantalla completa al iniciar",
"exitFullscreenOnPlayerClose": "Salir de pantalla completa al cerrar el reproductor",
"exitFullscreenOnPlayerCloseDescription": "Salir automáticamente del modo de pantalla completa al cerrar el reproductor de vídeo",
"autoHidePerformanceOverlay": "Ocultar superposición de rendimiento automáticamente",
"autoHidePerformanceOverlayDescription": "Desvanecer la superposición de rendimiento con los controles de reproducción",
"showNavBarLabels": "Mostrar etiquetas de la barra de navegación",
@@ -303,6 +308,9 @@
"speedIncrease": "Aumentar Velocidad",
"speedDecrease": "Disminuir Velocidad",
"speedReset": "Restablecer Velocidad",
"zoomIn": "Acercar",
"zoomOut": "Alejar",
"zoomReset": "Restablecer zoom",
"subSeekNext": "Ir al Siguiente Subtítulo",
"subSeekPrev": "Ir al Anterior Subtítulo",
"shaderToggle": "Alternar Shaders",
@@ -399,6 +407,10 @@
"unlockRotation": "Desbloquear rotación",
"timerActive": "Temporizador Activo",
"playbackWillPauseIn": "La reproducción se pausará en ${duration}",
"sleepTimerEndOfVideo": "Fin del video actual",
"sleepTimerStopAtHeader": "Detener en",
"sleepTimerDurationHeader": "Temporizador",
"playbackWillPauseAtEnd": "La reproducción se pausará al final de este video",
"stillWatching": "¿Sigues viendo?",
"pausingIn": "Pausa en ${seconds}s",
"continueWatching": "Continuar",
@@ -441,6 +453,7 @@
"pipActive": "Reproduciendo en Imagen en Imagen",
"pipFailed": "Error al iniciar Imagen en Imagen",
"screenshotSaved": "Captura de pantalla guardada",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Requiere Android 8.0 o más reciente",
"iosVersion": "Requiere iOS 15.0 o más reciente",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Añadir a ${displayName}: Plex, Jellyfin u otra conexión de perfil",
"sessionExpiredOne": "Sesión caducada para ${name}",
"sessionExpiredMany": "Sesión caducada para ${count} servidores",
"signInAgain": "Iniciar sesión de nuevo"
"signInAgain": "Iniciar sesión de nuevo",
"editJellyfinTitle": "Editar conexión de Jellyfin",
"editJellyfinIntro": "Añade o elimina URL para ${serverName}. Plezy usará la URL accesible con menor latencia."
},
"discover": {
"title": "Descubrir",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Velocidad de reproducción",
"zoom": "Zoom",
"sleepTimer": "Temporizador de apagado",
"audioSync": "Sincronización de audio",
"subtitleSync": "Sincronización de subtítulos",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Añadir servidor Jellyfin",
"jellyfinUrlIntro": "Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Introduce una o más URL del servidor, separadas por comas o líneas nuevas. Plezy usará la URL accesible con menor latencia.",
"serverUrl": "URL del servidor",
"serverUrls": "URL del servidor",
"findServer": "Buscar servidor",
"searchingLocalServers": "Buscando servidores Jellyfin locales...",
"localServers": "Servidores Jellyfin locales",
"username": "Usuario",
"password": "Contraseña",
"signIn": "Iniciar sesión",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Oui",
"no": "Non",
"delete": "Supprimer",
"edit": "Modifier",
"shuffle": "Mélanger",
"addTo": "Ajouter à...",
"createNew": "Créer",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Afficher la saison et l'épisode sur les cartes d'épisode",
"showSeasonPostersOnTabs": "Afficher les posters de saison sur les onglets",
"showSeasonPostersOnTabsDescription": "Afficher l'affiche de chaque saison au-dessus de son onglet",
"tvFullCardLayout": "Cartes TV pleines",
"tvFullCardLayoutDescription": "Utiliser des cartes TV avec image seule et noms des acteurs superposés",
"hideSpoilers": "Masquer les spoilers des épisodes non vus",
"hideSpoilersDescription": "Flouter les miniatures et descriptions des épisodes non vus",
"playerBackend": "Moteur de lecture",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Forcer l'interface TV. Pour appareils non détectés automatiquement. Redémarrage requis.",
"startInFullscreen": "Démarrer en plein écran",
"startInFullscreenDescription": "Ouvrir Plezy en mode plein écran au lancement",
"exitFullscreenOnPlayerClose": "Quitter le plein écran à la fermeture du lecteur",
"exitFullscreenOnPlayerCloseDescription": "Quitter automatiquement le plein écran lors de la fermeture du lecteur vidéo",
"autoHidePerformanceOverlay": "Masquer auto. superposition performances",
"autoHidePerformanceOverlayDescription": "Faire apparaître/disparaître la superposition avec les contrôles de lecture",
"showNavBarLabels": "Afficher les libellés de la barre de navigation",
@@ -303,6 +308,9 @@
"speedIncrease": "Augmenter la vitesse",
"speedDecrease": "Réduire la vitesse",
"speedReset": "Réinitialiser la vitesse",
"zoomIn": "Zoom avant",
"zoomOut": "Zoom arrière",
"zoomReset": "Réinitialiser le zoom",
"subSeekNext": "Rechercher le sous-titre suivant",
"subSeekPrev": "Rechercher le sous-titre précédent",
"shaderToggle": "Activer/désactiver les shaders",
@@ -399,6 +407,10 @@
"unlockRotation": "Déverrouiller la rotation",
"timerActive": "Minuterie active",
"playbackWillPauseIn": "La lecture sera mise en pause dans ${duration}",
"sleepTimerEndOfVideo": "Fin de la vidéo actuelle",
"sleepTimerStopAtHeader": "Arrêter à",
"sleepTimerDurationHeader": "Minuterie",
"playbackWillPauseAtEnd": "La lecture sera mise en pause à la fin de cette vidéo",
"stillWatching": "Toujours en train de regarder ?",
"pausingIn": "Pause dans ${seconds}s",
"continueWatching": "Continuer",
@@ -441,6 +453,7 @@
"pipActive": "Lecture en mode image dans l'image",
"pipFailed": "Échec du démarrage du mode image dans l'image",
"screenshotSaved": "Capture d'écran enregistrée",
"zoomPercent": "Zoom ${percent} %",
"pipErrors": {
"androidVersion": "Nécessite Android 8.0 ou plus récent",
"iosVersion": "Nécessite iOS 15.0 ou plus récent",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Ajouter à ${displayName} : Plex, Jellyfin ou une autre connexion de profil",
"sessionExpiredOne": "Session expirée pour ${name}",
"sessionExpiredMany": "Session expirée pour ${count} serveurs",
"signInAgain": "Se reconnecter"
"signInAgain": "Se reconnecter",
"editJellyfinTitle": "Modifier la connexion Jellyfin",
"editJellyfinIntro": "Ajoutez ou supprimez des URL pour ${serverName}. Plezy utilisera l'URL joignable avec la latence la plus faible."
},
"discover": {
"title": "Découvrez",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Vitesse de lecture",
"zoom": "Zoom",
"sleepTimer": "Minuterie de mise en veille",
"audioSync": "Synchronisation audio",
"subtitleSync": "Synchronisation des sous-titres",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Ajouter un serveur Jellyfin",
"jellyfinUrlIntro": "Saisissez l'URL du serveur, par ex. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Saisissez une ou plusieurs URL de serveur, séparées par des virgules ou des retours à la ligne. Plezy utilisera l'URL joignable avec la latence la plus faible.",
"serverUrl": "URL du serveur",
"serverUrls": "URL du serveur",
"findServer": "Rechercher un serveur",
"searchingLocalServers": "Recherche de serveurs Jellyfin locaux...",
"localServers": "Serveurs Jellyfin locaux",
"username": "Nom d'utilisateur",
"password": "Mot de passe",
"signIn": "Se connecter",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Sì",
"no": "No",
"delete": "Elimina",
"edit": "Modifica",
"shuffle": "Casuale",
"addTo": "Aggiungi a...",
"createNew": "Crea",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Mostra stagione ed episodio sulle schede episodio",
"showSeasonPostersOnTabs": "Mostra poster delle stagioni sulle schede",
"showSeasonPostersOnTabsDescription": "Mostra il poster di ogni stagione sopra la sua scheda",
"tvFullCardLayout": "Schede TV piene",
"tvFullCardLayoutDescription": "Usa schede TV solo immagine con i nomi degli attori sovrapposti",
"hideSpoilers": "Nascondi spoiler per episodi non visti",
"hideSpoilersDescription": "Sfoca miniature e descrizioni degli episodi non visti",
"playerBackend": "Motore di riproduzione",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Forza layout TV. Per dispositivi non rilevati automaticamente. Richiede riavvio.",
"startInFullscreen": "Avvia a schermo intero",
"startInFullscreenDescription": "Apri Plezy a schermo intero all'avvio",
"exitFullscreenOnPlayerClose": "Esci dallo schermo intero alla chiusura del player",
"exitFullscreenOnPlayerCloseDescription": "Esci automaticamente dallo schermo intero quando il lettore video viene chiuso",
"autoHidePerformanceOverlay": "Nascondi automaticamente overlay prestazioni",
"autoHidePerformanceOverlayDescription": "Dissolvi l'overlay prestazioni con i controlli di riproduzione",
"showNavBarLabels": "Mostra etichette barra di navigazione",
@@ -303,6 +308,9 @@
"speedIncrease": "Aumenta velocità",
"speedDecrease": "Diminuisci velocità",
"speedReset": "Ripristina velocità",
"zoomIn": "Aumenta zoom",
"zoomOut": "Riduci zoom",
"zoomReset": "Ripristina zoom",
"subSeekNext": "Vai al sottotitolo successivo",
"subSeekPrev": "Vai al sottotitolo precedente",
"shaderToggle": "Attiva/disattiva shader",
@@ -399,6 +407,10 @@
"unlockRotation": "Sblocca rotazione",
"timerActive": "Timer attivo",
"playbackWillPauseIn": "La riproduzione si interromperà tra ${duration}",
"sleepTimerEndOfVideo": "Fine del video corrente",
"sleepTimerStopAtHeader": "Interrompi a",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "La riproduzione si interromperà alla fine di questo video",
"stillWatching": "Stai ancora guardando?",
"pausingIn": "Pausa tra ${seconds}s",
"continueWatching": "Continua",
@@ -441,6 +453,7 @@
"pipActive": "Riproduzione in Picture-in-Picture",
"pipFailed": "Impossibile avviare la modalità Picture-in-Picture",
"screenshotSaved": "Schermata salvata",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Richiede Android 8.0 o versioni successive",
"iosVersion": "Richiede iOS 15.0 o versioni successive",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Aggiungi a ${displayName}: Plex, Jellyfin o un'altra connessione profilo",
"sessionExpiredOne": "Sessione scaduta per ${name}",
"sessionExpiredMany": "Sessione scaduta per ${count} server",
"signInAgain": "Accedi di nuovo"
"signInAgain": "Accedi di nuovo",
"editJellyfinTitle": "Modifica connessione Jellyfin",
"editJellyfinIntro": "Aggiungi o rimuovi URL per ${serverName}. Plezy userà l'URL raggiungibile con la latenza più bassa."
},
"discover": {
"title": "Esplora",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Velocità di riproduzione",
"zoom": "Zoom",
"sleepTimer": "Timer di spegnimento",
"audioSync": "Sincronizzazione audio",
"subtitleSync": "Sincronizzazione sottotitoli",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Aggiungi server Jellyfin",
"jellyfinUrlIntro": "Inserisci l'URL del server, es. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Inserisci uno o più URL del server, separati da virgole o nuove righe. Plezy userà l'URL raggiungibile con la latenza più bassa.",
"serverUrl": "URL del server",
"serverUrls": "URL del server",
"findServer": "Trova server",
"searchingLocalServers": "Ricerca server Jellyfin locali...",
"localServers": "Server Jellyfin locali",
"username": "Nome utente",
"password": "Password",
"signIn": "Accedi",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "はい",
"no": "いいえ",
"delete": "削除",
"edit": "編集",
"shuffle": "シャッフル",
"addTo": "追加...",
"createNew": "新規作成",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "エピソードカードにシーズン番号とエピソード番号を表示します",
"showSeasonPostersOnTabs": "タブにシーズンポスターを表示",
"showSeasonPostersOnTabsDescription": "各シーズンのポスターをタブの上に表示します",
"tvFullCardLayout": "フルTVカード",
"tvFullCardLayoutDescription": "TVカードを画像のみで表示し、俳優名を重ねて表示します",
"hideSpoilers": "未視聴エピソードのネタバレを非表示",
"hideSpoilersDescription": "未視聴エピソードのサムネイルと説明をぼかします",
"playerBackend": "プレーヤーバックエンド",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "TVレイアウトを強制します。自動検出しないデバイス向けです。再起動が必要です。",
"startInFullscreen": "全画面表示で起動",
"startInFullscreenDescription": "起動時にPlezyを全画面モードで開きます",
"exitFullscreenOnPlayerClose": "プレイヤーを閉じたときに全画面を終了",
"exitFullscreenOnPlayerCloseDescription": "ビデオプレイヤーを閉じたときに自動的に全画面モードを終了します",
"autoHidePerformanceOverlay": "パフォーマンスオーバーレイを自動非表示",
"autoHidePerformanceOverlayDescription": "再生コントロールと一緒にパフォーマンスオーバーレイをフェードする",
"showNavBarLabels": "ナビゲーションバーラベルを表示",
@@ -303,6 +308,9 @@
"speedIncrease": "速度を上げる",
"speedDecrease": "速度を下げる",
"speedReset": "速度をリセット",
"zoomIn": "ズームイン",
"zoomOut": "ズームアウト",
"zoomReset": "ズームをリセット",
"subSeekNext": "次の字幕にシーク",
"subSeekPrev": "前の字幕にシーク",
"shaderToggle": "シェーダー切替",
@@ -399,6 +407,10 @@
"unlockRotation": "回転のロックを解除",
"timerActive": "タイマー動作中",
"playbackWillPauseIn": "再生は${duration}後に一時停止します",
"sleepTimerEndOfVideo": "現在の動画の最後",
"sleepTimerStopAtHeader": "停止のタイミング",
"sleepTimerDurationHeader": "タイマー",
"playbackWillPauseAtEnd": "再生はこの動画の最後に一時停止します",
"stillWatching": "まだ視聴中ですか?",
"pausingIn": "${seconds}秒後に一時停止",
"continueWatching": "続ける",
@@ -441,6 +453,7 @@
"pipActive": "ピクチャーインピクチャーで再生中",
"pipFailed": "ピクチャーインピクチャーの開始に失敗しました",
"screenshotSaved": "スクリーンショットを保存しました",
"zoomPercent": "ズーム ${percent}%",
"pipErrors": {
"androidVersion": "Android 8.0以降が必要です",
"iosVersion": "iOS 15.0以降が必要です",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "${displayName}に追加: Plex、Jellyfin、または別プロフィールの接続",
"sessionExpiredOne": "${name} のセッションの有効期限が切れました",
"sessionExpiredMany": "${count} 台のサーバーのセッションの有効期限が切れました",
"signInAgain": "再度サインイン"
"signInAgain": "再度サインイン",
"editJellyfinTitle": "Jellyfin接続を編集",
"editJellyfinIntro": "${serverName} のURLを追加または削除します。Plezyは到達可能なURLのうち最も低遅延のものを使用します。"
},
"discover": {
"title": "探す",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "再生速度",
"zoom": "ズーム",
"sleepTimer": "スリープタイマー",
"audioSync": "音声同期",
"subtitleSync": "字幕同期",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Jellyfinサーバーを追加",
"jellyfinUrlIntro": "サーバーURLを入力してください。例: `https://jellyfin.example.com`。",
"jellyfinUrlsIntro": "サーバーURLを1つ以上、カンマまたは改行で区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。",
"serverUrl": "サーバーURL",
"serverUrls": "サーバーURL",
"findServer": "サーバーを検索",
"searchingLocalServers": "ローカル Jellyfin サーバーを検索中...",
"localServers": "ローカル Jellyfin サーバー",
"username": "ユーザー名",
"password": "パスワード",
"signIn": "サインイン",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "예",
"no": "아니오",
"delete": "삭제",
"edit": "편집",
"shuffle": "무작위 재생",
"addTo": "추가하기...",
"createNew": "새로 만들기",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "에피소드 카드에 시즌 및 에피소드 번호 표시",
"showSeasonPostersOnTabs": "탭에 시즌 포스터 표시",
"showSeasonPostersOnTabsDescription": "각 시즌 포스터를 탭 위에 표시",
"tvFullCardLayout": "전체 TV 카드",
"tvFullCardLayoutDescription": "TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시",
"hideSpoilers": "미시청 에피소드 스포일러 숨기기",
"hideSpoilersDescription": "시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리",
"playerBackend": "플레이어 백엔드",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "TV 레이아웃을 강제합니다. 자동 감지되지 않는 기기용입니다. 재시작이 필요합니다.",
"startInFullscreen": "전체화면으로 시작",
"startInFullscreenDescription": "실행 시 Plezy를 전체화면 모드로 엽니다",
"exitFullscreenOnPlayerClose": "플레이어 닫을 때 전체화면 종료",
"exitFullscreenOnPlayerCloseDescription": "비디오 플레이어를 닫을 때 자동으로 전체화면을 종료합니다",
"autoHidePerformanceOverlay": "성능 오버레이 자동 숨기기",
"autoHidePerformanceOverlayDescription": "재생 컨트롤과 함께 성능 오버레이를 페이드 처리",
"showNavBarLabels": "내비게이션 바 라벨 표시",
@@ -303,6 +308,9 @@
"speedIncrease": "속도 높이기",
"speedDecrease": "속도 낮추기",
"speedReset": "속도 초기화",
"zoomIn": "확대",
"zoomOut": "축소",
"zoomReset": "확대/축소 초기화",
"subSeekNext": "다음 자막으로 이동",
"subSeekPrev": "이전 자막으로 이동",
"shaderToggle": "셰이더 전환",
@@ -399,6 +407,10 @@
"unlockRotation": "회전 잠금 해제",
"timerActive": "타이머 활성화됨",
"playbackWillPauseIn": "재생이 ${duration} 후에 일시 중지 됩니다",
"sleepTimerEndOfVideo": "현재 비디오의 끝",
"sleepTimerStopAtHeader": "정지 시점",
"sleepTimerDurationHeader": "타이머",
"playbackWillPauseAtEnd": "재생이 이 비디오의 끝에서 일시 중지됩니다",
"stillWatching": "아직 시청 중이신가요?",
"pausingIn": "${seconds}초 후 일시 정지",
"continueWatching": "계속",
@@ -441,6 +453,7 @@
"pipActive": "화면 속 화면으로 재생 중",
"pipFailed": "화면 속 화면 모드를 시작할 수 없습니다",
"screenshotSaved": "스크린샷 저장됨",
"zoomPercent": "확대/축소 ${percent}%",
"pipErrors": {
"androidVersion": "Android 8.0 이상이 필요합니다",
"iosVersion": "iOS 15.0 이상이 필요합니다",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "${displayName}에 추가: Plex, Jellyfin 또는 다른 프로필 연결",
"sessionExpiredOne": "${name} 의 세션이 만료되었습니다",
"sessionExpiredMany": "${count} 개의 서버에서 세션이 만료되었습니다",
"signInAgain": "다시 로그인"
"signInAgain": "다시 로그인",
"editJellyfinTitle": "Jellyfin 연결 편집",
"editJellyfinIntro": "${serverName}의 URL을 추가하거나 제거하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다."
},
"discover": {
"title": "발견",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "재생 속도",
"zoom": "확대/축소",
"sleepTimer": "취침 타이머",
"audioSync": "오디오 동기화",
"subtitleSync": "자막 동기화",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Jellyfin 서버 추가",
"jellyfinUrlIntro": "서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "서버 URL을 하나 이상 쉼표나 줄바꿈으로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.",
"serverUrl": "서버 URL",
"serverUrls": "서버 URL",
"findServer": "서버 찾기",
"searchingLocalServers": "로컬 Jellyfin 서버 검색 중...",
"localServers": "로컬 Jellyfin 서버",
"username": "사용자 이름",
"password": "비밀번호",
"signIn": "로그인",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Ja",
"no": "Nei",
"delete": "Slett",
"edit": "Rediger",
"shuffle": "Tilfeldig",
"addTo": "Legg til i...",
"createNew": "Opprett ny",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Vis sesong- og episodenummer på episodekort",
"showSeasonPostersOnTabs": "Vis sesongplakater på faner",
"showSeasonPostersOnTabsDescription": "Vis hver sesongs plakat over fanen",
"tvFullCardLayout": "Fulle TV-kort",
"tvFullCardLayoutDescription": "Bruk bildebaserte TV-kort med skuespillernavn lagt over",
"hideSpoilers": "Skjul spoilere for usette episoder",
"hideSpoilersDescription": "Slør miniatyrbilder og beskrivelser for usette episoder",
"playerBackend": "Spillermotor",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Tving TV-oppsett. For enheter som ikke oppdages automatisk. Krever omstart.",
"startInFullscreen": "Start i fullskjerm",
"startInFullscreenDescription": "Åpne Plezy i fullskjermmodus ved oppstart",
"exitFullscreenOnPlayerClose": "Avslutt fullskjerm ved lukking av avspiller",
"exitFullscreenOnPlayerCloseDescription": "Avslutt fullskjerm automatisk når videospilleren lukkes",
"autoHidePerformanceOverlay": "Skjul ytelsesoverlegg automatisk",
"autoHidePerformanceOverlayDescription": "Fade ytelsesoverlegget med avspillingskontrollene",
"showNavBarLabels": "Vis navigasjonsfeltlabeler",
@@ -303,6 +308,9 @@
"speedIncrease": "Øk hastighet",
"speedDecrease": "Reduser hastighet",
"speedReset": "Tilbakestill hastighet",
"zoomIn": "Zoom inn",
"zoomOut": "Zoom ut",
"zoomReset": "Tilbakestill zoom",
"subSeekNext": "Spol til neste undertekst",
"subSeekPrev": "Spol til forrige undertekst",
"shaderToggle": "Veksle shadere",
@@ -399,6 +407,10 @@
"unlockRotation": "Lås opp rotasjon",
"timerActive": "Timer aktiv",
"playbackWillPauseIn": "Avspilling vil pause om ${duration}",
"sleepTimerEndOfVideo": "Slutten av gjeldende video",
"sleepTimerStopAtHeader": "Stopp ved",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Avspilling vil pause på slutten av denne videoen",
"stillWatching": "Ser du fortsatt?",
"pausingIn": "Pauser om ${seconds}s",
"continueWatching": "Fortsett",
@@ -441,6 +453,7 @@
"pipActive": "Spiller i bilde-i-bilde",
"pipFailed": "Bilde-i-bilde kunne ikke starte",
"screenshotSaved": "Skjermbilde lagret",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Krever Android 8.0 eller nyere",
"iosVersion": "Krever iOS 15.0 eller nyere",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Legg til for ${displayName}: Plex, Jellyfin eller en annen profiltilkobling",
"sessionExpiredOne": "Økten er utløpt for ${name}",
"sessionExpiredMany": "Økten er utløpt for ${count} servere",
"signInAgain": "Logg inn igjen"
"signInAgain": "Logg inn igjen",
"editJellyfinTitle": "Rediger Jellyfin-tilkobling",
"editJellyfinIntro": "Legg til eller fjern URL-er for ${serverName}. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse."
},
"discover": {
"title": "Oppdag",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Avspillingshastighet",
"zoom": "Zoom",
"sleepTimer": "Søvntimer",
"audioSync": "Lydsynkronisering",
"subtitleSync": "Undertekstsynkronisering",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Legg til Jellyfin-server",
"jellyfinUrlIntro": "Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Skriv inn én eller flere server-URL-er, adskilt med kommaer eller nye linjer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.",
"serverUrl": "Server-URL",
"serverUrls": "Server-URL-er",
"findServer": "Finn server",
"searchingLocalServers": "Søker etter lokale Jellyfin-servere...",
"localServers": "Lokale Jellyfin-servere",
"username": "Brukernavn",
"password": "Passord",
"signIn": "Logg på",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Ja",
"no": "Nee",
"delete": "Verwijderen",
"edit": "Bewerken",
"shuffle": "Willekeurig",
"addTo": "Toevoegen aan...",
"createNew": "Nieuw aanmaken",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Toon seizoen- en afleveringsnummer op afleveringskaarten",
"showSeasonPostersOnTabs": "Toon seizoensposters op tabbladen",
"showSeasonPostersOnTabsDescription": "Toon de poster van elk seizoen boven het tabblad",
"tvFullCardLayout": "Volledige tv-kaarten",
"tvFullCardLayoutDescription": "Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay",
"hideSpoilers": "Spoilers voor ongekeken afleveringen verbergen",
"hideSpoilersDescription": "Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen",
"playerBackend": "Speler backend",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Forceer TV-indeling. Voor apparaten zonder autodetectie. Herstart vereist.",
"startInFullscreen": "Starten in volledig scherm",
"startInFullscreenDescription": "Open Plezy bij het starten in volledig scherm",
"exitFullscreenOnPlayerClose": "Volledig scherm verlaten bij sluiten speler",
"exitFullscreenOnPlayerCloseDescription": "Verlaat automatisch volledig scherm wanneer de videospeler wordt gesloten",
"autoHidePerformanceOverlay": "Prestatie-overlay automatisch verbergen",
"autoHidePerformanceOverlayDescription": "Laat de prestatie-overlay meevervagen met de afspeelknoppen",
"showNavBarLabels": "Navigatiebalk labels tonen",
@@ -303,6 +308,9 @@
"speedIncrease": "Snelheid verhogen",
"speedDecrease": "Snelheid verlagen",
"speedReset": "Snelheid resetten",
"zoomIn": "Inzoomen",
"zoomOut": "Uitzoomen",
"zoomReset": "Zoom resetten",
"subSeekNext": "Naar volgende ondertitel",
"subSeekPrev": "Naar vorige ondertitel",
"shaderToggle": "Shaders aan/uit",
@@ -399,6 +407,10 @@
"unlockRotation": "Ontgrendel rotatie",
"timerActive": "Timer actief",
"playbackWillPauseIn": "Afspelen wordt gepauzeerd over ${duration}",
"sleepTimerEndOfVideo": "Einde van huidige video",
"sleepTimerStopAtHeader": "Stoppen bij",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Afspelen wordt gepauzeerd aan het einde van deze video",
"stillWatching": "Kijk je nog?",
"pausingIn": "Pauze over ${seconds}s",
"continueWatching": "Doorgaan",
@@ -441,6 +453,7 @@
"pipActive": "Afspelen in beeld-in-beeld",
"pipFailed": "Beeld-in-beeld kon niet worden gestart",
"screenshotSaved": "Schermafbeelding opgeslagen",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Vereist Android 8.0 of nieuwer",
"iosVersion": "Vereist iOS 15.0 of nieuwer",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Toevoegen aan ${displayName}: Plex, Jellyfin of een andere profielverbinding",
"sessionExpiredOne": "Sessie verlopen voor ${name}",
"sessionExpiredMany": "Sessie verlopen voor ${count} servers",
"signInAgain": "Opnieuw aanmelden"
"signInAgain": "Opnieuw aanmelden",
"editJellyfinTitle": "Jellyfin-verbinding bewerken",
"editJellyfinIntro": "Voeg URL's voor ${serverName} toe of verwijder ze. Plezy gebruikt de bereikbare URL met de laagste latentie."
},
"discover": {
"title": "Ontdekken",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Afspeelsnelheid",
"zoom": "Zoom",
"sleepTimer": "Slaaptimer",
"audioSync": "Audio synchronisatie",
"subtitleSync": "Ondertitel synchronisatie",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Jellyfin-server toevoegen",
"jellyfinUrlIntro": "Voer de server-URL in, bijv. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Voer een of meer server-URL's in, gescheiden door komma's of nieuwe regels. Plezy gebruikt de bereikbare URL met de laagste latentie.",
"serverUrl": "Server-URL",
"serverUrls": "Server-URL's",
"findServer": "Server zoeken",
"searchingLocalServers": "Lokale Jellyfin-servers zoeken...",
"localServers": "Lokale Jellyfin-servers",
"username": "Gebruikersnaam",
"password": "Wachtwoord",
"signIn": "Inloggen",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Tak",
"no": "Nie",
"delete": "Usuń",
"edit": "Edytuj",
"shuffle": "Losowo",
"addTo": "Dodaj do...",
"createNew": "Utwórz nowy",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Pokazuj numer sezonu i odcinka na kartach odcinków",
"showSeasonPostersOnTabs": "Pokaż plakaty sezonów na zakładkach",
"showSeasonPostersOnTabsDescription": "Pokazuj plakat każdego sezonu nad jego kartą",
"tvFullCardLayout": "Pełne karty TV",
"tvFullCardLayoutDescription": "Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów",
"hideSpoilers": "Ukryj spoilery nieobejrzanych odcinków",
"hideSpoilersDescription": "Rozmywaj miniatury i opisy nieobejrzanych odcinków",
"playerBackend": "Backend odtwarzacza",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Wymuś układ TV. Dla urządzeń bez autodetekcji. Wymaga restartu.",
"startInFullscreen": "Uruchom na pełnym ekranie",
"startInFullscreenDescription": "Otwiera Plezy w trybie pełnoekranowym przy uruchomieniu",
"exitFullscreenOnPlayerClose": "Wyjdź z pełnego ekranu przy zamykaniu odtwarzacza",
"exitFullscreenOnPlayerCloseDescription": "Automatycznie wychodzi z trybu pełnoekranowego po zamknięciu odtwarzacza wideo",
"autoHidePerformanceOverlay": "Automatycznie ukrywaj nakładkę wydajności",
"autoHidePerformanceOverlayDescription": "Wygaszaj nakładkę wydajności wraz z kontrolkami odtwarzania",
"showNavBarLabels": "Pokaż etykiety paska nawigacji",
@@ -303,6 +308,9 @@
"speedIncrease": "Zwiększ prędkość",
"speedDecrease": "Zmniejsz prędkość",
"speedReset": "Zresetuj prędkość",
"zoomIn": "Powiększ",
"zoomOut": "Pomniejsz",
"zoomReset": "Zresetuj zoom",
"subSeekNext": "Przewiń do następnego napisu",
"subSeekPrev": "Przewiń do poprzedniego napisu",
"shaderToggle": "Przełącz shadery",
@@ -399,6 +407,10 @@
"unlockRotation": "Odblokuj obrót",
"timerActive": "Wyłącznik aktywny",
"playbackWillPauseIn": "Odtwarzanie zatrzyma się za ${duration}",
"sleepTimerEndOfVideo": "Koniec bieżącego wideo",
"sleepTimerStopAtHeader": "Zatrzymaj na",
"sleepTimerDurationHeader": "Minutnik",
"playbackWillPauseAtEnd": "Odtwarzanie zatrzyma się na końcu tego wideo",
"stillWatching": "Nadal oglądasz?",
"pausingIn": "Pauza za ${seconds}s",
"continueWatching": "Kontynuuj",
@@ -441,6 +453,7 @@
"pipActive": "Odtwarzanie w trybie obraz w obrazie",
"pipFailed": "Nie udało się uruchomić trybu obraz w obrazie",
"screenshotSaved": "Zrzut ekranu zapisany",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Wymaga Androida 8.0 lub nowszego",
"iosVersion": "Wymaga iOS 15.0 lub nowszego",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Dodaj do ${displayName}: Plex, Jellyfin lub połączenie innego profilu",
"sessionExpiredOne": "Sesja wygasła dla ${name}",
"sessionExpiredMany": "Sesja wygasła dla ${count} serwerów",
"signInAgain": "Zaloguj się ponownie"
"signInAgain": "Zaloguj się ponownie",
"editJellyfinTitle": "Edytuj połączenie Jellyfin",
"editJellyfinIntro": "Dodaj lub usuń adresy URL dla ${serverName}. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu."
},
"discover": {
"title": "Odkryj",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Prędkość odtwarzania",
"zoom": "Zoom",
"sleepTimer": "Wyłącznik czasowy",
"audioSync": "Synchronizacja audio",
"subtitleSync": "Synchronizacja napisów",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Dodaj serwer Jellyfin",
"jellyfinUrlIntro": "Wpisz URL serwera, np. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami lub nowymi wierszami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.",
"serverUrl": "URL serwera",
"serverUrls": "URL-e serwera",
"findServer": "Znajdź serwer",
"searchingLocalServers": "Szukanie lokalnych serwerów Jellyfin...",
"localServers": "Lokalne serwery Jellyfin",
"username": "Nazwa użytkownika",
"password": "Hasło",
"signIn": "Zaloguj się",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Sim",
"no": "Não",
"delete": "Excluir",
"edit": "Editar",
"shuffle": "Aleatório",
"addTo": "Adicionar a...",
"createNew": "Criar novo",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Mostrar temporada e episódio nos cartões de episódio",
"showSeasonPostersOnTabs": "Mostrar Pôsteres de Temporada nas Abas",
"showSeasonPostersOnTabsDescription": "Mostrar o pôster de cada temporada acima da aba",
"tvFullCardLayout": "Cartões TV completos",
"tvFullCardLayoutDescription": "Usar cartões de TV só com imagem e nomes dos atores sobrepostos",
"hideSpoilers": "Ocultar Spoilers de Episódios Não Assistidos",
"hideSpoilersDescription": "Desfocar miniaturas e descrições de episódios não vistos",
"playerBackend": "Backend do Player",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Forçar layout TV. Para dispositivos sem detecção automática. Requer reinício.",
"startInFullscreen": "Iniciar em tela cheia",
"startInFullscreenDescription": "Abrir o Plezy em modo de tela cheia ao iniciar",
"exitFullscreenOnPlayerClose": "Sair do ecrã inteiro ao fechar o leitor",
"exitFullscreenOnPlayerCloseDescription": "Sair automaticamente do modo de ecrã inteiro ao fechar o leitor de vídeo",
"autoHidePerformanceOverlay": "Ocultar overlay de desempenho automaticamente",
"autoHidePerformanceOverlayDescription": "Desvanecer o overlay de desempenho com os controles de reprodução",
"showNavBarLabels": "Mostrar Rótulos da Barra de Navegação",
@@ -303,6 +308,9 @@
"speedIncrease": "Aumentar Velocidade",
"speedDecrease": "Diminuir Velocidade",
"speedReset": "Redefinir Velocidade",
"zoomIn": "Aumentar zoom",
"zoomOut": "Diminuir zoom",
"zoomReset": "Redefinir zoom",
"subSeekNext": "Ir para Próxima Legenda",
"subSeekPrev": "Ir para Legenda Anterior",
"shaderToggle": "Alternar Shaders",
@@ -399,6 +407,10 @@
"unlockRotation": "Destravar rotação",
"timerActive": "Timer Ativo",
"playbackWillPauseIn": "A reprodução pausará em ${duration}",
"sleepTimerEndOfVideo": "Fim do vídeo atual",
"sleepTimerStopAtHeader": "Parar em",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "A reprodução pausará no final deste vídeo",
"stillWatching": "Ainda assistindo?",
"pausingIn": "Pausando em ${seconds}s",
"continueWatching": "Continuar",
@@ -441,6 +453,7 @@
"pipActive": "Reproduzindo em Picture-in-Picture",
"pipFailed": "Falha ao iniciar picture-in-picture",
"screenshotSaved": "Captura de tela salva",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Requer Android 8.0 ou superior",
"iosVersion": "Requer iOS 15.0 ou superior",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Adicionar a ${displayName}: Plex, Jellyfin ou outra conexão de perfil",
"sessionExpiredOne": "Sessão expirada para ${name}",
"sessionExpiredMany": "Sessão expirada para ${count} servidores",
"signInAgain": "Entrar novamente"
"signInAgain": "Entrar novamente",
"editJellyfinTitle": "Editar conexão Jellyfin",
"editJellyfinIntro": "Adicione ou remova URLs de ${serverName}. O Plezy usará a URL acessível com a menor latência."
},
"discover": {
"title": "Descobrir",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Velocidade de Reprodução",
"zoom": "Zoom",
"sleepTimer": "Timer de Sono",
"audioSync": "Sincronia de Áudio",
"subtitleSync": "Sincronia de Legendas",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Adicionar servidor Jellyfin",
"jellyfinUrlIntro": "Insira a URL do servidor, ex. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Insira uma ou mais URLs do servidor, separadas por vírgulas ou novas linhas. O Plezy usará a URL acessível com a menor latência.",
"serverUrl": "URL do servidor",
"serverUrls": "URLs do servidor",
"findServer": "Encontrar servidor",
"searchingLocalServers": "A procurar servidores Jellyfin locais...",
"localServers": "Servidores Jellyfin locais",
"username": "Usuário",
"password": "Senha",
"signIn": "Entrar",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Да",
"no": "Нет",
"delete": "Удалить",
"edit": "Редактировать",
"shuffle": "Перемешать",
"addTo": "Добавить в...",
"createNew": "Создать новый",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Показывать номер сезона и серии на карточках серий",
"showSeasonPostersOnTabs": "Показывать постеры сезонов на вкладках",
"showSeasonPostersOnTabsDescription": "Показывать постер каждого сезона над его вкладкой",
"tvFullCardLayout": "Полные TV-карточки",
"tvFullCardLayoutDescription": "Использовать TV-карточки только с изображением и именами актёров поверх него",
"hideSpoilers": "Скрыть спойлеры непросмотренных эпизодов",
"hideSpoilersDescription": "Размывать миниатюры и описания непросмотренных серий",
"playerBackend": "Бэкенд плеера",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Принудительно включить ТВ-интерфейс. Для устройств без автоопределения. Требуется перезапуск.",
"startInFullscreen": "Запускать в полноэкранном режиме",
"startInFullscreenDescription": "Открывать Plezy в полноэкранном режиме при запуске",
"exitFullscreenOnPlayerClose": "Выходить из полноэкранного режима при закрытии плеера",
"exitFullscreenOnPlayerCloseDescription": "Автоматически выходить из полноэкранного режима при закрытии видеоплеера",
"autoHidePerformanceOverlay": "Автоскрытие оверлея производительности",
"autoHidePerformanceOverlayDescription": "Скрывать оверлей производительности вместе с элементами управления воспроизведением",
"showNavBarLabels": "Показывать подписи панели навигации",
@@ -303,6 +308,9 @@
"speedIncrease": "Увеличить скорость",
"speedDecrease": "Уменьшить скорость",
"speedReset": "Сбросить скорость",
"zoomIn": "Увеличить масштаб",
"zoomOut": "Уменьшить масштаб",
"zoomReset": "Сбросить масштаб",
"subSeekNext": "К следующему субтитру",
"subSeekPrev": "К предыдущему субтитру",
"shaderToggle": "Вкл./выкл. шейдеры",
@@ -399,6 +407,10 @@
"unlockRotation": "Разблокировать поворот",
"timerActive": "Таймер активен",
"playbackWillPauseIn": "Воспроизведение будет приостановлено через ${duration}",
"sleepTimerEndOfVideo": "Конец текущего видео",
"sleepTimerStopAtHeader": "Остановить на",
"sleepTimerDurationHeader": "Таймер",
"playbackWillPauseAtEnd": "Воспроизведение будет приостановлено в конце этого видео",
"stillWatching": "Всё ещё смотрите?",
"pausingIn": "Пауза через ${seconds}с",
"continueWatching": "Продолжить",
@@ -441,6 +453,7 @@
"pipActive": "Воспроизводится в режиме «картинка в картинке»",
"pipFailed": "Не удалось запустить режим «картинка в картинке»",
"screenshotSaved": "Снимок экрана сохранён",
"zoomPercent": "Масштаб ${percent}%",
"pipErrors": {
"androidVersion": "Требуется Android 8.0 или новее",
"iosVersion": "Требуется iOS 15.0 или новее",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Добавить к ${displayName}: Plex, Jellyfin или подключение другого профиля",
"sessionExpiredOne": "Сессия истекла для ${name}",
"sessionExpiredMany": "Сессия истекла для ${count} серверов",
"signInAgain": "Войти снова"
"signInAgain": "Войти снова",
"editJellyfinTitle": "Изменить подключение Jellyfin",
"editJellyfinIntro": "Добавьте или удалите URL для ${serverName}. Plezy будет использовать доступный URL с минимальной задержкой."
},
"discover": {
"title": "Обзор",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Скорость воспроизведения",
"zoom": "Масштаб",
"sleepTimer": "Таймер сна",
"audioSync": "Синхронизация аудио",
"subtitleSync": "Синхронизация субтитров",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Добавить сервер Jellyfin",
"jellyfinUrlIntro": "Введите URL сервера, например `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Введите один или несколько URL сервера, разделяя их запятыми или новыми строками. Plezy будет использовать доступный URL с минимальной задержкой.",
"serverUrl": "URL сервера",
"serverUrls": "URL сервера",
"findServer": "Найти сервер",
"searchingLocalServers": "Поиск локальных серверов Jellyfin...",
"localServers": "Локальные серверы Jellyfin",
"username": "Имя пользователя",
"password": "Пароль",
"signIn": "Войти",
+17 -2
View File
@@ -3,8 +3,8 @@
/// Source: lib/i18n
/// To regenerate, run: `dart run slang`
///
/// Locales: 15
/// Strings: 17580 (1172 per locale)
/// Locales: 16
/// Strings: 19072 (1192 per locale)
// coverage:ignore-file
// ignore_for_file: type=lint, unused_import
@@ -16,6 +16,7 @@ import 'package:slang/generated.dart';
import 'package:slang_flutter/slang_flutter.dart';
export 'package:slang_flutter/slang_flutter.dart';
import 'strings_bg.g.dart' deferred as l_bg;
import 'strings_da.g.dart' deferred as l_da;
import 'strings_de.g.dart' deferred as l_de;
import 'strings_es.g.dart' deferred as l_es;
@@ -40,6 +41,7 @@ part 'strings_en.g.dart';
/// - if (LocaleSettings.currentLocale == AppLocale.en) // locale check
enum AppLocale with BaseAppLocale<AppLocale, Translations> {
en(languageCode: 'en'),
bg(languageCode: 'bg'),
da(languageCode: 'da'),
de(languageCode: 'de'),
es(languageCode: 'es'),
@@ -78,6 +80,13 @@ enum AppLocale with BaseAppLocale<AppLocale, Translations> {
cardinalResolver: cardinalResolver,
ordinalResolver: ordinalResolver,
);
case AppLocale.bg:
await l_bg.loadLibrary();
return l_bg.TranslationsBg(
overrides: overrides,
cardinalResolver: cardinalResolver,
ordinalResolver: ordinalResolver,
);
case AppLocale.da:
await l_da.loadLibrary();
return l_da.TranslationsDa(
@@ -192,6 +201,12 @@ enum AppLocale with BaseAppLocale<AppLocale, Translations> {
cardinalResolver: cardinalResolver,
ordinalResolver: ordinalResolver,
);
case AppLocale.bg:
return l_bg.TranslationsBg(
overrides: overrides,
cardinalResolver: cardinalResolver,
ordinalResolver: ordinalResolver,
);
case AppLocale.da:
return l_da.TranslationsDa(
overrides: overrides,
File diff suppressed because it is too large Load Diff
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonDa extends TranslationsCommonEn {
@override String get yes => 'Ja';
@override String get no => 'Nej';
@override String get delete => 'Slet';
@override String get edit => 'Rediger';
@override String get shuffle => 'Bland';
@override String get addTo => 'Tilføj til...';
@override String get createNew => 'Opret ny';
@@ -253,6 +254,8 @@ class _TranslationsSettingsDa extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Vis sæson- og episodenummer på episodekort';
@override String get showSeasonPostersOnTabs => 'Vis sæsonplakater på faner';
@override String get showSeasonPostersOnTabsDescription => 'Vis hver sæsons plakat over dens fane';
@override String get tvFullCardLayout => 'Fuldflade TV-kort';
@override String get tvFullCardLayoutDescription => 'Brug TV-kort kun med billeder og skuespillernavne ovenpå';
@override String get hideSpoilers => 'Skjul spoilere for usete episoder';
@override String get hideSpoilersDescription => 'Slør miniaturebilleder og beskrivelser for usete episoder';
@override String get playerBackend => 'Afspillerbackend';
@@ -388,6 +391,8 @@ class _TranslationsSettingsDa extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Tving TV-layout. Til enheder, der ikke registreres automatisk. Kræver genstart.';
@override String get startInFullscreen => 'Start i fuldskærm';
@override String get startInFullscreenDescription => 'Åbn Plezy i fuldskærmstilstand ved opstart';
@override String get exitFullscreenOnPlayerClose => 'Forlad fuldskærm ved lukning af afspiller';
@override String get exitFullscreenOnPlayerCloseDescription => 'Afslut automatisk fuldskærm, når videoafspilleren lukkes';
@override String get autoHidePerformanceOverlay => 'Skjul ydelses-overlay automatisk';
@override String get autoHidePerformanceOverlayDescription => 'Fade ydelses-overlayet med afspilningskontrollerne';
@override String get showNavBarLabels => 'Vis navigationsbarlabels';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsDa extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Lås rotation op';
@override String get timerActive => 'Timer aktiv';
@override String playbackWillPauseIn({required Object duration}) => 'Afspilning pauses om ${duration}';
@override String get sleepTimerEndOfVideo => 'Slutningen af aktuel video';
@override String get sleepTimerStopAtHeader => 'Stop ved';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'Afspilning pauses i slutningen af denne video';
@override String get stillWatching => 'Ser du stadig?';
@override String pausingIn({required Object seconds}) => 'Pauser om ${seconds}s';
@override String get continueWatching => 'Fortsæt';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsDa extends TranslationsVideoControlsEn {
@override String get pipActive => 'Afspiller i billede-i-billede';
@override String get pipFailed => 'Billede-i-billede kunne ikke starte';
@override String get screenshotSaved => 'Skærmbillede gemt';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsDa pipErrors = _TranslationsVideoControlsPipErrorsDa._(_root);
@override String get chapters => 'Kapitler';
@override String get noChaptersAvailable => 'Ingen kapitler tilgængelige';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsDa extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sessionen er udløbet for ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sessionen er udløbet for ${count} servere';
@override String get signInAgain => 'Log ind igen';
@override String get editJellyfinTitle => 'Rediger Jellyfin-forbindelse';
@override String editJellyfinIntro({required Object serverName}) => 'Tilføj eller fjern URL\'er for ${serverName}. Plezy bruger den tilgængelige URL med lavest latenstid.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsDa extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Afspilningshastighed';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Sove-timer';
@override String get audioSync => 'Lydsynkronisering';
@override String get subtitleSync => 'Undertekstsynkronisering';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerDa extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Tilføj Jellyfin-server';
@override String get jellyfinUrlIntro => 'Indtast server-URL\'en, f.eks. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Indtast en eller flere server-URL\'er, adskilt med kommaer eller nye linjer. Plezy bruger den tilgængelige URL med lavest latenstid.';
@override String get serverUrl => 'Server-URL';
@override String get serverUrls => 'Server-URL\'er';
@override String get findServer => 'Find server';
@override String get searchingLocalServers => 'Søger efter lokale Jellyfin-servere...';
@override String get localServers => 'Lokale Jellyfin-servere';
@override String get username => 'Brugernavn';
@override String get password => 'Adgangskode';
@override String get signIn => 'Log ind';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsDa extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Øg hastighed';
@override String get speedDecrease => 'Sænk hastighed';
@override String get speedReset => 'Nulstil hastighed';
@override String get zoomIn => 'Zoom ind';
@override String get zoomOut => 'Zoom ud';
@override String get zoomReset => 'Nulstil zoom';
@override String get subSeekNext => 'Søg til næste undertekst';
@override String get subSeekPrev => 'Søg til forrige undertekst';
@override String get shaderToggle => 'Skift shadere';
@@ -1833,6 +1853,7 @@ extension on TranslationsDa {
'common.yes' => 'Ja',
'common.no' => 'Nej',
'common.delete' => 'Slet',
'common.edit' => 'Rediger',
'common.shuffle' => 'Bland',
'common.addTo' => 'Tilføj til...',
'common.createNew' => 'Opret ny',
@@ -1916,6 +1937,8 @@ extension on TranslationsDa {
'settings.showEpisodeNumberOnCardsDescription' => 'Vis sæson- og episodenummer på episodekort',
'settings.showSeasonPostersOnTabs' => 'Vis sæsonplakater på faner',
'settings.showSeasonPostersOnTabsDescription' => 'Vis hver sæsons plakat over dens fane',
'settings.tvFullCardLayout' => 'Fuldflade TV-kort',
'settings.tvFullCardLayoutDescription' => 'Brug TV-kort kun med billeder og skuespillernavne ovenpå',
'settings.hideSpoilers' => 'Skjul spoilere for usete episoder',
'settings.hideSpoilersDescription' => 'Slør miniaturebilleder og beskrivelser for usete episoder',
'settings.playerBackend' => 'Afspillerbackend',
@@ -2051,6 +2074,8 @@ extension on TranslationsDa {
'settings.forceTvModeDescription' => 'Tving TV-layout. Til enheder, der ikke registreres automatisk. Kræver genstart.',
'settings.startInFullscreen' => 'Start i fuldskærm',
'settings.startInFullscreenDescription' => 'Åbn Plezy i fuldskærmstilstand ved opstart',
'settings.exitFullscreenOnPlayerClose' => 'Forlad fuldskærm ved lukning af afspiller',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Afslut automatisk fuldskærm, når videoafspilleren lukkes',
'settings.autoHidePerformanceOverlay' => 'Skjul ydelses-overlay automatisk',
'settings.autoHidePerformanceOverlayDescription' => 'Fade ydelses-overlayet med afspilningskontrollerne',
'settings.showNavBarLabels' => 'Vis navigationsbarlabels',
@@ -2089,6 +2114,9 @@ extension on TranslationsDa {
'hotkeys.actions.speedIncrease' => 'Øg hastighed',
'hotkeys.actions.speedDecrease' => 'Sænk hastighed',
'hotkeys.actions.speedReset' => 'Nulstil hastighed',
'hotkeys.actions.zoomIn' => 'Zoom ind',
'hotkeys.actions.zoomOut' => 'Zoom ud',
'hotkeys.actions.zoomReset' => 'Nulstil zoom',
'hotkeys.actions.subSeekNext' => 'Søg til næste undertekst',
'hotkeys.actions.subSeekPrev' => 'Søg til forrige undertekst',
'hotkeys.actions.shaderToggle' => 'Skift shadere',
@@ -2172,6 +2200,10 @@ extension on TranslationsDa {
'videoControls.unlockRotation' => 'Lås rotation op',
'videoControls.timerActive' => 'Timer aktiv',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Afspilning pauses om ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Slutningen af aktuel video',
'videoControls.sleepTimerStopAtHeader' => 'Stop ved',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Afspilning pauses i slutningen af denne video',
'videoControls.stillWatching' => 'Ser du stadig?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauser om ${seconds}s',
'videoControls.continueWatching' => 'Fortsæt',
@@ -2214,6 +2246,7 @@ extension on TranslationsDa {
'videoControls.pipActive' => 'Afspiller i billede-i-billede',
'videoControls.pipFailed' => 'Billede-i-billede kunne ikke starte',
'videoControls.screenshotSaved' => 'Skærmbillede gemt',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Kræver Android 8.0 eller nyere',
'videoControls.pipErrors.iosVersion' => 'Kræver iOS 15.0 eller nyere',
'videoControls.pipErrors.permissionDisabled' => 'Billede-i-billede er deaktiveret. Slå det til i systemindstillinger.',
@@ -2300,6 +2333,8 @@ extension on TranslationsDa {
'mpvConfig.presetSaved' => 'Forudindstilling gemt',
'mpvConfig.presetLoaded' => 'Forudindstilling indlæst',
'mpvConfig.presetDeleted' => 'Forudindstilling slettet',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Er du sikker på, at du vil slette denne forudindstilling?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Bekræft handling',
@@ -2313,8 +2348,6 @@ extension on TranslationsDa {
'profiles.signOut' => 'Log ud',
'profiles.signOutPlexTitle' => 'Log ud af Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Fjern ${displayName} og alle Plex Home-brugere? Log ind igen når som helst.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Logget ud af Plex.',
'profiles.signOutFailed' => 'Log ud mislykkedes.',
'profiles.sectionTitle' => 'Profiler',
@@ -2369,6 +2402,8 @@ extension on TranslationsDa {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sessionen er udløbet for ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sessionen er udløbet for ${count} servere',
'connections.signInAgain' => 'Log ind igen',
'connections.editJellyfinTitle' => 'Rediger Jellyfin-forbindelse',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Tilføj eller fjern URL\'er for ${serverName}. Plezy bruger den tilgængelige URL med lavest latenstid.',
'discover.title' => 'Opdag',
'discover.switchProfile' => 'Skift profil',
'discover.noContentAvailable' => 'Intet indhold tilgængeligt',
@@ -2789,6 +2824,7 @@ extension on TranslationsDa {
'companionRemote.remote.audio' => 'Lyd',
'companionRemote.remote.searchHint' => 'Søg på desktop...',
'videoSettings.playbackSpeed' => 'Afspilningshastighed',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Sove-timer',
'videoSettings.audioSync' => 'Lydsynkronisering',
'videoSettings.subtitleSync' => 'Undertekstsynkronisering',
@@ -2811,6 +2847,8 @@ extension on TranslationsDa {
'externalPlayer.off' => 'Fra',
'externalPlayer.launchFailed' => 'Kunne ikke åbne ekstern afspiller',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} er ikke installeret',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Afspil i ekstern afspiller',
'metadataEdit.editMetadata' => 'Redigér...',
'metadataEdit.screenTitle' => 'Redigér metadata',
@@ -2827,8 +2865,6 @@ extension on TranslationsDa {
'metadataEdit.summary' => 'Resumé',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Baggrund',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kvadratisk billede',
'metadataEdit.selectPoster' => 'Vælg plakat',
@@ -2947,8 +2983,12 @@ extension on TranslationsDa {
'trackers.libraryFilter.noLibraries' => 'Ingen biblioteker tilgængelige',
'addServer.addJellyfinTitle' => 'Tilføj Jellyfin-server',
'addServer.jellyfinUrlIntro' => 'Indtast server-URL\'en, f.eks. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Indtast en eller flere server-URL\'er, adskilt med kommaer eller nye linjer. Plezy bruger den tilgængelige URL med lavest latenstid.',
'addServer.serverUrl' => 'Server-URL',
'addServer.serverUrls' => 'Server-URL\'er',
'addServer.findServer' => 'Find server',
'addServer.searchingLocalServers' => 'Søger efter lokale Jellyfin-servere...',
'addServer.localServers' => 'Lokale Jellyfin-servere',
'addServer.username' => 'Brugernavn',
'addServer.password' => 'Adgangskode',
'addServer.signIn' => 'Log ind',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonDe extends TranslationsCommonEn {
@override String get yes => 'Ja';
@override String get no => 'Nein';
@override String get delete => 'Löschen';
@override String get edit => 'Bearbeiten';
@override String get shuffle => 'Zufall';
@override String get addTo => 'Hinzufügen zu...';
@override String get createNew => 'Neu erstellen';
@@ -253,6 +254,8 @@ class _TranslationsSettingsDe extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Staffel- und Episodennummer auf Episodenkarten anzeigen';
@override String get showSeasonPostersOnTabs => 'Staffelposter auf Tabs anzeigen';
@override String get showSeasonPostersOnTabsDescription => 'Poster jeder Staffel über ihrem Tab anzeigen';
@override String get tvFullCardLayout => 'Vollflächige TV-Karten';
@override String get tvFullCardLayoutDescription => 'TV-Karten nur mit Bild verwenden und Darstellernamen einblenden';
@override String get hideSpoilers => 'Spoiler für nicht gesehene Episoden verbergen';
@override String get hideSpoilersDescription => 'Vorschaubilder und Beschreibungen ungesehener Episoden verwischen';
@override String get playerBackend => 'Player-Backend';
@@ -388,6 +391,8 @@ class _TranslationsSettingsDe extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'TV-Layout erzwingen. Für Geräte ohne automatische Erkennung. Neustart erforderlich.';
@override String get startInFullscreen => 'Im Vollbildmodus starten';
@override String get startInFullscreenDescription => 'Plezy beim Start im Vollbildmodus öffnen';
@override String get exitFullscreenOnPlayerClose => 'Vollbild beim Schließen des Players beenden';
@override String get exitFullscreenOnPlayerCloseDescription => 'Vollbildmodus automatisch beenden, wenn der Videoplayer geschlossen wird';
@override String get autoHidePerformanceOverlay => 'Leistungsoverlay automatisch ausblenden';
@override String get autoHidePerformanceOverlayDescription => 'Leistungsoverlay mit den Wiedergabesteuerungen ein-/ausblenden';
@override String get showNavBarLabels => 'Navigationsleisten-Beschriftungen anzeigen';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsDe extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Rotation entsperren';
@override String get timerActive => 'Schlaftimer aktiv';
@override String playbackWillPauseIn({required Object duration}) => 'Wiedergabe wird in ${duration} pausiert';
@override String get sleepTimerEndOfVideo => 'Ende des aktuellen Videos';
@override String get sleepTimerStopAtHeader => 'Beenden bei';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'Wiedergabe wird am Ende dieses Videos pausiert';
@override String get stillWatching => 'Schaust du noch?';
@override String pausingIn({required Object seconds}) => 'Pause in ${seconds}s';
@override String get continueWatching => 'Weiter';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsDe extends TranslationsVideoControlsEn {
@override String get pipActive => 'Wiedergabe im Bild-in-Bild-Modus';
@override String get pipFailed => 'Bild-in-Bild konnte nicht gestartet werden';
@override String get screenshotSaved => 'Screenshot gespeichert';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsDe pipErrors = _TranslationsVideoControlsPipErrorsDe._(_root);
@override String get chapters => 'Kapitel';
@override String get noChaptersAvailable => 'Keine Kapitel verfügbar';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsDe extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sitzung für ${name} abgelaufen';
@override String sessionExpiredMany({required Object count}) => 'Sitzungen für ${count} Server abgelaufen';
@override String get signInAgain => 'Erneut anmelden';
@override String get editJellyfinTitle => 'Jellyfin-Verbindung bearbeiten';
@override String editJellyfinIntro({required Object serverName}) => 'Füge URLs für ${serverName} hinzu oder entferne sie. Plezy verwendet die erreichbare URL mit der geringsten Latenz.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsDe extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Wiedergabegeschwindigkeit';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Schlaftimer';
@override String get audioSync => 'Audio-Synchronisation';
@override String get subtitleSync => 'Untertitel-Synchronisation';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerDe extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Jellyfin-Server hinzufügen';
@override String get jellyfinUrlIntro => 'Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas oder neue Zeilen. Plezy verwendet die erreichbare URL mit der geringsten Latenz.';
@override String get serverUrl => 'Server-URL';
@override String get serverUrls => 'Server-URLs';
@override String get findServer => 'Server finden';
@override String get searchingLocalServers => 'Suche nach lokalen Jellyfin-Servern...';
@override String get localServers => 'Lokale Jellyfin-Server';
@override String get username => 'Benutzername';
@override String get password => 'Passwort';
@override String get signIn => 'Anmelden';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsDe extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Geschwindigkeit erhöhen';
@override String get speedDecrease => 'Geschwindigkeit verringern';
@override String get speedReset => 'Geschwindigkeit zurücksetzen';
@override String get zoomIn => 'Vergrößern';
@override String get zoomOut => 'Verkleinern';
@override String get zoomReset => 'Zoom zurücksetzen';
@override String get subSeekNext => 'Zum nächsten Untertitel springen';
@override String get subSeekPrev => 'Zum vorherigen Untertitel springen';
@override String get shaderToggle => 'Shader umschalten';
@@ -1833,6 +1853,7 @@ extension on TranslationsDe {
'common.yes' => 'Ja',
'common.no' => 'Nein',
'common.delete' => 'Löschen',
'common.edit' => 'Bearbeiten',
'common.shuffle' => 'Zufall',
'common.addTo' => 'Hinzufügen zu...',
'common.createNew' => 'Neu erstellen',
@@ -1916,6 +1937,8 @@ extension on TranslationsDe {
'settings.showEpisodeNumberOnCardsDescription' => 'Staffel- und Episodennummer auf Episodenkarten anzeigen',
'settings.showSeasonPostersOnTabs' => 'Staffelposter auf Tabs anzeigen',
'settings.showSeasonPostersOnTabsDescription' => 'Poster jeder Staffel über ihrem Tab anzeigen',
'settings.tvFullCardLayout' => 'Vollflächige TV-Karten',
'settings.tvFullCardLayoutDescription' => 'TV-Karten nur mit Bild verwenden und Darstellernamen einblenden',
'settings.hideSpoilers' => 'Spoiler für nicht gesehene Episoden verbergen',
'settings.hideSpoilersDescription' => 'Vorschaubilder und Beschreibungen ungesehener Episoden verwischen',
'settings.playerBackend' => 'Player-Backend',
@@ -2051,6 +2074,8 @@ extension on TranslationsDe {
'settings.forceTvModeDescription' => 'TV-Layout erzwingen. Für Geräte ohne automatische Erkennung. Neustart erforderlich.',
'settings.startInFullscreen' => 'Im Vollbildmodus starten',
'settings.startInFullscreenDescription' => 'Plezy beim Start im Vollbildmodus öffnen',
'settings.exitFullscreenOnPlayerClose' => 'Vollbild beim Schließen des Players beenden',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Vollbildmodus automatisch beenden, wenn der Videoplayer geschlossen wird',
'settings.autoHidePerformanceOverlay' => 'Leistungsoverlay automatisch ausblenden',
'settings.autoHidePerformanceOverlayDescription' => 'Leistungsoverlay mit den Wiedergabesteuerungen ein-/ausblenden',
'settings.showNavBarLabels' => 'Navigationsleisten-Beschriftungen anzeigen',
@@ -2089,6 +2114,9 @@ extension on TranslationsDe {
'hotkeys.actions.speedIncrease' => 'Geschwindigkeit erhöhen',
'hotkeys.actions.speedDecrease' => 'Geschwindigkeit verringern',
'hotkeys.actions.speedReset' => 'Geschwindigkeit zurücksetzen',
'hotkeys.actions.zoomIn' => 'Vergrößern',
'hotkeys.actions.zoomOut' => 'Verkleinern',
'hotkeys.actions.zoomReset' => 'Zoom zurücksetzen',
'hotkeys.actions.subSeekNext' => 'Zum nächsten Untertitel springen',
'hotkeys.actions.subSeekPrev' => 'Zum vorherigen Untertitel springen',
'hotkeys.actions.shaderToggle' => 'Shader umschalten',
@@ -2172,6 +2200,10 @@ extension on TranslationsDe {
'videoControls.unlockRotation' => 'Rotation entsperren',
'videoControls.timerActive' => 'Schlaftimer aktiv',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Wiedergabe wird in ${duration} pausiert',
'videoControls.sleepTimerEndOfVideo' => 'Ende des aktuellen Videos',
'videoControls.sleepTimerStopAtHeader' => 'Beenden bei',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Wiedergabe wird am Ende dieses Videos pausiert',
'videoControls.stillWatching' => 'Schaust du noch?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pause in ${seconds}s',
'videoControls.continueWatching' => 'Weiter',
@@ -2214,6 +2246,7 @@ extension on TranslationsDe {
'videoControls.pipActive' => 'Wiedergabe im Bild-in-Bild-Modus',
'videoControls.pipFailed' => 'Bild-in-Bild konnte nicht gestartet werden',
'videoControls.screenshotSaved' => 'Screenshot gespeichert',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Erfordert Android 8.0 oder neuer',
'videoControls.pipErrors.iosVersion' => 'Erfordert iOS 15.0 oder neuer',
'videoControls.pipErrors.permissionDisabled' => 'Bild-in-Bild ist deaktiviert. Aktiviere es in den Systemeinstellungen.',
@@ -2300,6 +2333,8 @@ extension on TranslationsDe {
'mpvConfig.presetSaved' => 'Voreinstellung gespeichert',
'mpvConfig.presetLoaded' => 'Voreinstellung geladen',
'mpvConfig.presetDeleted' => 'Voreinstellung gelöscht',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Möchten Sie diese Voreinstellung wirklich löschen?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Aktion bestätigen',
@@ -2313,8 +2348,6 @@ extension on TranslationsDe {
'profiles.signOut' => 'Abmelden',
'profiles.signOutPlexTitle' => 'Von Plex abmelden?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '${displayName} und alle Plex Home-Benutzer entfernen? Du kannst dich jederzeit wieder anmelden.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Von Plex abgemeldet.',
'profiles.signOutFailed' => 'Abmeldung fehlgeschlagen.',
'profiles.sectionTitle' => 'Profile',
@@ -2369,6 +2402,8 @@ extension on TranslationsDe {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sitzung für ${name} abgelaufen',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sitzungen für ${count} Server abgelaufen',
'connections.signInAgain' => 'Erneut anmelden',
'connections.editJellyfinTitle' => 'Jellyfin-Verbindung bearbeiten',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Füge URLs für ${serverName} hinzu oder entferne sie. Plezy verwendet die erreichbare URL mit der geringsten Latenz.',
'discover.title' => 'Entdecken',
'discover.switchProfile' => 'Profil wechseln',
'discover.noContentAvailable' => 'Kein Inhalt verfügbar',
@@ -2789,6 +2824,7 @@ extension on TranslationsDe {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Auf Desktop suchen...',
'videoSettings.playbackSpeed' => 'Wiedergabegeschwindigkeit',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Schlaftimer',
'videoSettings.audioSync' => 'Audio-Synchronisation',
'videoSettings.subtitleSync' => 'Untertitel-Synchronisation',
@@ -2811,6 +2847,8 @@ extension on TranslationsDe {
'externalPlayer.off' => 'Aus',
'externalPlayer.launchFailed' => 'Externer Player konnte nicht geöffnet werden',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} ist nicht installiert',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'In externem Player abspielen',
'metadataEdit.editMetadata' => 'Bearbeiten...',
'metadataEdit.screenTitle' => 'Metadaten bearbeiten',
@@ -2827,8 +2865,6 @@ extension on TranslationsDe {
'metadataEdit.summary' => 'Zusammenfassung',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Hintergrund',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Quadratisches Bild',
'metadataEdit.selectPoster' => 'Poster auswählen',
@@ -2947,8 +2983,12 @@ extension on TranslationsDe {
'trackers.libraryFilter.noLibraries' => 'Keine Bibliotheken verfügbar',
'addServer.addJellyfinTitle' => 'Jellyfin-Server hinzufügen',
'addServer.jellyfinUrlIntro' => 'Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas oder neue Zeilen. Plezy verwendet die erreichbare URL mit der geringsten Latenz.',
'addServer.serverUrl' => 'Server-URL',
'addServer.serverUrls' => 'Server-URLs',
'addServer.findServer' => 'Server finden',
'addServer.searchingLocalServers' => 'Suche nach lokalen Jellyfin-Servern...',
'addServer.localServers' => 'Lokale Jellyfin-Server',
'addServer.username' => 'Benutzername',
'addServer.password' => 'Passwort',
'addServer.signIn' => 'Anmelden',
+84 -4
View File
@@ -209,6 +209,9 @@ class TranslationsCommonEn {
/// en: 'Delete'
String get delete => 'Delete';
/// en: 'Edit'
String get edit => 'Edit';
/// en: 'Shuffle'
String get shuffle => 'Shuffle';
@@ -485,6 +488,12 @@ class TranslationsSettingsEn {
/// en: 'Show each season's poster above its tab'
String get showSeasonPostersOnTabsDescription => 'Show each season\'s poster above its tab';
/// en: 'Full TV Cards'
String get tvFullCardLayout => 'Full TV Cards';
/// en: 'Use image-only TV cards with actor names overlaid'
String get tvFullCardLayoutDescription => 'Use image-only TV cards with actor names overlaid';
/// en: 'Hide Spoilers for Unwatched Episodes'
String get hideSpoilers => 'Hide Spoilers for Unwatched Episodes';
@@ -890,6 +899,12 @@ class TranslationsSettingsEn {
/// en: 'Open Plezy in fullscreen mode at launch'
String get startInFullscreenDescription => 'Open Plezy in fullscreen mode at launch';
/// en: 'Exit fullscreen on player close'
String get exitFullscreenOnPlayerClose => 'Exit fullscreen on player close';
/// en: 'Automatically exit fullscreen when closing the video player'
String get exitFullscreenOnPlayerCloseDescription => 'Automatically exit fullscreen when closing the video player';
/// en: 'Auto-Hide Performance Overlay'
String get autoHidePerformanceOverlay => 'Auto-Hide Performance Overlay';
@@ -1261,6 +1276,18 @@ class TranslationsVideoControlsEn {
/// en: 'Playback will pause in ${duration}'
String playbackWillPauseIn({required Object duration}) => 'Playback will pause in ${duration}';
/// en: 'End of current video'
String get sleepTimerEndOfVideo => 'End of current video';
/// en: 'Stop at'
String get sleepTimerStopAtHeader => 'Stop at';
/// en: 'Timer'
String get sleepTimerDurationHeader => 'Timer';
/// en: 'Playback will pause at the end of this video'
String get playbackWillPauseAtEnd => 'Playback will pause at the end of this video';
/// en: 'Still watching?'
String get stillWatching => 'Still watching?';
@@ -1387,6 +1414,9 @@ class TranslationsVideoControlsEn {
/// en: 'Screenshot saved'
String get screenshotSaved => 'Screenshot saved';
/// en: 'Zoom ${percent}%'
String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
late final TranslationsVideoControlsPipErrorsEn pipErrors = TranslationsVideoControlsPipErrorsEn.internal(_root);
/// en: 'Chapters'
@@ -1889,6 +1919,12 @@ class TranslationsConnectionsEn {
/// en: 'Sign in again'
String get signInAgain => 'Sign in again';
/// en: 'Edit Jellyfin connection'
String get editJellyfinTitle => 'Edit Jellyfin connection';
/// en: 'Add or remove URLs for ${serverName}. Plezy will use the reachable URL with the lowest latency.'
String editJellyfinIntro({required Object serverName}) => 'Add or remove URLs for ${serverName}. Plezy will use the reachable URL with the lowest latency.';
}
// Path: discover
@@ -3045,6 +3081,9 @@ class TranslationsVideoSettingsEn {
/// en: 'Playback Speed'
String get playbackSpeed => 'Playback Speed';
/// en: 'Zoom'
String get zoom => 'Zoom';
/// en: 'Sleep Timer'
String get sleepTimer => 'Sleep Timer';
@@ -3509,12 +3548,24 @@ class TranslationsAddServerEn {
/// en: 'Enter the server URL, e.g. `https://jellyfin.example.com`.'
String get jellyfinUrlIntro => 'Enter the server URL, e.g. `https://jellyfin.example.com`.';
/// en: 'Enter one or more server URLs, separated by commas or new lines. Plezy will use the reachable URL with the lowest latency.'
String get jellyfinUrlsIntro => 'Enter one or more server URLs, separated by commas or new lines. Plezy will use the reachable URL with the lowest latency.';
/// en: 'Server URL'
String get serverUrl => 'Server URL';
/// en: 'Server URLs'
String get serverUrls => 'Server URLs';
/// en: 'Find server'
String get findServer => 'Find server';
/// en: 'Looking for local Jellyfin servers...'
String get searchingLocalServers => 'Looking for local Jellyfin servers...';
/// en: 'Local Jellyfin servers'
String get localServers => 'Local Jellyfin servers';
/// en: 'Username'
String get username => 'Username';
@@ -3659,6 +3710,15 @@ class TranslationsHotkeysActionsEn {
/// en: 'Reset Speed'
String get speedReset => 'Reset Speed';
/// en: 'Zoom In'
String get zoomIn => 'Zoom In';
/// en: 'Zoom Out'
String get zoomOut => 'Zoom Out';
/// en: 'Reset Zoom'
String get zoomReset => 'Reset Zoom';
/// en: 'Seek to Next Subtitle'
String get subSeekNext => 'Seek to Next Subtitle';
@@ -4183,6 +4243,7 @@ extension on Translations {
'common.yes' => 'Yes',
'common.no' => 'No',
'common.delete' => 'Delete',
'common.edit' => 'Edit',
'common.shuffle' => 'Shuffle',
'common.addTo' => 'Add to...',
'common.createNew' => 'Create new',
@@ -4266,6 +4327,8 @@ extension on Translations {
'settings.showEpisodeNumberOnCardsDescription' => 'Show season and episode number on episode cards',
'settings.showSeasonPostersOnTabs' => 'Show Season Posters on Tabs',
'settings.showSeasonPostersOnTabsDescription' => 'Show each season\'s poster above its tab',
'settings.tvFullCardLayout' => 'Full TV Cards',
'settings.tvFullCardLayoutDescription' => 'Use image-only TV cards with actor names overlaid',
'settings.hideSpoilers' => 'Hide Spoilers for Unwatched Episodes',
'settings.hideSpoilersDescription' => 'Blur thumbnails and descriptions for unwatched episodes',
'settings.playerBackend' => 'Player Backend',
@@ -4401,6 +4464,8 @@ extension on Translations {
'settings.forceTvModeDescription' => 'Force TV layout. For devices that don\'t auto-detect. Requires restart.',
'settings.startInFullscreen' => 'Start in fullscreen',
'settings.startInFullscreenDescription' => 'Open Plezy in fullscreen mode at launch',
'settings.exitFullscreenOnPlayerClose' => 'Exit fullscreen on player close',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Automatically exit fullscreen when closing the video player',
'settings.autoHidePerformanceOverlay' => 'Auto-Hide Performance Overlay',
'settings.autoHidePerformanceOverlayDescription' => 'Fade the performance overlay with the playback controls',
'settings.showNavBarLabels' => 'Show Navigation Bar Labels',
@@ -4439,6 +4504,9 @@ extension on Translations {
'hotkeys.actions.speedIncrease' => 'Increase Speed',
'hotkeys.actions.speedDecrease' => 'Decrease Speed',
'hotkeys.actions.speedReset' => 'Reset Speed',
'hotkeys.actions.zoomIn' => 'Zoom In',
'hotkeys.actions.zoomOut' => 'Zoom Out',
'hotkeys.actions.zoomReset' => 'Reset Zoom',
'hotkeys.actions.subSeekNext' => 'Seek to Next Subtitle',
'hotkeys.actions.subSeekPrev' => 'Seek to Previous Subtitle',
'hotkeys.actions.shaderToggle' => 'Toggle Shaders',
@@ -4522,6 +4590,10 @@ extension on Translations {
'videoControls.unlockRotation' => 'Unlock rotation',
'videoControls.timerActive' => 'Timer Active',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Playback will pause in ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'End of current video',
'videoControls.sleepTimerStopAtHeader' => 'Stop at',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Playback will pause at the end of this video',
'videoControls.stillWatching' => 'Still watching?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausing in ${seconds}s',
'videoControls.continueWatching' => 'Continue',
@@ -4564,6 +4636,7 @@ extension on Translations {
'videoControls.pipActive' => 'Playing in Picture-in-Picture',
'videoControls.pipFailed' => 'Picture-in-picture failed to start',
'videoControls.screenshotSaved' => 'Screenshot saved',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Requires Android 8.0 or newer',
'videoControls.pipErrors.iosVersion' => 'Requires iOS 15.0 or newer',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture is disabled. Enable it in system settings.',
@@ -4650,6 +4723,8 @@ extension on Translations {
'mpvConfig.presetSaved' => 'Preset saved',
'mpvConfig.presetLoaded' => 'Preset loaded',
'mpvConfig.presetDeleted' => 'Preset deleted',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Are you sure you want to delete this preset?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Confirm Action',
@@ -4663,8 +4738,6 @@ extension on Translations {
'profiles.signOut' => 'Sign out',
'profiles.signOutPlexTitle' => 'Sign out of Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Remove ${displayName} and all Plex Home users? Sign back in anytime.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Signed out of Plex.',
'profiles.signOutFailed' => 'Sign out failed.',
'profiles.sectionTitle' => 'Profiles',
@@ -4719,6 +4792,8 @@ extension on Translations {
'connections.sessionExpiredOne' => ({required Object name}) => 'Session expired for ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Session expired for ${count} servers',
'connections.signInAgain' => 'Sign in again',
'connections.editJellyfinTitle' => 'Edit Jellyfin connection',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Add or remove URLs for ${serverName}. Plezy will use the reachable URL with the lowest latency.',
'discover.title' => 'Discover',
'discover.switchProfile' => 'Switch Profile',
'discover.noContentAvailable' => 'No content available',
@@ -5139,6 +5214,7 @@ extension on Translations {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Search on desktop...',
'videoSettings.playbackSpeed' => 'Playback Speed',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Sleep Timer',
'videoSettings.audioSync' => 'Audio Sync',
'videoSettings.subtitleSync' => 'Subtitle Sync',
@@ -5161,6 +5237,8 @@ extension on Translations {
'externalPlayer.off' => 'Off',
'externalPlayer.launchFailed' => 'Failed to open external player',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} is not installed',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Play in External Player',
'metadataEdit.editMetadata' => 'Edit...',
'metadataEdit.screenTitle' => 'Edit Metadata',
@@ -5177,8 +5255,6 @@ extension on Translations {
'metadataEdit.summary' => 'Summary',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Background',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Square Art',
'metadataEdit.selectPoster' => 'Select Poster',
@@ -5297,8 +5373,12 @@ extension on Translations {
'trackers.libraryFilter.noLibraries' => 'No libraries available',
'addServer.addJellyfinTitle' => 'Add Jellyfin server',
'addServer.jellyfinUrlIntro' => 'Enter the server URL, e.g. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Enter one or more server URLs, separated by commas or new lines. Plezy will use the reachable URL with the lowest latency.',
'addServer.serverUrl' => 'Server URL',
'addServer.serverUrls' => 'Server URLs',
'addServer.findServer' => 'Find server',
'addServer.searchingLocalServers' => 'Looking for local Jellyfin servers...',
'addServer.localServers' => 'Local Jellyfin servers',
'addServer.username' => 'Username',
'addServer.password' => 'Password',
'addServer.signIn' => 'Sign in',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonEs extends TranslationsCommonEn {
@override String get yes => 'Sí';
@override String get no => 'No';
@override String get delete => 'Eliminar';
@override String get edit => 'Editar';
@override String get shuffle => 'Aleatorio';
@override String get addTo => 'Añadir a...';
@override String get createNew => 'Crear';
@@ -253,6 +254,8 @@ class _TranslationsSettingsEs extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Mostrar temporada y episodio en tarjetas de episodio';
@override String get showSeasonPostersOnTabs => 'Mostrar pósters de temporada en las pestañas';
@override String get showSeasonPostersOnTabsDescription => 'Mostrar el póster de cada temporada sobre su pestaña';
@override String get tvFullCardLayout => 'Tarjetas TV completas';
@override String get tvFullCardLayoutDescription => 'Usar tarjetas TV solo con imagen y nombres de actores superpuestos';
@override String get hideSpoilers => 'Ocultar spoilers de episodios no vistos';
@override String get hideSpoilersDescription => 'Desenfocar miniaturas y descripciones de episodios no vistos';
@override String get playerBackend => 'Reproductor';
@@ -388,6 +391,8 @@ class _TranslationsSettingsEs extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Forzar diseño TV. Para dispositivos que no lo detectan. Requiere reinicio.';
@override String get startInFullscreen => 'Iniciar en pantalla completa';
@override String get startInFullscreenDescription => 'Abrir Plezy en modo pantalla completa al iniciar';
@override String get exitFullscreenOnPlayerClose => 'Salir de pantalla completa al cerrar el reproductor';
@override String get exitFullscreenOnPlayerCloseDescription => 'Salir automáticamente del modo de pantalla completa al cerrar el reproductor de vídeo';
@override String get autoHidePerformanceOverlay => 'Ocultar superposición de rendimiento automáticamente';
@override String get autoHidePerformanceOverlayDescription => 'Desvanecer la superposición de rendimiento con los controles de reproducción';
@override String get showNavBarLabels => 'Mostrar etiquetas de la barra de navegación';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsEs extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Desbloquear rotación';
@override String get timerActive => 'Temporizador Activo';
@override String playbackWillPauseIn({required Object duration}) => 'La reproducción se pausará en ${duration}';
@override String get sleepTimerEndOfVideo => 'Fin del video actual';
@override String get sleepTimerStopAtHeader => 'Detener en';
@override String get sleepTimerDurationHeader => 'Temporizador';
@override String get playbackWillPauseAtEnd => 'La reproducción se pausará al final de este video';
@override String get stillWatching => '¿Sigues viendo?';
@override String pausingIn({required Object seconds}) => 'Pausa en ${seconds}s';
@override String get continueWatching => 'Continuar';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsEs extends TranslationsVideoControlsEn {
@override String get pipActive => 'Reproduciendo en Imagen en Imagen';
@override String get pipFailed => 'Error al iniciar Imagen en Imagen';
@override String get screenshotSaved => 'Captura de pantalla guardada';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsEs pipErrors = _TranslationsVideoControlsPipErrorsEs._(_root);
@override String get chapters => 'Capítulos';
@override String get noChaptersAvailable => 'No hay capítulos disponibles';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsEs extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sesión caducada para ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sesión caducada para ${count} servidores';
@override String get signInAgain => 'Iniciar sesión de nuevo';
@override String get editJellyfinTitle => 'Editar conexión de Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Añade o elimina URL para ${serverName}. Plezy usará la URL accesible con menor latencia.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsEs extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Velocidad de reproducción';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Temporizador de apagado';
@override String get audioSync => 'Sincronización de audio';
@override String get subtitleSync => 'Sincronización de subtítulos';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerEs extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Añadir servidor Jellyfin';
@override String get jellyfinUrlIntro => 'Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Introduce una o más URL del servidor, separadas por comas o líneas nuevas. Plezy usará la URL accesible con menor latencia.';
@override String get serverUrl => 'URL del servidor';
@override String get serverUrls => 'URL del servidor';
@override String get findServer => 'Buscar servidor';
@override String get searchingLocalServers => 'Buscando servidores Jellyfin locales...';
@override String get localServers => 'Servidores Jellyfin locales';
@override String get username => 'Usuario';
@override String get password => 'Contraseña';
@override String get signIn => 'Iniciar sesión';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsEs extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Aumentar Velocidad';
@override String get speedDecrease => 'Disminuir Velocidad';
@override String get speedReset => 'Restablecer Velocidad';
@override String get zoomIn => 'Acercar';
@override String get zoomOut => 'Alejar';
@override String get zoomReset => 'Restablecer zoom';
@override String get subSeekNext => 'Ir al Siguiente Subtítulo';
@override String get subSeekPrev => 'Ir al Anterior Subtítulo';
@override String get shaderToggle => 'Alternar Shaders';
@@ -1833,6 +1853,7 @@ extension on TranslationsEs {
'common.yes' => 'Sí',
'common.no' => 'No',
'common.delete' => 'Eliminar',
'common.edit' => 'Editar',
'common.shuffle' => 'Aleatorio',
'common.addTo' => 'Añadir a...',
'common.createNew' => 'Crear',
@@ -1916,6 +1937,8 @@ extension on TranslationsEs {
'settings.showEpisodeNumberOnCardsDescription' => 'Mostrar temporada y episodio en tarjetas de episodio',
'settings.showSeasonPostersOnTabs' => 'Mostrar pósters de temporada en las pestañas',
'settings.showSeasonPostersOnTabsDescription' => 'Mostrar el póster de cada temporada sobre su pestaña',
'settings.tvFullCardLayout' => 'Tarjetas TV completas',
'settings.tvFullCardLayoutDescription' => 'Usar tarjetas TV solo con imagen y nombres de actores superpuestos',
'settings.hideSpoilers' => 'Ocultar spoilers de episodios no vistos',
'settings.hideSpoilersDescription' => 'Desenfocar miniaturas y descripciones de episodios no vistos',
'settings.playerBackend' => 'Reproductor',
@@ -2051,6 +2074,8 @@ extension on TranslationsEs {
'settings.forceTvModeDescription' => 'Forzar diseño TV. Para dispositivos que no lo detectan. Requiere reinicio.',
'settings.startInFullscreen' => 'Iniciar en pantalla completa',
'settings.startInFullscreenDescription' => 'Abrir Plezy en modo pantalla completa al iniciar',
'settings.exitFullscreenOnPlayerClose' => 'Salir de pantalla completa al cerrar el reproductor',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Salir automáticamente del modo de pantalla completa al cerrar el reproductor de vídeo',
'settings.autoHidePerformanceOverlay' => 'Ocultar superposición de rendimiento automáticamente',
'settings.autoHidePerformanceOverlayDescription' => 'Desvanecer la superposición de rendimiento con los controles de reproducción',
'settings.showNavBarLabels' => 'Mostrar etiquetas de la barra de navegación',
@@ -2089,6 +2114,9 @@ extension on TranslationsEs {
'hotkeys.actions.speedIncrease' => 'Aumentar Velocidad',
'hotkeys.actions.speedDecrease' => 'Disminuir Velocidad',
'hotkeys.actions.speedReset' => 'Restablecer Velocidad',
'hotkeys.actions.zoomIn' => 'Acercar',
'hotkeys.actions.zoomOut' => 'Alejar',
'hotkeys.actions.zoomReset' => 'Restablecer zoom',
'hotkeys.actions.subSeekNext' => 'Ir al Siguiente Subtítulo',
'hotkeys.actions.subSeekPrev' => 'Ir al Anterior Subtítulo',
'hotkeys.actions.shaderToggle' => 'Alternar Shaders',
@@ -2172,6 +2200,10 @@ extension on TranslationsEs {
'videoControls.unlockRotation' => 'Desbloquear rotación',
'videoControls.timerActive' => 'Temporizador Activo',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La reproducción se pausará en ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Fin del video actual',
'videoControls.sleepTimerStopAtHeader' => 'Detener en',
'videoControls.sleepTimerDurationHeader' => 'Temporizador',
'videoControls.playbackWillPauseAtEnd' => 'La reproducción se pausará al final de este video',
'videoControls.stillWatching' => '¿Sigues viendo?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausa en ${seconds}s',
'videoControls.continueWatching' => 'Continuar',
@@ -2214,6 +2246,7 @@ extension on TranslationsEs {
'videoControls.pipActive' => 'Reproduciendo en Imagen en Imagen',
'videoControls.pipFailed' => 'Error al iniciar Imagen en Imagen',
'videoControls.screenshotSaved' => 'Captura de pantalla guardada',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Requiere Android 8.0 o más reciente',
'videoControls.pipErrors.iosVersion' => 'Requiere iOS 15.0 o más reciente',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture está desactivado. Actívalo en los ajustes del sistema.',
@@ -2300,6 +2333,8 @@ extension on TranslationsEs {
'mpvConfig.presetSaved' => 'Ajuste guardado',
'mpvConfig.presetLoaded' => 'Ajuste cargado',
'mpvConfig.presetDeleted' => 'Ajuste eliminado',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => '¿Estás seguro de que quieres eliminar este ajuste?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Confirmar Acción',
@@ -2313,8 +2348,6 @@ extension on TranslationsEs {
'profiles.signOut' => 'Cerrar sesión',
'profiles.signOutPlexTitle' => '¿Cerrar sesión de Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '¿Eliminar ${displayName} y todos los usuarios de Plex Home? Puedes iniciar sesión de nuevo cuando quieras.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Sesión de Plex cerrada.',
'profiles.signOutFailed' => 'Error al cerrar sesión.',
'profiles.sectionTitle' => 'Perfiles',
@@ -2369,6 +2402,8 @@ extension on TranslationsEs {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sesión caducada para ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sesión caducada para ${count} servidores',
'connections.signInAgain' => 'Iniciar sesión de nuevo',
'connections.editJellyfinTitle' => 'Editar conexión de Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Añade o elimina URL para ${serverName}. Plezy usará la URL accesible con menor latencia.',
'discover.title' => 'Descubrir',
'discover.switchProfile' => 'Cambiar Perfil',
'discover.noContentAvailable' => 'No hay contenido disponible',
@@ -2789,6 +2824,7 @@ extension on TranslationsEs {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Buscar en escritorio...',
'videoSettings.playbackSpeed' => 'Velocidad de reproducción',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Temporizador de apagado',
'videoSettings.audioSync' => 'Sincronización de audio',
'videoSettings.subtitleSync' => 'Sincronización de subtítulos',
@@ -2811,6 +2847,8 @@ extension on TranslationsEs {
'externalPlayer.off' => 'Desactivado',
'externalPlayer.launchFailed' => 'No se pudo abrir el reproductor externo',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} no está instalado',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Reproducir en reproductor externo',
'metadataEdit.editMetadata' => 'Editar...',
'metadataEdit.screenTitle' => 'Editar metadatos',
@@ -2827,8 +2865,6 @@ extension on TranslationsEs {
'metadataEdit.summary' => 'Resumen',
'metadataEdit.poster' => 'Póster',
'metadataEdit.background' => 'Fondo',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Imagen cuadrada',
'metadataEdit.selectPoster' => 'Seleccionar póster',
@@ -2947,8 +2983,12 @@ extension on TranslationsEs {
'trackers.libraryFilter.noLibraries' => 'No hay bibliotecas disponibles',
'addServer.addJellyfinTitle' => 'Añadir servidor Jellyfin',
'addServer.jellyfinUrlIntro' => 'Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Introduce una o más URL del servidor, separadas por comas o líneas nuevas. Plezy usará la URL accesible con menor latencia.',
'addServer.serverUrl' => 'URL del servidor',
'addServer.serverUrls' => 'URL del servidor',
'addServer.findServer' => 'Buscar servidor',
'addServer.searchingLocalServers' => 'Buscando servidores Jellyfin locales...',
'addServer.localServers' => 'Servidores Jellyfin locales',
'addServer.username' => 'Usuario',
'addServer.password' => 'Contraseña',
'addServer.signIn' => 'Iniciar sesión',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonFr extends TranslationsCommonEn {
@override String get yes => 'Oui';
@override String get no => 'Non';
@override String get delete => 'Supprimer';
@override String get edit => 'Modifier';
@override String get shuffle => 'Mélanger';
@override String get addTo => 'Ajouter à...';
@override String get createNew => 'Créer';
@@ -253,6 +254,8 @@ class _TranslationsSettingsFr extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Afficher la saison et l\'épisode sur les cartes d\'épisode';
@override String get showSeasonPostersOnTabs => 'Afficher les posters de saison sur les onglets';
@override String get showSeasonPostersOnTabsDescription => 'Afficher l\'affiche de chaque saison au-dessus de son onglet';
@override String get tvFullCardLayout => 'Cartes TV pleines';
@override String get tvFullCardLayoutDescription => 'Utiliser des cartes TV avec image seule et noms des acteurs superposés';
@override String get hideSpoilers => 'Masquer les spoilers des épisodes non vus';
@override String get hideSpoilersDescription => 'Flouter les miniatures et descriptions des épisodes non vus';
@override String get playerBackend => 'Moteur de lecture';
@@ -388,6 +391,8 @@ class _TranslationsSettingsFr extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Forcer l\'interface TV. Pour appareils non détectés automatiquement. Redémarrage requis.';
@override String get startInFullscreen => 'Démarrer en plein écran';
@override String get startInFullscreenDescription => 'Ouvrir Plezy en mode plein écran au lancement';
@override String get exitFullscreenOnPlayerClose => 'Quitter le plein écran à la fermeture du lecteur';
@override String get exitFullscreenOnPlayerCloseDescription => 'Quitter automatiquement le plein écran lors de la fermeture du lecteur vidéo';
@override String get autoHidePerformanceOverlay => 'Masquer auto. superposition performances';
@override String get autoHidePerformanceOverlayDescription => 'Faire apparaître/disparaître la superposition avec les contrôles de lecture';
@override String get showNavBarLabels => 'Afficher les libellés de la barre de navigation';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsFr extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Déverrouiller la rotation';
@override String get timerActive => 'Minuterie active';
@override String playbackWillPauseIn({required Object duration}) => 'La lecture sera mise en pause dans ${duration}';
@override String get sleepTimerEndOfVideo => 'Fin de la vidéo actuelle';
@override String get sleepTimerStopAtHeader => 'Arrêter à';
@override String get sleepTimerDurationHeader => 'Minuterie';
@override String get playbackWillPauseAtEnd => 'La lecture sera mise en pause à la fin de cette vidéo';
@override String get stillWatching => 'Toujours en train de regarder ?';
@override String pausingIn({required Object seconds}) => 'Pause dans ${seconds}s';
@override String get continueWatching => 'Continuer';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsFr extends TranslationsVideoControlsEn {
@override String get pipActive => 'Lecture en mode image dans l\'image';
@override String get pipFailed => 'Échec du démarrage du mode image dans l\'image';
@override String get screenshotSaved => 'Capture d\'écran enregistrée';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent} %';
@override late final _TranslationsVideoControlsPipErrorsFr pipErrors = _TranslationsVideoControlsPipErrorsFr._(_root);
@override String get chapters => 'Chapitres';
@override String get noChaptersAvailable => 'Aucun chapitre disponible';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsFr extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Session expirée pour ${name}';
@override String sessionExpiredMany({required Object count}) => 'Session expirée pour ${count} serveurs';
@override String get signInAgain => 'Se reconnecter';
@override String get editJellyfinTitle => 'Modifier la connexion Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Ajoutez ou supprimez des URL pour ${serverName}. Plezy utilisera l\'URL joignable avec la latence la plus faible.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsFr extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Vitesse de lecture';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Minuterie de mise en veille';
@override String get audioSync => 'Synchronisation audio';
@override String get subtitleSync => 'Synchronisation des sous-titres';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerFr extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Ajouter un serveur Jellyfin';
@override String get jellyfinUrlIntro => 'Saisissez l\'URL du serveur, par ex. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Saisissez une ou plusieurs URL de serveur, séparées par des virgules ou des retours à la ligne. Plezy utilisera l\'URL joignable avec la latence la plus faible.';
@override String get serverUrl => 'URL du serveur';
@override String get serverUrls => 'URL du serveur';
@override String get findServer => 'Rechercher un serveur';
@override String get searchingLocalServers => 'Recherche de serveurs Jellyfin locaux...';
@override String get localServers => 'Serveurs Jellyfin locaux';
@override String get username => 'Nom d\'utilisateur';
@override String get password => 'Mot de passe';
@override String get signIn => 'Se connecter';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsFr extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Augmenter la vitesse';
@override String get speedDecrease => 'Réduire la vitesse';
@override String get speedReset => 'Réinitialiser la vitesse';
@override String get zoomIn => 'Zoom avant';
@override String get zoomOut => 'Zoom arrière';
@override String get zoomReset => 'Réinitialiser le zoom';
@override String get subSeekNext => 'Rechercher le sous-titre suivant';
@override String get subSeekPrev => 'Rechercher le sous-titre précédent';
@override String get shaderToggle => 'Activer/désactiver les shaders';
@@ -1833,6 +1853,7 @@ extension on TranslationsFr {
'common.yes' => 'Oui',
'common.no' => 'Non',
'common.delete' => 'Supprimer',
'common.edit' => 'Modifier',
'common.shuffle' => 'Mélanger',
'common.addTo' => 'Ajouter à...',
'common.createNew' => 'Créer',
@@ -1916,6 +1937,8 @@ extension on TranslationsFr {
'settings.showEpisodeNumberOnCardsDescription' => 'Afficher la saison et l\'épisode sur les cartes d\'épisode',
'settings.showSeasonPostersOnTabs' => 'Afficher les posters de saison sur les onglets',
'settings.showSeasonPostersOnTabsDescription' => 'Afficher l\'affiche de chaque saison au-dessus de son onglet',
'settings.tvFullCardLayout' => 'Cartes TV pleines',
'settings.tvFullCardLayoutDescription' => 'Utiliser des cartes TV avec image seule et noms des acteurs superposés',
'settings.hideSpoilers' => 'Masquer les spoilers des épisodes non vus',
'settings.hideSpoilersDescription' => 'Flouter les miniatures et descriptions des épisodes non vus',
'settings.playerBackend' => 'Moteur de lecture',
@@ -2051,6 +2074,8 @@ extension on TranslationsFr {
'settings.forceTvModeDescription' => 'Forcer l\'interface TV. Pour appareils non détectés automatiquement. Redémarrage requis.',
'settings.startInFullscreen' => 'Démarrer en plein écran',
'settings.startInFullscreenDescription' => 'Ouvrir Plezy en mode plein écran au lancement',
'settings.exitFullscreenOnPlayerClose' => 'Quitter le plein écran à la fermeture du lecteur',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Quitter automatiquement le plein écran lors de la fermeture du lecteur vidéo',
'settings.autoHidePerformanceOverlay' => 'Masquer auto. superposition performances',
'settings.autoHidePerformanceOverlayDescription' => 'Faire apparaître/disparaître la superposition avec les contrôles de lecture',
'settings.showNavBarLabels' => 'Afficher les libellés de la barre de navigation',
@@ -2089,6 +2114,9 @@ extension on TranslationsFr {
'hotkeys.actions.speedIncrease' => 'Augmenter la vitesse',
'hotkeys.actions.speedDecrease' => 'Réduire la vitesse',
'hotkeys.actions.speedReset' => 'Réinitialiser la vitesse',
'hotkeys.actions.zoomIn' => 'Zoom avant',
'hotkeys.actions.zoomOut' => 'Zoom arrière',
'hotkeys.actions.zoomReset' => 'Réinitialiser le zoom',
'hotkeys.actions.subSeekNext' => 'Rechercher le sous-titre suivant',
'hotkeys.actions.subSeekPrev' => 'Rechercher le sous-titre précédent',
'hotkeys.actions.shaderToggle' => 'Activer/désactiver les shaders',
@@ -2172,6 +2200,10 @@ extension on TranslationsFr {
'videoControls.unlockRotation' => 'Déverrouiller la rotation',
'videoControls.timerActive' => 'Minuterie active',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La lecture sera mise en pause dans ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Fin de la vidéo actuelle',
'videoControls.sleepTimerStopAtHeader' => 'Arrêter à',
'videoControls.sleepTimerDurationHeader' => 'Minuterie',
'videoControls.playbackWillPauseAtEnd' => 'La lecture sera mise en pause à la fin de cette vidéo',
'videoControls.stillWatching' => 'Toujours en train de regarder ?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pause dans ${seconds}s',
'videoControls.continueWatching' => 'Continuer',
@@ -2214,6 +2246,7 @@ extension on TranslationsFr {
'videoControls.pipActive' => 'Lecture en mode image dans l\'image',
'videoControls.pipFailed' => 'Échec du démarrage du mode image dans l\'image',
'videoControls.screenshotSaved' => 'Capture d\'écran enregistrée',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent} %',
'videoControls.pipErrors.androidVersion' => 'Nécessite Android 8.0 ou plus récent',
'videoControls.pipErrors.iosVersion' => 'Nécessite iOS 15.0 ou plus récent',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture est désactivé. Activez-le dans les paramètres système.',
@@ -2300,6 +2333,8 @@ extension on TranslationsFr {
'mpvConfig.presetSaved' => 'Préréglage enregistré',
'mpvConfig.presetLoaded' => 'Préréglage chargé',
'mpvConfig.presetDeleted' => 'Préréglage supprimé',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Êtes-vous sûr de vouloir supprimer ce préréglage ?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Confirmer l\'action',
@@ -2313,8 +2348,6 @@ extension on TranslationsFr {
'profiles.signOut' => 'Se déconnecter',
'profiles.signOutPlexTitle' => 'Se déconnecter de Plex ?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Supprimer ${displayName} et tous les utilisateurs Plex Home ? Reconnexion possible à tout moment.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Déconnecté de Plex.',
'profiles.signOutFailed' => 'Échec de la déconnexion.',
'profiles.sectionTitle' => 'Profils',
@@ -2369,6 +2402,8 @@ extension on TranslationsFr {
'connections.sessionExpiredOne' => ({required Object name}) => 'Session expirée pour ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Session expirée pour ${count} serveurs',
'connections.signInAgain' => 'Se reconnecter',
'connections.editJellyfinTitle' => 'Modifier la connexion Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Ajoutez ou supprimez des URL pour ${serverName}. Plezy utilisera l\'URL joignable avec la latence la plus faible.',
'discover.title' => 'Découvrez',
'discover.switchProfile' => 'Changer de profil',
'discover.noContentAvailable' => 'Aucun contenu disponible',
@@ -2789,6 +2824,7 @@ extension on TranslationsFr {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Rechercher sur le bureau...',
'videoSettings.playbackSpeed' => 'Vitesse de lecture',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Minuterie de mise en veille',
'videoSettings.audioSync' => 'Synchronisation audio',
'videoSettings.subtitleSync' => 'Synchronisation des sous-titres',
@@ -2811,6 +2847,8 @@ extension on TranslationsFr {
'externalPlayer.off' => 'Désactivé',
'externalPlayer.launchFailed' => 'Impossible d\'ouvrir le lecteur externe',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} n\'est pas installé',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Lire dans un lecteur externe',
'metadataEdit.editMetadata' => 'Modifier...',
'metadataEdit.screenTitle' => 'Modifier les métadonnées',
@@ -2827,8 +2865,6 @@ extension on TranslationsFr {
'metadataEdit.summary' => 'Résumé',
'metadataEdit.poster' => 'Affiche',
'metadataEdit.background' => 'Arrière-plan',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Image carrée',
'metadataEdit.selectPoster' => 'Sélectionner l\'affiche',
@@ -2947,8 +2983,12 @@ extension on TranslationsFr {
'trackers.libraryFilter.noLibraries' => 'Aucune bibliothèque disponible',
'addServer.addJellyfinTitle' => 'Ajouter un serveur Jellyfin',
'addServer.jellyfinUrlIntro' => 'Saisissez l\'URL du serveur, par ex. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Saisissez une ou plusieurs URL de serveur, séparées par des virgules ou des retours à la ligne. Plezy utilisera l\'URL joignable avec la latence la plus faible.',
'addServer.serverUrl' => 'URL du serveur',
'addServer.serverUrls' => 'URL du serveur',
'addServer.findServer' => 'Rechercher un serveur',
'addServer.searchingLocalServers' => 'Recherche de serveurs Jellyfin locaux...',
'addServer.localServers' => 'Serveurs Jellyfin locaux',
'addServer.username' => 'Nom d\'utilisateur',
'addServer.password' => 'Mot de passe',
'addServer.signIn' => 'Se connecter',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonIt extends TranslationsCommonEn {
@override String get yes => 'Sì';
@override String get no => 'No';
@override String get delete => 'Elimina';
@override String get edit => 'Modifica';
@override String get shuffle => 'Casuale';
@override String get addTo => 'Aggiungi a...';
@override String get createNew => 'Crea';
@@ -253,6 +254,8 @@ class _TranslationsSettingsIt extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Mostra stagione ed episodio sulle schede episodio';
@override String get showSeasonPostersOnTabs => 'Mostra poster delle stagioni sulle schede';
@override String get showSeasonPostersOnTabsDescription => 'Mostra il poster di ogni stagione sopra la sua scheda';
@override String get tvFullCardLayout => 'Schede TV piene';
@override String get tvFullCardLayoutDescription => 'Usa schede TV solo immagine con i nomi degli attori sovrapposti';
@override String get hideSpoilers => 'Nascondi spoiler per episodi non visti';
@override String get hideSpoilersDescription => 'Sfoca miniature e descrizioni degli episodi non visti';
@override String get playerBackend => 'Motore di riproduzione';
@@ -388,6 +391,8 @@ class _TranslationsSettingsIt extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Forza layout TV. Per dispositivi non rilevati automaticamente. Richiede riavvio.';
@override String get startInFullscreen => 'Avvia a schermo intero';
@override String get startInFullscreenDescription => 'Apri Plezy a schermo intero all\'avvio';
@override String get exitFullscreenOnPlayerClose => 'Esci dallo schermo intero alla chiusura del player';
@override String get exitFullscreenOnPlayerCloseDescription => 'Esci automaticamente dallo schermo intero quando il lettore video viene chiuso';
@override String get autoHidePerformanceOverlay => 'Nascondi automaticamente overlay prestazioni';
@override String get autoHidePerformanceOverlayDescription => 'Dissolvi l\'overlay prestazioni con i controlli di riproduzione';
@override String get showNavBarLabels => 'Mostra etichette barra di navigazione';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsIt extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Sblocca rotazione';
@override String get timerActive => 'Timer attivo';
@override String playbackWillPauseIn({required Object duration}) => 'La riproduzione si interromperà tra ${duration}';
@override String get sleepTimerEndOfVideo => 'Fine del video corrente';
@override String get sleepTimerStopAtHeader => 'Interrompi a';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'La riproduzione si interromperà alla fine di questo video';
@override String get stillWatching => 'Stai ancora guardando?';
@override String pausingIn({required Object seconds}) => 'Pausa tra ${seconds}s';
@override String get continueWatching => 'Continua';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsIt extends TranslationsVideoControlsEn {
@override String get pipActive => 'Riproduzione in Picture-in-Picture';
@override String get pipFailed => 'Impossibile avviare la modalità Picture-in-Picture';
@override String get screenshotSaved => 'Schermata salvata';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsIt pipErrors = _TranslationsVideoControlsPipErrorsIt._(_root);
@override String get chapters => 'Capitoli';
@override String get noChaptersAvailable => 'Nessun capitolo disponibile';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsIt extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sessione scaduta per ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sessione scaduta per ${count} server';
@override String get signInAgain => 'Accedi di nuovo';
@override String get editJellyfinTitle => 'Modifica connessione Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Aggiungi o rimuovi URL per ${serverName}. Plezy userà l\'URL raggiungibile con la latenza più bassa.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsIt extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Velocità di riproduzione';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Timer di spegnimento';
@override String get audioSync => 'Sincronizzazione audio';
@override String get subtitleSync => 'Sincronizzazione sottotitoli';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerIt extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Aggiungi server Jellyfin';
@override String get jellyfinUrlIntro => 'Inserisci l\'URL del server, es. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Inserisci uno o più URL del server, separati da virgole o nuove righe. Plezy userà l\'URL raggiungibile con la latenza più bassa.';
@override String get serverUrl => 'URL del server';
@override String get serverUrls => 'URL del server';
@override String get findServer => 'Trova server';
@override String get searchingLocalServers => 'Ricerca server Jellyfin locali...';
@override String get localServers => 'Server Jellyfin locali';
@override String get username => 'Nome utente';
@override String get password => 'Password';
@override String get signIn => 'Accedi';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsIt extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Aumenta velocità';
@override String get speedDecrease => 'Diminuisci velocità';
@override String get speedReset => 'Ripristina velocità';
@override String get zoomIn => 'Aumenta zoom';
@override String get zoomOut => 'Riduci zoom';
@override String get zoomReset => 'Ripristina zoom';
@override String get subSeekNext => 'Vai al sottotitolo successivo';
@override String get subSeekPrev => 'Vai al sottotitolo precedente';
@override String get shaderToggle => 'Attiva/disattiva shader';
@@ -1833,6 +1853,7 @@ extension on TranslationsIt {
'common.yes' => 'Sì',
'common.no' => 'No',
'common.delete' => 'Elimina',
'common.edit' => 'Modifica',
'common.shuffle' => 'Casuale',
'common.addTo' => 'Aggiungi a...',
'common.createNew' => 'Crea',
@@ -1916,6 +1937,8 @@ extension on TranslationsIt {
'settings.showEpisodeNumberOnCardsDescription' => 'Mostra stagione ed episodio sulle schede episodio',
'settings.showSeasonPostersOnTabs' => 'Mostra poster delle stagioni sulle schede',
'settings.showSeasonPostersOnTabsDescription' => 'Mostra il poster di ogni stagione sopra la sua scheda',
'settings.tvFullCardLayout' => 'Schede TV piene',
'settings.tvFullCardLayoutDescription' => 'Usa schede TV solo immagine con i nomi degli attori sovrapposti',
'settings.hideSpoilers' => 'Nascondi spoiler per episodi non visti',
'settings.hideSpoilersDescription' => 'Sfoca miniature e descrizioni degli episodi non visti',
'settings.playerBackend' => 'Motore di riproduzione',
@@ -2051,6 +2074,8 @@ extension on TranslationsIt {
'settings.forceTvModeDescription' => 'Forza layout TV. Per dispositivi non rilevati automaticamente. Richiede riavvio.',
'settings.startInFullscreen' => 'Avvia a schermo intero',
'settings.startInFullscreenDescription' => 'Apri Plezy a schermo intero all\'avvio',
'settings.exitFullscreenOnPlayerClose' => 'Esci dallo schermo intero alla chiusura del player',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Esci automaticamente dallo schermo intero quando il lettore video viene chiuso',
'settings.autoHidePerformanceOverlay' => 'Nascondi automaticamente overlay prestazioni',
'settings.autoHidePerformanceOverlayDescription' => 'Dissolvi l\'overlay prestazioni con i controlli di riproduzione',
'settings.showNavBarLabels' => 'Mostra etichette barra di navigazione',
@@ -2089,6 +2114,9 @@ extension on TranslationsIt {
'hotkeys.actions.speedIncrease' => 'Aumenta velocità',
'hotkeys.actions.speedDecrease' => 'Diminuisci velocità',
'hotkeys.actions.speedReset' => 'Ripristina velocità',
'hotkeys.actions.zoomIn' => 'Aumenta zoom',
'hotkeys.actions.zoomOut' => 'Riduci zoom',
'hotkeys.actions.zoomReset' => 'Ripristina zoom',
'hotkeys.actions.subSeekNext' => 'Vai al sottotitolo successivo',
'hotkeys.actions.subSeekPrev' => 'Vai al sottotitolo precedente',
'hotkeys.actions.shaderToggle' => 'Attiva/disattiva shader',
@@ -2172,6 +2200,10 @@ extension on TranslationsIt {
'videoControls.unlockRotation' => 'Sblocca rotazione',
'videoControls.timerActive' => 'Timer attivo',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La riproduzione si interromperà tra ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Fine del video corrente',
'videoControls.sleepTimerStopAtHeader' => 'Interrompi a',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'La riproduzione si interromperà alla fine di questo video',
'videoControls.stillWatching' => 'Stai ancora guardando?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausa tra ${seconds}s',
'videoControls.continueWatching' => 'Continua',
@@ -2214,6 +2246,7 @@ extension on TranslationsIt {
'videoControls.pipActive' => 'Riproduzione in Picture-in-Picture',
'videoControls.pipFailed' => 'Impossibile avviare la modalità Picture-in-Picture',
'videoControls.screenshotSaved' => 'Schermata salvata',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Richiede Android 8.0 o versioni successive',
'videoControls.pipErrors.iosVersion' => 'Richiede iOS 15.0 o versioni successive',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture è disattivato. Attivalo nelle impostazioni di sistema.',
@@ -2300,6 +2333,8 @@ extension on TranslationsIt {
'mpvConfig.presetSaved' => 'Preset salvato',
'mpvConfig.presetLoaded' => 'Preset caricato',
'mpvConfig.presetDeleted' => 'Preset eliminato',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Sei sicuro di voler eliminare questo preset?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Conferma azione',
@@ -2313,8 +2348,6 @@ extension on TranslationsIt {
'profiles.signOut' => 'Esci',
'profiles.signOutPlexTitle' => 'Uscire da Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Rimuovere ${displayName} e tutti gli utenti Plex Home? Puoi accedere di nuovo quando vuoi.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Uscito da Plex.',
'profiles.signOutFailed' => 'Uscita non riuscita.',
'profiles.sectionTitle' => 'Profili',
@@ -2369,6 +2402,8 @@ extension on TranslationsIt {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sessione scaduta per ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sessione scaduta per ${count} server',
'connections.signInAgain' => 'Accedi di nuovo',
'connections.editJellyfinTitle' => 'Modifica connessione Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Aggiungi o rimuovi URL per ${serverName}. Plezy userà l\'URL raggiungibile con la latenza più bassa.',
'discover.title' => 'Esplora',
'discover.switchProfile' => 'Cambia profilo',
'discover.noContentAvailable' => 'Nessun contenuto disponibile',
@@ -2789,6 +2824,7 @@ extension on TranslationsIt {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Cerca sul desktop...',
'videoSettings.playbackSpeed' => 'Velocità di riproduzione',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Timer di spegnimento',
'videoSettings.audioSync' => 'Sincronizzazione audio',
'videoSettings.subtitleSync' => 'Sincronizzazione sottotitoli',
@@ -2811,6 +2847,8 @@ extension on TranslationsIt {
'externalPlayer.off' => 'Disattivato',
'externalPlayer.launchFailed' => 'Impossibile aprire il lettore esterno',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} non è installato',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Riproduci in lettore esterno',
'metadataEdit.editMetadata' => 'Modifica...',
'metadataEdit.screenTitle' => 'Modifica metadati',
@@ -2827,8 +2865,6 @@ extension on TranslationsIt {
'metadataEdit.summary' => 'Trama',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Sfondo',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Immagine quadrata',
'metadataEdit.selectPoster' => 'Seleziona poster',
@@ -2947,8 +2983,12 @@ extension on TranslationsIt {
'trackers.libraryFilter.noLibraries' => 'Nessuna libreria disponibile',
'addServer.addJellyfinTitle' => 'Aggiungi server Jellyfin',
'addServer.jellyfinUrlIntro' => 'Inserisci l\'URL del server, es. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Inserisci uno o più URL del server, separati da virgole o nuove righe. Plezy userà l\'URL raggiungibile con la latenza più bassa.',
'addServer.serverUrl' => 'URL del server',
'addServer.serverUrls' => 'URL del server',
'addServer.findServer' => 'Trova server',
'addServer.searchingLocalServers' => 'Ricerca server Jellyfin locali...',
'addServer.localServers' => 'Server Jellyfin locali',
'addServer.username' => 'Nome utente',
'addServer.password' => 'Password',
'addServer.signIn' => 'Accedi',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonJa extends TranslationsCommonEn {
@override String get yes => 'はい';
@override String get no => 'いいえ';
@override String get delete => '削除';
@override String get edit => '編集';
@override String get shuffle => 'シャッフル';
@override String get addTo => '追加...';
@override String get createNew => '新規作成';
@@ -253,6 +254,8 @@ class _TranslationsSettingsJa extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'エピソードカードにシーズン番号とエピソード番号を表示します';
@override String get showSeasonPostersOnTabs => 'タブにシーズンポスターを表示';
@override String get showSeasonPostersOnTabsDescription => '各シーズンのポスターをタブの上に表示します';
@override String get tvFullCardLayout => 'フルTVカード';
@override String get tvFullCardLayoutDescription => 'TVカードを画像のみで表示し、俳優名を重ねて表示します';
@override String get hideSpoilers => '未視聴エピソードのネタバレを非表示';
@override String get hideSpoilersDescription => '未視聴エピソードのサムネイルと説明をぼかします';
@override String get playerBackend => 'プレーヤーバックエンド';
@@ -388,6 +391,8 @@ class _TranslationsSettingsJa extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'TVレイアウトを強制します。自動検出しないデバイス向けです。再起動が必要です。';
@override String get startInFullscreen => '全画面表示で起動';
@override String get startInFullscreenDescription => '起動時にPlezyを全画面モードで開きます';
@override String get exitFullscreenOnPlayerClose => 'プレイヤーを閉じたときに全画面を終了';
@override String get exitFullscreenOnPlayerCloseDescription => 'ビデオプレイヤーを閉じたときに自動的に全画面モードを終了します';
@override String get autoHidePerformanceOverlay => 'パフォーマンスオーバーレイを自動非表示';
@override String get autoHidePerformanceOverlayDescription => '再生コントロールと一緒にパフォーマンスオーバーレイをフェードする';
@override String get showNavBarLabels => 'ナビゲーションバーラベルを表示';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsJa extends TranslationsVideoControlsEn {
@override String get unlockRotation => '回転のロックを解除';
@override String get timerActive => 'タイマー動作中';
@override String playbackWillPauseIn({required Object duration}) => '再生は${duration}後に一時停止します';
@override String get sleepTimerEndOfVideo => '現在の動画の最後';
@override String get sleepTimerStopAtHeader => '停止のタイミング';
@override String get sleepTimerDurationHeader => 'タイマー';
@override String get playbackWillPauseAtEnd => '再生はこの動画の最後に一時停止します';
@override String get stillWatching => 'まだ視聴中ですか?';
@override String pausingIn({required Object seconds}) => '${seconds}秒後に一時停止';
@override String get continueWatching => '続ける';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsJa extends TranslationsVideoControlsEn {
@override String get pipActive => 'ピクチャーインピクチャーで再生中';
@override String get pipFailed => 'ピクチャーインピクチャーの開始に失敗しました';
@override String get screenshotSaved => 'スクリーンショットを保存しました';
@override String zoomPercent({required Object percent}) => 'ズーム ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsJa pipErrors = _TranslationsVideoControlsPipErrorsJa._(_root);
@override String get chapters => 'チャプター';
@override String get noChaptersAvailable => 'チャプターがありません';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsJa extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => '${name} のセッションの有効期限が切れました';
@override String sessionExpiredMany({required Object count}) => '${count} 台のサーバーのセッションの有効期限が切れました';
@override String get signInAgain => '再度サインイン';
@override String get editJellyfinTitle => 'Jellyfin接続を編集';
@override String editJellyfinIntro({required Object serverName}) => '${serverName} のURLを追加または削除します。Plezyは到達可能なURLのうち最も低遅延のものを使用します。';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsJa extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => '再生速度';
@override String get zoom => 'ズーム';
@override String get sleepTimer => 'スリープタイマー';
@override String get audioSync => '音声同期';
@override String get subtitleSync => '字幕同期';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerJa extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Jellyfinサーバーを追加';
@override String get jellyfinUrlIntro => 'サーバーURLを入力してください。例: `https://jellyfin.example.com`。';
@override String get jellyfinUrlsIntro => 'サーバーURLを1つ以上、カンマまたは改行で区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。';
@override String get serverUrl => 'サーバーURL';
@override String get serverUrls => 'サーバーURL';
@override String get findServer => 'サーバーを検索';
@override String get searchingLocalServers => 'ローカル Jellyfin サーバーを検索中...';
@override String get localServers => 'ローカル Jellyfin サーバー';
@override String get username => 'ユーザー名';
@override String get password => 'パスワード';
@override String get signIn => 'サインイン';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsJa extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => '速度を上げる';
@override String get speedDecrease => '速度を下げる';
@override String get speedReset => '速度をリセット';
@override String get zoomIn => 'ズームイン';
@override String get zoomOut => 'ズームアウト';
@override String get zoomReset => 'ズームをリセット';
@override String get subSeekNext => '次の字幕にシーク';
@override String get subSeekPrev => '前の字幕にシーク';
@override String get shaderToggle => 'シェーダー切替';
@@ -1833,6 +1853,7 @@ extension on TranslationsJa {
'common.yes' => 'はい',
'common.no' => 'いいえ',
'common.delete' => '削除',
'common.edit' => '編集',
'common.shuffle' => 'シャッフル',
'common.addTo' => '追加...',
'common.createNew' => '新規作成',
@@ -1916,6 +1937,8 @@ extension on TranslationsJa {
'settings.showEpisodeNumberOnCardsDescription' => 'エピソードカードにシーズン番号とエピソード番号を表示します',
'settings.showSeasonPostersOnTabs' => 'タブにシーズンポスターを表示',
'settings.showSeasonPostersOnTabsDescription' => '各シーズンのポスターをタブの上に表示します',
'settings.tvFullCardLayout' => 'フルTVカード',
'settings.tvFullCardLayoutDescription' => 'TVカードを画像のみで表示し、俳優名を重ねて表示します',
'settings.hideSpoilers' => '未視聴エピソードのネタバレを非表示',
'settings.hideSpoilersDescription' => '未視聴エピソードのサムネイルと説明をぼかします',
'settings.playerBackend' => 'プレーヤーバックエンド',
@@ -2051,6 +2074,8 @@ extension on TranslationsJa {
'settings.forceTvModeDescription' => 'TVレイアウトを強制します。自動検出しないデバイス向けです。再起動が必要です。',
'settings.startInFullscreen' => '全画面表示で起動',
'settings.startInFullscreenDescription' => '起動時にPlezyを全画面モードで開きます',
'settings.exitFullscreenOnPlayerClose' => 'プレイヤーを閉じたときに全画面を終了',
'settings.exitFullscreenOnPlayerCloseDescription' => 'ビデオプレイヤーを閉じたときに自動的に全画面モードを終了します',
'settings.autoHidePerformanceOverlay' => 'パフォーマンスオーバーレイを自動非表示',
'settings.autoHidePerformanceOverlayDescription' => '再生コントロールと一緒にパフォーマンスオーバーレイをフェードする',
'settings.showNavBarLabels' => 'ナビゲーションバーラベルを表示',
@@ -2089,6 +2114,9 @@ extension on TranslationsJa {
'hotkeys.actions.speedIncrease' => '速度を上げる',
'hotkeys.actions.speedDecrease' => '速度を下げる',
'hotkeys.actions.speedReset' => '速度をリセット',
'hotkeys.actions.zoomIn' => 'ズームイン',
'hotkeys.actions.zoomOut' => 'ズームアウト',
'hotkeys.actions.zoomReset' => 'ズームをリセット',
'hotkeys.actions.subSeekNext' => '次の字幕にシーク',
'hotkeys.actions.subSeekPrev' => '前の字幕にシーク',
'hotkeys.actions.shaderToggle' => 'シェーダー切替',
@@ -2172,6 +2200,10 @@ extension on TranslationsJa {
'videoControls.unlockRotation' => '回転のロックを解除',
'videoControls.timerActive' => 'タイマー動作中',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '再生は${duration}後に一時停止します',
'videoControls.sleepTimerEndOfVideo' => '現在の動画の最後',
'videoControls.sleepTimerStopAtHeader' => '停止のタイミング',
'videoControls.sleepTimerDurationHeader' => 'タイマー',
'videoControls.playbackWillPauseAtEnd' => '再生はこの動画の最後に一時停止します',
'videoControls.stillWatching' => 'まだ視聴中ですか?',
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}秒後に一時停止',
'videoControls.continueWatching' => '続ける',
@@ -2214,6 +2246,7 @@ extension on TranslationsJa {
'videoControls.pipActive' => 'ピクチャーインピクチャーで再生中',
'videoControls.pipFailed' => 'ピクチャーインピクチャーの開始に失敗しました',
'videoControls.screenshotSaved' => 'スクリーンショットを保存しました',
'videoControls.zoomPercent' => ({required Object percent}) => 'ズーム ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Android 8.0以降が必要です',
'videoControls.pipErrors.iosVersion' => 'iOS 15.0以降が必要です',
'videoControls.pipErrors.permissionDisabled' => 'ピクチャーインピクチャーが無効です。システム設定で有効にしてください。',
@@ -2300,6 +2333,8 @@ extension on TranslationsJa {
'mpvConfig.presetSaved' => 'プリセットを保存しました',
'mpvConfig.presetLoaded' => 'プリセットを読み込みました',
'mpvConfig.presetDeleted' => 'プリセットを削除しました',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'このプリセットを削除してもよろしいですか?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => '操作の確認',
@@ -2313,8 +2348,6 @@ extension on TranslationsJa {
'profiles.signOut' => 'サインアウト',
'profiles.signOutPlexTitle' => 'Plex からサインアウトしますか?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '${displayName}とすべてのPlex Homeユーザーを削除しますか?いつでも再サインインできます。',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Plex からサインアウトしました。',
'profiles.signOutFailed' => 'サインアウトに失敗しました。',
'profiles.sectionTitle' => 'プロファイル',
@@ -2369,6 +2402,8 @@ extension on TranslationsJa {
'connections.sessionExpiredOne' => ({required Object name}) => '${name} のセッションの有効期限が切れました',
'connections.sessionExpiredMany' => ({required Object count}) => '${count} 台のサーバーのセッションの有効期限が切れました',
'connections.signInAgain' => '再度サインイン',
'connections.editJellyfinTitle' => 'Jellyfin接続を編集',
'connections.editJellyfinIntro' => ({required Object serverName}) => '${serverName} のURLを追加または削除します。Plezyは到達可能なURLのうち最も低遅延のものを使用します。',
'discover.title' => '探す',
'discover.switchProfile' => 'プロフィール切替',
'discover.noContentAvailable' => 'コンテンツがありません',
@@ -2789,6 +2824,7 @@ extension on TranslationsJa {
'companionRemote.remote.audio' => '音声',
'companionRemote.remote.searchHint' => 'デスクトップで検索...',
'videoSettings.playbackSpeed' => '再生速度',
'videoSettings.zoom' => 'ズーム',
'videoSettings.sleepTimer' => 'スリープタイマー',
'videoSettings.audioSync' => '音声同期',
'videoSettings.subtitleSync' => '字幕同期',
@@ -2811,6 +2847,8 @@ extension on TranslationsJa {
'externalPlayer.off' => 'オフ',
'externalPlayer.launchFailed' => '外部プレーヤーの起動に失敗しました',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name}がインストールされていません',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => '外部プレーヤーで再生',
'metadataEdit.editMetadata' => '編集...',
'metadataEdit.screenTitle' => 'メタデータを編集',
@@ -2827,8 +2865,6 @@ extension on TranslationsJa {
'metadataEdit.summary' => 'あらすじ',
'metadataEdit.poster' => 'ポスター',
'metadataEdit.background' => '背景',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'ロゴ',
'metadataEdit.squareArt' => '正方形アート',
'metadataEdit.selectPoster' => 'ポスターを選択',
@@ -2947,8 +2983,12 @@ extension on TranslationsJa {
'trackers.libraryFilter.noLibraries' => '利用できるライブラリがありません',
'addServer.addJellyfinTitle' => 'Jellyfinサーバーを追加',
'addServer.jellyfinUrlIntro' => 'サーバーURLを入力してください。例: `https://jellyfin.example.com`。',
'addServer.jellyfinUrlsIntro' => 'サーバーURLを1つ以上、カンマまたは改行で区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。',
'addServer.serverUrl' => 'サーバーURL',
'addServer.serverUrls' => 'サーバーURL',
'addServer.findServer' => 'サーバーを検索',
'addServer.searchingLocalServers' => 'ローカル Jellyfin サーバーを検索中...',
'addServer.localServers' => 'ローカル Jellyfin サーバー',
'addServer.username' => 'ユーザー名',
'addServer.password' => 'パスワード',
'addServer.signIn' => 'サインイン',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonKo extends TranslationsCommonEn {
@override String get yes => '예';
@override String get no => '아니오';
@override String get delete => '삭제';
@override String get edit => '편집';
@override String get shuffle => '무작위 재생';
@override String get addTo => '추가하기...';
@override String get createNew => '새로 만들기';
@@ -253,6 +254,8 @@ class _TranslationsSettingsKo extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => '에피소드 카드에 시즌 및 에피소드 번호 표시';
@override String get showSeasonPostersOnTabs => '탭에 시즌 포스터 표시';
@override String get showSeasonPostersOnTabsDescription => '각 시즌 포스터를 탭 위에 표시';
@override String get tvFullCardLayout => '전체 TV 카드';
@override String get tvFullCardLayoutDescription => 'TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시';
@override String get hideSpoilers => '미시청 에피소드 스포일러 숨기기';
@override String get hideSpoilersDescription => '시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리';
@override String get playerBackend => '플레이어 백엔드';
@@ -388,6 +391,8 @@ class _TranslationsSettingsKo extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'TV 레이아웃을 강제합니다. 자동 감지되지 않는 기기용입니다. 재시작이 필요합니다.';
@override String get startInFullscreen => '전체화면으로 시작';
@override String get startInFullscreenDescription => '실행 시 Plezy를 전체화면 모드로 엽니다';
@override String get exitFullscreenOnPlayerClose => '플레이어 닫을 때 전체화면 종료';
@override String get exitFullscreenOnPlayerCloseDescription => '비디오 플레이어를 닫을 때 자동으로 전체화면을 종료합니다';
@override String get autoHidePerformanceOverlay => '성능 오버레이 자동 숨기기';
@override String get autoHidePerformanceOverlayDescription => '재생 컨트롤과 함께 성능 오버레이를 페이드 처리';
@override String get showNavBarLabels => '내비게이션 바 라벨 표시';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsKo extends TranslationsVideoControlsEn {
@override String get unlockRotation => '회전 잠금 해제';
@override String get timerActive => '타이머 활성화됨';
@override String playbackWillPauseIn({required Object duration}) => '재생이 ${duration} 후에 일시 중지 됩니다';
@override String get sleepTimerEndOfVideo => '현재 비디오의 끝';
@override String get sleepTimerStopAtHeader => '정지 시점';
@override String get sleepTimerDurationHeader => '타이머';
@override String get playbackWillPauseAtEnd => '재생이 이 비디오의 끝에서 일시 중지됩니다';
@override String get stillWatching => '아직 시청 중이신가요?';
@override String pausingIn({required Object seconds}) => '${seconds}초 후 일시 정지';
@override String get continueWatching => '계속';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsKo extends TranslationsVideoControlsEn {
@override String get pipActive => '화면 속 화면으로 재생 중';
@override String get pipFailed => '화면 속 화면 모드를 시작할 수 없습니다';
@override String get screenshotSaved => '스크린샷 저장됨';
@override String zoomPercent({required Object percent}) => '확대/축소 ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsKo pipErrors = _TranslationsVideoControlsPipErrorsKo._(_root);
@override String get chapters => '챕터';
@override String get noChaptersAvailable => '사용 가능한 챕터가 없습니다';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsKo extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => '${name} 의 세션이 만료되었습니다';
@override String sessionExpiredMany({required Object count}) => '${count} 개의 서버에서 세션이 만료되었습니다';
@override String get signInAgain => '다시 로그인';
@override String get editJellyfinTitle => 'Jellyfin 연결 편집';
@override String editJellyfinIntro({required Object serverName}) => '${serverName}의 URL을 추가하거나 제거하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsKo extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => '재생 속도';
@override String get zoom => '확대/축소';
@override String get sleepTimer => '취침 타이머';
@override String get audioSync => '오디오 동기화';
@override String get subtitleSync => '자막 동기화';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerKo extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Jellyfin 서버 추가';
@override String get jellyfinUrlIntro => '서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => '서버 URL을 하나 이상 쉼표나 줄바꿈으로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.';
@override String get serverUrl => '서버 URL';
@override String get serverUrls => '서버 URL';
@override String get findServer => '서버 찾기';
@override String get searchingLocalServers => '로컬 Jellyfin 서버 검색 중...';
@override String get localServers => '로컬 Jellyfin 서버';
@override String get username => '사용자 이름';
@override String get password => '비밀번호';
@override String get signIn => '로그인';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsKo extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => '속도 높이기';
@override String get speedDecrease => '속도 낮추기';
@override String get speedReset => '속도 초기화';
@override String get zoomIn => '확대';
@override String get zoomOut => '축소';
@override String get zoomReset => '확대/축소 초기화';
@override String get subSeekNext => '다음 자막으로 이동';
@override String get subSeekPrev => '이전 자막으로 이동';
@override String get shaderToggle => '셰이더 전환';
@@ -1833,6 +1853,7 @@ extension on TranslationsKo {
'common.yes' => '예',
'common.no' => '아니오',
'common.delete' => '삭제',
'common.edit' => '편집',
'common.shuffle' => '무작위 재생',
'common.addTo' => '추가하기...',
'common.createNew' => '새로 만들기',
@@ -1916,6 +1937,8 @@ extension on TranslationsKo {
'settings.showEpisodeNumberOnCardsDescription' => '에피소드 카드에 시즌 및 에피소드 번호 표시',
'settings.showSeasonPostersOnTabs' => '탭에 시즌 포스터 표시',
'settings.showSeasonPostersOnTabsDescription' => '각 시즌 포스터를 탭 위에 표시',
'settings.tvFullCardLayout' => '전체 TV 카드',
'settings.tvFullCardLayoutDescription' => 'TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시',
'settings.hideSpoilers' => '미시청 에피소드 스포일러 숨기기',
'settings.hideSpoilersDescription' => '시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리',
'settings.playerBackend' => '플레이어 백엔드',
@@ -2051,6 +2074,8 @@ extension on TranslationsKo {
'settings.forceTvModeDescription' => 'TV 레이아웃을 강제합니다. 자동 감지되지 않는 기기용입니다. 재시작이 필요합니다.',
'settings.startInFullscreen' => '전체화면으로 시작',
'settings.startInFullscreenDescription' => '실행 시 Plezy를 전체화면 모드로 엽니다',
'settings.exitFullscreenOnPlayerClose' => '플레이어 닫을 때 전체화면 종료',
'settings.exitFullscreenOnPlayerCloseDescription' => '비디오 플레이어를 닫을 때 자동으로 전체화면을 종료합니다',
'settings.autoHidePerformanceOverlay' => '성능 오버레이 자동 숨기기',
'settings.autoHidePerformanceOverlayDescription' => '재생 컨트롤과 함께 성능 오버레이를 페이드 처리',
'settings.showNavBarLabels' => '내비게이션 바 라벨 표시',
@@ -2089,6 +2114,9 @@ extension on TranslationsKo {
'hotkeys.actions.speedIncrease' => '속도 높이기',
'hotkeys.actions.speedDecrease' => '속도 낮추기',
'hotkeys.actions.speedReset' => '속도 초기화',
'hotkeys.actions.zoomIn' => '확대',
'hotkeys.actions.zoomOut' => '축소',
'hotkeys.actions.zoomReset' => '확대/축소 초기화',
'hotkeys.actions.subSeekNext' => '다음 자막으로 이동',
'hotkeys.actions.subSeekPrev' => '이전 자막으로 이동',
'hotkeys.actions.shaderToggle' => '셰이더 전환',
@@ -2172,6 +2200,10 @@ extension on TranslationsKo {
'videoControls.unlockRotation' => '회전 잠금 해제',
'videoControls.timerActive' => '타이머 활성화됨',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '재생이 ${duration} 후에 일시 중지 됩니다',
'videoControls.sleepTimerEndOfVideo' => '현재 비디오의 끝',
'videoControls.sleepTimerStopAtHeader' => '정지 시점',
'videoControls.sleepTimerDurationHeader' => '타이머',
'videoControls.playbackWillPauseAtEnd' => '재생이 이 비디오의 끝에서 일시 중지됩니다',
'videoControls.stillWatching' => '아직 시청 중이신가요?',
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}초 후 일시 정지',
'videoControls.continueWatching' => '계속',
@@ -2214,6 +2246,7 @@ extension on TranslationsKo {
'videoControls.pipActive' => '화면 속 화면으로 재생 중',
'videoControls.pipFailed' => '화면 속 화면 모드를 시작할 수 없습니다',
'videoControls.screenshotSaved' => '스크린샷 저장됨',
'videoControls.zoomPercent' => ({required Object percent}) => '확대/축소 ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Android 8.0 이상이 필요합니다',
'videoControls.pipErrors.iosVersion' => 'iOS 15.0 이상이 필요합니다',
'videoControls.pipErrors.permissionDisabled' => '화면 속 화면이 비활성화되어 있습니다. 시스템 설정에서 활성화하세요.',
@@ -2300,6 +2333,8 @@ extension on TranslationsKo {
'mpvConfig.presetSaved' => '프리셋이 저장 되었습니다',
'mpvConfig.presetLoaded' => '프리셋이 로드 되었습니다',
'mpvConfig.presetDeleted' => '프리셋이 삭제 되었습니다',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => '이 프리셋을 삭제 하시겠습니까?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => '확인',
@@ -2313,8 +2348,6 @@ extension on TranslationsKo {
'profiles.signOut' => '로그아웃',
'profiles.signOutPlexTitle' => 'Plex에서 로그아웃하시겠습니까?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '${displayName} 및 모든 Plex Home 사용자를 제거할까요? 언제든 다시 로그인할 수 있습니다.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Plex에서 로그아웃되었습니다.',
'profiles.signOutFailed' => '로그아웃에 실패했습니다.',
'profiles.sectionTitle' => '프로필',
@@ -2369,6 +2402,8 @@ extension on TranslationsKo {
'connections.sessionExpiredOne' => ({required Object name}) => '${name} 의 세션이 만료되었습니다',
'connections.sessionExpiredMany' => ({required Object count}) => '${count} 개의 서버에서 세션이 만료되었습니다',
'connections.signInAgain' => '다시 로그인',
'connections.editJellyfinTitle' => 'Jellyfin 연결 편집',
'connections.editJellyfinIntro' => ({required Object serverName}) => '${serverName}의 URL을 추가하거나 제거하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.',
'discover.title' => '발견',
'discover.switchProfile' => '사용자 전환',
'discover.noContentAvailable' => '사용 가능한 콘텐츠가 없습니다',
@@ -2789,6 +2824,7 @@ extension on TranslationsKo {
'companionRemote.remote.audio' => '오디오',
'companionRemote.remote.searchHint' => '데스크톱에서 검색...',
'videoSettings.playbackSpeed' => '재생 속도',
'videoSettings.zoom' => '확대/축소',
'videoSettings.sleepTimer' => '취침 타이머',
'videoSettings.audioSync' => '오디오 동기화',
'videoSettings.subtitleSync' => '자막 동기화',
@@ -2811,6 +2847,8 @@ extension on TranslationsKo {
'externalPlayer.off' => '꺼짐',
'externalPlayer.launchFailed' => '외부 플레이어를 열 수 없습니다',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name}이(가) 설치되어 있지 않습니다',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => '외부 플레이어에서 재생',
'metadataEdit.editMetadata' => '편집...',
'metadataEdit.screenTitle' => '메타데이터 편집',
@@ -2827,8 +2865,6 @@ extension on TranslationsKo {
'metadataEdit.summary' => '줄거리',
'metadataEdit.poster' => '포스터',
'metadataEdit.background' => '배경',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => '로고',
'metadataEdit.squareArt' => '정사각형 아트',
'metadataEdit.selectPoster' => '포스터 선택',
@@ -2947,8 +2983,12 @@ extension on TranslationsKo {
'trackers.libraryFilter.noLibraries' => '사용 가능한 라이브러리가 없습니다',
'addServer.addJellyfinTitle' => 'Jellyfin 서버 추가',
'addServer.jellyfinUrlIntro' => '서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => '서버 URL을 하나 이상 쉼표나 줄바꿈으로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.',
'addServer.serverUrl' => '서버 URL',
'addServer.serverUrls' => '서버 URL',
'addServer.findServer' => '서버 찾기',
'addServer.searchingLocalServers' => '로컬 Jellyfin 서버 검색 중...',
'addServer.localServers' => '로컬 Jellyfin 서버',
'addServer.username' => '사용자 이름',
'addServer.password' => '비밀번호',
'addServer.signIn' => '로그인',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonNb extends TranslationsCommonEn {
@override String get yes => 'Ja';
@override String get no => 'Nei';
@override String get delete => 'Slett';
@override String get edit => 'Rediger';
@override String get shuffle => 'Tilfeldig';
@override String get addTo => 'Legg til i...';
@override String get createNew => 'Opprett ny';
@@ -253,6 +254,8 @@ class _TranslationsSettingsNb extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Vis sesong- og episodenummer på episodekort';
@override String get showSeasonPostersOnTabs => 'Vis sesongplakater på faner';
@override String get showSeasonPostersOnTabsDescription => 'Vis hver sesongs plakat over fanen';
@override String get tvFullCardLayout => 'Fulle TV-kort';
@override String get tvFullCardLayoutDescription => 'Bruk bildebaserte TV-kort med skuespillernavn lagt over';
@override String get hideSpoilers => 'Skjul spoilere for usette episoder';
@override String get hideSpoilersDescription => 'Slør miniatyrbilder og beskrivelser for usette episoder';
@override String get playerBackend => 'Spillermotor';
@@ -388,6 +391,8 @@ class _TranslationsSettingsNb extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Tving TV-oppsett. For enheter som ikke oppdages automatisk. Krever omstart.';
@override String get startInFullscreen => 'Start i fullskjerm';
@override String get startInFullscreenDescription => 'Åpne Plezy i fullskjermmodus ved oppstart';
@override String get exitFullscreenOnPlayerClose => 'Avslutt fullskjerm ved lukking av avspiller';
@override String get exitFullscreenOnPlayerCloseDescription => 'Avslutt fullskjerm automatisk når videospilleren lukkes';
@override String get autoHidePerformanceOverlay => 'Skjul ytelsesoverlegg automatisk';
@override String get autoHidePerformanceOverlayDescription => 'Fade ytelsesoverlegget med avspillingskontrollene';
@override String get showNavBarLabels => 'Vis navigasjonsfeltlabeler';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsNb extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Lås opp rotasjon';
@override String get timerActive => 'Timer aktiv';
@override String playbackWillPauseIn({required Object duration}) => 'Avspilling vil pause om ${duration}';
@override String get sleepTimerEndOfVideo => 'Slutten av gjeldende video';
@override String get sleepTimerStopAtHeader => 'Stopp ved';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'Avspilling vil pause på slutten av denne videoen';
@override String get stillWatching => 'Ser du fortsatt?';
@override String pausingIn({required Object seconds}) => 'Pauser om ${seconds}s';
@override String get continueWatching => 'Fortsett';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsNb extends TranslationsVideoControlsEn {
@override String get pipActive => 'Spiller i bilde-i-bilde';
@override String get pipFailed => 'Bilde-i-bilde kunne ikke starte';
@override String get screenshotSaved => 'Skjermbilde lagret';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsNb pipErrors = _TranslationsVideoControlsPipErrorsNb._(_root);
@override String get chapters => 'Kapitler';
@override String get noChaptersAvailable => 'Ingen kapitler tilgjengelig';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsNb extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Økten er utløpt for ${name}';
@override String sessionExpiredMany({required Object count}) => 'Økten er utløpt for ${count} servere';
@override String get signInAgain => 'Logg inn igjen';
@override String get editJellyfinTitle => 'Rediger Jellyfin-tilkobling';
@override String editJellyfinIntro({required Object serverName}) => 'Legg til eller fjern URL-er for ${serverName}. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsNb extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Avspillingshastighet';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Søvntimer';
@override String get audioSync => 'Lydsynkronisering';
@override String get subtitleSync => 'Undertekstsynkronisering';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerNb extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Legg til Jellyfin-server';
@override String get jellyfinUrlIntro => 'Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Skriv inn én eller flere server-URL-er, adskilt med kommaer eller nye linjer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.';
@override String get serverUrl => 'Server-URL';
@override String get serverUrls => 'Server-URL-er';
@override String get findServer => 'Finn server';
@override String get searchingLocalServers => 'Søker etter lokale Jellyfin-servere...';
@override String get localServers => 'Lokale Jellyfin-servere';
@override String get username => 'Brukernavn';
@override String get password => 'Passord';
@override String get signIn => 'Logg på';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsNb extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Øk hastighet';
@override String get speedDecrease => 'Reduser hastighet';
@override String get speedReset => 'Tilbakestill hastighet';
@override String get zoomIn => 'Zoom inn';
@override String get zoomOut => 'Zoom ut';
@override String get zoomReset => 'Tilbakestill zoom';
@override String get subSeekNext => 'Spol til neste undertekst';
@override String get subSeekPrev => 'Spol til forrige undertekst';
@override String get shaderToggle => 'Veksle shadere';
@@ -1833,6 +1853,7 @@ extension on TranslationsNb {
'common.yes' => 'Ja',
'common.no' => 'Nei',
'common.delete' => 'Slett',
'common.edit' => 'Rediger',
'common.shuffle' => 'Tilfeldig',
'common.addTo' => 'Legg til i...',
'common.createNew' => 'Opprett ny',
@@ -1916,6 +1937,8 @@ extension on TranslationsNb {
'settings.showEpisodeNumberOnCardsDescription' => 'Vis sesong- og episodenummer på episodekort',
'settings.showSeasonPostersOnTabs' => 'Vis sesongplakater på faner',
'settings.showSeasonPostersOnTabsDescription' => 'Vis hver sesongs plakat over fanen',
'settings.tvFullCardLayout' => 'Fulle TV-kort',
'settings.tvFullCardLayoutDescription' => 'Bruk bildebaserte TV-kort med skuespillernavn lagt over',
'settings.hideSpoilers' => 'Skjul spoilere for usette episoder',
'settings.hideSpoilersDescription' => 'Slør miniatyrbilder og beskrivelser for usette episoder',
'settings.playerBackend' => 'Spillermotor',
@@ -2051,6 +2074,8 @@ extension on TranslationsNb {
'settings.forceTvModeDescription' => 'Tving TV-oppsett. For enheter som ikke oppdages automatisk. Krever omstart.',
'settings.startInFullscreen' => 'Start i fullskjerm',
'settings.startInFullscreenDescription' => 'Åpne Plezy i fullskjermmodus ved oppstart',
'settings.exitFullscreenOnPlayerClose' => 'Avslutt fullskjerm ved lukking av avspiller',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Avslutt fullskjerm automatisk når videospilleren lukkes',
'settings.autoHidePerformanceOverlay' => 'Skjul ytelsesoverlegg automatisk',
'settings.autoHidePerformanceOverlayDescription' => 'Fade ytelsesoverlegget med avspillingskontrollene',
'settings.showNavBarLabels' => 'Vis navigasjonsfeltlabeler',
@@ -2089,6 +2114,9 @@ extension on TranslationsNb {
'hotkeys.actions.speedIncrease' => 'Øk hastighet',
'hotkeys.actions.speedDecrease' => 'Reduser hastighet',
'hotkeys.actions.speedReset' => 'Tilbakestill hastighet',
'hotkeys.actions.zoomIn' => 'Zoom inn',
'hotkeys.actions.zoomOut' => 'Zoom ut',
'hotkeys.actions.zoomReset' => 'Tilbakestill zoom',
'hotkeys.actions.subSeekNext' => 'Spol til neste undertekst',
'hotkeys.actions.subSeekPrev' => 'Spol til forrige undertekst',
'hotkeys.actions.shaderToggle' => 'Veksle shadere',
@@ -2172,6 +2200,10 @@ extension on TranslationsNb {
'videoControls.unlockRotation' => 'Lås opp rotasjon',
'videoControls.timerActive' => 'Timer aktiv',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Avspilling vil pause om ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Slutten av gjeldende video',
'videoControls.sleepTimerStopAtHeader' => 'Stopp ved',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Avspilling vil pause på slutten av denne videoen',
'videoControls.stillWatching' => 'Ser du fortsatt?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauser om ${seconds}s',
'videoControls.continueWatching' => 'Fortsett',
@@ -2214,6 +2246,7 @@ extension on TranslationsNb {
'videoControls.pipActive' => 'Spiller i bilde-i-bilde',
'videoControls.pipFailed' => 'Bilde-i-bilde kunne ikke starte',
'videoControls.screenshotSaved' => 'Skjermbilde lagret',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Krever Android 8.0 eller nyere',
'videoControls.pipErrors.iosVersion' => 'Krever iOS 15.0 eller nyere',
'videoControls.pipErrors.permissionDisabled' => 'Bilde-i-bilde er deaktivert. Slå det på i systeminnstillinger.',
@@ -2300,6 +2333,8 @@ extension on TranslationsNb {
'mpvConfig.presetSaved' => 'Forhåndsinnstilling lagret',
'mpvConfig.presetLoaded' => 'Forhåndsinnstilling lastet inn',
'mpvConfig.presetDeleted' => 'Forhåndsinnstilling slettet',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Er du sikker på at du vil slette denne forhåndsinnstillingen?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# kommentar',
'dialog.confirmAction' => 'Bekreft handling',
@@ -2313,8 +2348,6 @@ extension on TranslationsNb {
'profiles.signOut' => 'Logg ut',
'profiles.signOutPlexTitle' => 'Logge ut av Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Fjerne ${displayName} og alle Plex Home-brukere? Du kan logge inn igjen når som helst.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Logget ut av Plex.',
'profiles.signOutFailed' => 'Utlogging mislyktes.',
'profiles.sectionTitle' => 'Profiler',
@@ -2369,6 +2402,8 @@ extension on TranslationsNb {
'connections.sessionExpiredOne' => ({required Object name}) => 'Økten er utløpt for ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Økten er utløpt for ${count} servere',
'connections.signInAgain' => 'Logg inn igjen',
'connections.editJellyfinTitle' => 'Rediger Jellyfin-tilkobling',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Legg til eller fjern URL-er for ${serverName}. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.',
'discover.title' => 'Oppdag',
'discover.switchProfile' => 'Bytt profil',
'discover.noContentAvailable' => 'Ingen innhold tilgjengelig',
@@ -2789,6 +2824,7 @@ extension on TranslationsNb {
'companionRemote.remote.audio' => 'Lyd',
'companionRemote.remote.searchHint' => 'Søk på stasjonær...',
'videoSettings.playbackSpeed' => 'Avspillingshastighet',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Søvntimer',
'videoSettings.audioSync' => 'Lydsynkronisering',
'videoSettings.subtitleSync' => 'Undertekstsynkronisering',
@@ -2811,6 +2847,8 @@ extension on TranslationsNb {
'externalPlayer.off' => 'Av',
'externalPlayer.launchFailed' => 'Kunne ikke åpne ekstern spiller',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} er ikke installert',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Spill av i ekstern spiller',
'metadataEdit.editMetadata' => 'Rediger...',
'metadataEdit.screenTitle' => 'Rediger metadata',
@@ -2827,8 +2865,6 @@ extension on TranslationsNb {
'metadataEdit.summary' => 'Sammendrag',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Bakgrunn',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kvadratisk bilde',
'metadataEdit.selectPoster' => 'Velg plakat',
@@ -2947,8 +2983,12 @@ extension on TranslationsNb {
'trackers.libraryFilter.noLibraries' => 'Ingen biblioteker tilgjengelige',
'addServer.addJellyfinTitle' => 'Legg til Jellyfin-server',
'addServer.jellyfinUrlIntro' => 'Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Skriv inn én eller flere server-URL-er, adskilt med kommaer eller nye linjer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.',
'addServer.serverUrl' => 'Server-URL',
'addServer.serverUrls' => 'Server-URL-er',
'addServer.findServer' => 'Finn server',
'addServer.searchingLocalServers' => 'Søker etter lokale Jellyfin-servere...',
'addServer.localServers' => 'Lokale Jellyfin-servere',
'addServer.username' => 'Brukernavn',
'addServer.password' => 'Passord',
'addServer.signIn' => 'Logg på',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonNl extends TranslationsCommonEn {
@override String get yes => 'Ja';
@override String get no => 'Nee';
@override String get delete => 'Verwijderen';
@override String get edit => 'Bewerken';
@override String get shuffle => 'Willekeurig';
@override String get addTo => 'Toevoegen aan...';
@override String get createNew => 'Nieuw aanmaken';
@@ -253,6 +254,8 @@ class _TranslationsSettingsNl extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Toon seizoen- en afleveringsnummer op afleveringskaarten';
@override String get showSeasonPostersOnTabs => 'Toon seizoensposters op tabbladen';
@override String get showSeasonPostersOnTabsDescription => 'Toon de poster van elk seizoen boven het tabblad';
@override String get tvFullCardLayout => 'Volledige tv-kaarten';
@override String get tvFullCardLayoutDescription => 'Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay';
@override String get hideSpoilers => 'Spoilers voor ongekeken afleveringen verbergen';
@override String get hideSpoilersDescription => 'Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen';
@override String get playerBackend => 'Speler backend';
@@ -388,6 +391,8 @@ class _TranslationsSettingsNl extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Forceer TV-indeling. Voor apparaten zonder autodetectie. Herstart vereist.';
@override String get startInFullscreen => 'Starten in volledig scherm';
@override String get startInFullscreenDescription => 'Open Plezy bij het starten in volledig scherm';
@override String get exitFullscreenOnPlayerClose => 'Volledig scherm verlaten bij sluiten speler';
@override String get exitFullscreenOnPlayerCloseDescription => 'Verlaat automatisch volledig scherm wanneer de videospeler wordt gesloten';
@override String get autoHidePerformanceOverlay => 'Prestatie-overlay automatisch verbergen';
@override String get autoHidePerformanceOverlayDescription => 'Laat de prestatie-overlay meevervagen met de afspeelknoppen';
@override String get showNavBarLabels => 'Navigatiebalk labels tonen';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsNl extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Ontgrendel rotatie';
@override String get timerActive => 'Timer actief';
@override String playbackWillPauseIn({required Object duration}) => 'Afspelen wordt gepauzeerd over ${duration}';
@override String get sleepTimerEndOfVideo => 'Einde van huidige video';
@override String get sleepTimerStopAtHeader => 'Stoppen bij';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'Afspelen wordt gepauzeerd aan het einde van deze video';
@override String get stillWatching => 'Kijk je nog?';
@override String pausingIn({required Object seconds}) => 'Pauze over ${seconds}s';
@override String get continueWatching => 'Doorgaan';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsNl extends TranslationsVideoControlsEn {
@override String get pipActive => 'Afspelen in beeld-in-beeld';
@override String get pipFailed => 'Beeld-in-beeld kon niet worden gestart';
@override String get screenshotSaved => 'Schermafbeelding opgeslagen';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsNl pipErrors = _TranslationsVideoControlsPipErrorsNl._(_root);
@override String get chapters => 'Hoofdstukken';
@override String get noChaptersAvailable => 'Geen hoofdstukken beschikbaar';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsNl extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sessie verlopen voor ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sessie verlopen voor ${count} servers';
@override String get signInAgain => 'Opnieuw aanmelden';
@override String get editJellyfinTitle => 'Jellyfin-verbinding bewerken';
@override String editJellyfinIntro({required Object serverName}) => 'Voeg URL\'s voor ${serverName} toe of verwijder ze. Plezy gebruikt de bereikbare URL met de laagste latentie.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsNl extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Afspeelsnelheid';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Slaaptimer';
@override String get audioSync => 'Audio synchronisatie';
@override String get subtitleSync => 'Ondertitel synchronisatie';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerNl extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Jellyfin-server toevoegen';
@override String get jellyfinUrlIntro => 'Voer de server-URL in, bijv. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Voer een of meer server-URL\'s in, gescheiden door komma\'s of nieuwe regels. Plezy gebruikt de bereikbare URL met de laagste latentie.';
@override String get serverUrl => 'Server-URL';
@override String get serverUrls => 'Server-URL\'s';
@override String get findServer => 'Server zoeken';
@override String get searchingLocalServers => 'Lokale Jellyfin-servers zoeken...';
@override String get localServers => 'Lokale Jellyfin-servers';
@override String get username => 'Gebruikersnaam';
@override String get password => 'Wachtwoord';
@override String get signIn => 'Inloggen';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsNl extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Snelheid verhogen';
@override String get speedDecrease => 'Snelheid verlagen';
@override String get speedReset => 'Snelheid resetten';
@override String get zoomIn => 'Inzoomen';
@override String get zoomOut => 'Uitzoomen';
@override String get zoomReset => 'Zoom resetten';
@override String get subSeekNext => 'Naar volgende ondertitel';
@override String get subSeekPrev => 'Naar vorige ondertitel';
@override String get shaderToggle => 'Shaders aan/uit';
@@ -1833,6 +1853,7 @@ extension on TranslationsNl {
'common.yes' => 'Ja',
'common.no' => 'Nee',
'common.delete' => 'Verwijderen',
'common.edit' => 'Bewerken',
'common.shuffle' => 'Willekeurig',
'common.addTo' => 'Toevoegen aan...',
'common.createNew' => 'Nieuw aanmaken',
@@ -1916,6 +1937,8 @@ extension on TranslationsNl {
'settings.showEpisodeNumberOnCardsDescription' => 'Toon seizoen- en afleveringsnummer op afleveringskaarten',
'settings.showSeasonPostersOnTabs' => 'Toon seizoensposters op tabbladen',
'settings.showSeasonPostersOnTabsDescription' => 'Toon de poster van elk seizoen boven het tabblad',
'settings.tvFullCardLayout' => 'Volledige tv-kaarten',
'settings.tvFullCardLayoutDescription' => 'Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay',
'settings.hideSpoilers' => 'Spoilers voor ongekeken afleveringen verbergen',
'settings.hideSpoilersDescription' => 'Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen',
'settings.playerBackend' => 'Speler backend',
@@ -2051,6 +2074,8 @@ extension on TranslationsNl {
'settings.forceTvModeDescription' => 'Forceer TV-indeling. Voor apparaten zonder autodetectie. Herstart vereist.',
'settings.startInFullscreen' => 'Starten in volledig scherm',
'settings.startInFullscreenDescription' => 'Open Plezy bij het starten in volledig scherm',
'settings.exitFullscreenOnPlayerClose' => 'Volledig scherm verlaten bij sluiten speler',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Verlaat automatisch volledig scherm wanneer de videospeler wordt gesloten',
'settings.autoHidePerformanceOverlay' => 'Prestatie-overlay automatisch verbergen',
'settings.autoHidePerformanceOverlayDescription' => 'Laat de prestatie-overlay meevervagen met de afspeelknoppen',
'settings.showNavBarLabels' => 'Navigatiebalk labels tonen',
@@ -2089,6 +2114,9 @@ extension on TranslationsNl {
'hotkeys.actions.speedIncrease' => 'Snelheid verhogen',
'hotkeys.actions.speedDecrease' => 'Snelheid verlagen',
'hotkeys.actions.speedReset' => 'Snelheid resetten',
'hotkeys.actions.zoomIn' => 'Inzoomen',
'hotkeys.actions.zoomOut' => 'Uitzoomen',
'hotkeys.actions.zoomReset' => 'Zoom resetten',
'hotkeys.actions.subSeekNext' => 'Naar volgende ondertitel',
'hotkeys.actions.subSeekPrev' => 'Naar vorige ondertitel',
'hotkeys.actions.shaderToggle' => 'Shaders aan/uit',
@@ -2172,6 +2200,10 @@ extension on TranslationsNl {
'videoControls.unlockRotation' => 'Ontgrendel rotatie',
'videoControls.timerActive' => 'Timer actief',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Afspelen wordt gepauzeerd over ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Einde van huidige video',
'videoControls.sleepTimerStopAtHeader' => 'Stoppen bij',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Afspelen wordt gepauzeerd aan het einde van deze video',
'videoControls.stillWatching' => 'Kijk je nog?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauze over ${seconds}s',
'videoControls.continueWatching' => 'Doorgaan',
@@ -2214,6 +2246,7 @@ extension on TranslationsNl {
'videoControls.pipActive' => 'Afspelen in beeld-in-beeld',
'videoControls.pipFailed' => 'Beeld-in-beeld kon niet worden gestart',
'videoControls.screenshotSaved' => 'Schermafbeelding opgeslagen',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Vereist Android 8.0 of nieuwer',
'videoControls.pipErrors.iosVersion' => 'Vereist iOS 15.0 of nieuwer',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture is uitgeschakeld. Schakel het in via systeeminstellingen.',
@@ -2300,6 +2333,8 @@ extension on TranslationsNl {
'mpvConfig.presetSaved' => 'Voorinstelling opgeslagen',
'mpvConfig.presetLoaded' => 'Voorinstelling geladen',
'mpvConfig.presetDeleted' => 'Voorinstelling verwijderd',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Weet je zeker dat je deze voorinstelling wilt verwijderen?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Bevestig actie',
@@ -2313,8 +2348,6 @@ extension on TranslationsNl {
'profiles.signOut' => 'Afmelden',
'profiles.signOutPlexTitle' => 'Afmelden bij Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '${displayName} en alle Plex Home-gebruikers verwijderen? Je kunt altijd opnieuw inloggen.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Afgemeld bij Plex.',
'profiles.signOutFailed' => 'Afmelden mislukt.',
'profiles.sectionTitle' => 'Profielen',
@@ -2369,6 +2402,8 @@ extension on TranslationsNl {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sessie verlopen voor ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sessie verlopen voor ${count} servers',
'connections.signInAgain' => 'Opnieuw aanmelden',
'connections.editJellyfinTitle' => 'Jellyfin-verbinding bewerken',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Voeg URL\'s voor ${serverName} toe of verwijder ze. Plezy gebruikt de bereikbare URL met de laagste latentie.',
'discover.title' => 'Ontdekken',
'discover.switchProfile' => 'Wissel van profiel',
'discover.noContentAvailable' => 'Geen inhoud beschikbaar',
@@ -2789,6 +2824,7 @@ extension on TranslationsNl {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Zoeken op desktop...',
'videoSettings.playbackSpeed' => 'Afspeelsnelheid',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Slaaptimer',
'videoSettings.audioSync' => 'Audio synchronisatie',
'videoSettings.subtitleSync' => 'Ondertitel synchronisatie',
@@ -2811,6 +2847,8 @@ extension on TranslationsNl {
'externalPlayer.off' => 'Uit',
'externalPlayer.launchFailed' => 'Kan externe speler niet openen',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} is niet geïnstalleerd',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Afspelen in externe speler',
'metadataEdit.editMetadata' => 'Bewerken...',
'metadataEdit.screenTitle' => 'Metadata bewerken',
@@ -2827,8 +2865,6 @@ extension on TranslationsNl {
'metadataEdit.summary' => 'Samenvatting',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Achtergrond',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Vierkante afbeelding',
'metadataEdit.selectPoster' => 'Poster selecteren',
@@ -2947,8 +2983,12 @@ extension on TranslationsNl {
'trackers.libraryFilter.noLibraries' => 'Geen bibliotheken beschikbaar',
'addServer.addJellyfinTitle' => 'Jellyfin-server toevoegen',
'addServer.jellyfinUrlIntro' => 'Voer de server-URL in, bijv. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Voer een of meer server-URL\'s in, gescheiden door komma\'s of nieuwe regels. Plezy gebruikt de bereikbare URL met de laagste latentie.',
'addServer.serverUrl' => 'Server-URL',
'addServer.serverUrls' => 'Server-URL\'s',
'addServer.findServer' => 'Server zoeken',
'addServer.searchingLocalServers' => 'Lokale Jellyfin-servers zoeken...',
'addServer.localServers' => 'Lokale Jellyfin-servers',
'addServer.username' => 'Gebruikersnaam',
'addServer.password' => 'Wachtwoord',
'addServer.signIn' => 'Inloggen',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonPl extends TranslationsCommonEn {
@override String get yes => 'Tak';
@override String get no => 'Nie';
@override String get delete => 'Usuń';
@override String get edit => 'Edytuj';
@override String get shuffle => 'Losowo';
@override String get addTo => 'Dodaj do...';
@override String get createNew => 'Utwórz nowy';
@@ -253,6 +254,8 @@ class _TranslationsSettingsPl extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Pokazuj numer sezonu i odcinka na kartach odcinków';
@override String get showSeasonPostersOnTabs => 'Pokaż plakaty sezonów na zakładkach';
@override String get showSeasonPostersOnTabsDescription => 'Pokazuj plakat każdego sezonu nad jego kartą';
@override String get tvFullCardLayout => 'Pełne karty TV';
@override String get tvFullCardLayoutDescription => 'Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów';
@override String get hideSpoilers => 'Ukryj spoilery nieobejrzanych odcinków';
@override String get hideSpoilersDescription => 'Rozmywaj miniatury i opisy nieobejrzanych odcinków';
@override String get playerBackend => 'Backend odtwarzacza';
@@ -388,6 +391,8 @@ class _TranslationsSettingsPl extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Wymuś układ TV. Dla urządzeń bez autodetekcji. Wymaga restartu.';
@override String get startInFullscreen => 'Uruchom na pełnym ekranie';
@override String get startInFullscreenDescription => 'Otwiera Plezy w trybie pełnoekranowym przy uruchomieniu';
@override String get exitFullscreenOnPlayerClose => 'Wyjdź z pełnego ekranu przy zamykaniu odtwarzacza';
@override String get exitFullscreenOnPlayerCloseDescription => 'Automatycznie wychodzi z trybu pełnoekranowego po zamknięciu odtwarzacza wideo';
@override String get autoHidePerformanceOverlay => 'Automatycznie ukrywaj nakładkę wydajności';
@override String get autoHidePerformanceOverlayDescription => 'Wygaszaj nakładkę wydajności wraz z kontrolkami odtwarzania';
@override String get showNavBarLabels => 'Pokaż etykiety paska nawigacji';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsPl extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Odblokuj obrót';
@override String get timerActive => 'Wyłącznik aktywny';
@override String playbackWillPauseIn({required Object duration}) => 'Odtwarzanie zatrzyma się za ${duration}';
@override String get sleepTimerEndOfVideo => 'Koniec bieżącego wideo';
@override String get sleepTimerStopAtHeader => 'Zatrzymaj na';
@override String get sleepTimerDurationHeader => 'Minutnik';
@override String get playbackWillPauseAtEnd => 'Odtwarzanie zatrzyma się na końcu tego wideo';
@override String get stillWatching => 'Nadal oglądasz?';
@override String pausingIn({required Object seconds}) => 'Pauza za ${seconds}s';
@override String get continueWatching => 'Kontynuuj';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsPl extends TranslationsVideoControlsEn {
@override String get pipActive => 'Odtwarzanie w trybie obraz w obrazie';
@override String get pipFailed => 'Nie udało się uruchomić trybu obraz w obrazie';
@override String get screenshotSaved => 'Zrzut ekranu zapisany';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsPl pipErrors = _TranslationsVideoControlsPipErrorsPl._(_root);
@override String get chapters => 'Rozdziały';
@override String get noChaptersAvailable => 'Brak dostępnych rozdziałów';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsPl extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sesja wygasła dla ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sesja wygasła dla ${count} serwerów';
@override String get signInAgain => 'Zaloguj się ponownie';
@override String get editJellyfinTitle => 'Edytuj połączenie Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Dodaj lub usuń adresy URL dla ${serverName}. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsPl extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Prędkość odtwarzania';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Wyłącznik czasowy';
@override String get audioSync => 'Synchronizacja audio';
@override String get subtitleSync => 'Synchronizacja napisów';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerPl extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Dodaj serwer Jellyfin';
@override String get jellyfinUrlIntro => 'Wpisz URL serwera, np. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami lub nowymi wierszami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.';
@override String get serverUrl => 'URL serwera';
@override String get serverUrls => 'URL-e serwera';
@override String get findServer => 'Znajdź serwer';
@override String get searchingLocalServers => 'Szukanie lokalnych serwerów Jellyfin...';
@override String get localServers => 'Lokalne serwery Jellyfin';
@override String get username => 'Nazwa użytkownika';
@override String get password => 'Hasło';
@override String get signIn => 'Zaloguj się';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsPl extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Zwiększ prędkość';
@override String get speedDecrease => 'Zmniejsz prędkość';
@override String get speedReset => 'Zresetuj prędkość';
@override String get zoomIn => 'Powiększ';
@override String get zoomOut => 'Pomniejsz';
@override String get zoomReset => 'Zresetuj zoom';
@override String get subSeekNext => 'Przewiń do następnego napisu';
@override String get subSeekPrev => 'Przewiń do poprzedniego napisu';
@override String get shaderToggle => 'Przełącz shadery';
@@ -1833,6 +1853,7 @@ extension on TranslationsPl {
'common.yes' => 'Tak',
'common.no' => 'Nie',
'common.delete' => 'Usuń',
'common.edit' => 'Edytuj',
'common.shuffle' => 'Losowo',
'common.addTo' => 'Dodaj do...',
'common.createNew' => 'Utwórz nowy',
@@ -1916,6 +1937,8 @@ extension on TranslationsPl {
'settings.showEpisodeNumberOnCardsDescription' => 'Pokazuj numer sezonu i odcinka na kartach odcinków',
'settings.showSeasonPostersOnTabs' => 'Pokaż plakaty sezonów na zakładkach',
'settings.showSeasonPostersOnTabsDescription' => 'Pokazuj plakat każdego sezonu nad jego kartą',
'settings.tvFullCardLayout' => 'Pełne karty TV',
'settings.tvFullCardLayoutDescription' => 'Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów',
'settings.hideSpoilers' => 'Ukryj spoilery nieobejrzanych odcinków',
'settings.hideSpoilersDescription' => 'Rozmywaj miniatury i opisy nieobejrzanych odcinków',
'settings.playerBackend' => 'Backend odtwarzacza',
@@ -2051,6 +2074,8 @@ extension on TranslationsPl {
'settings.forceTvModeDescription' => 'Wymuś układ TV. Dla urządzeń bez autodetekcji. Wymaga restartu.',
'settings.startInFullscreen' => 'Uruchom na pełnym ekranie',
'settings.startInFullscreenDescription' => 'Otwiera Plezy w trybie pełnoekranowym przy uruchomieniu',
'settings.exitFullscreenOnPlayerClose' => 'Wyjdź z pełnego ekranu przy zamykaniu odtwarzacza',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Automatycznie wychodzi z trybu pełnoekranowego po zamknięciu odtwarzacza wideo',
'settings.autoHidePerformanceOverlay' => 'Automatycznie ukrywaj nakładkę wydajności',
'settings.autoHidePerformanceOverlayDescription' => 'Wygaszaj nakładkę wydajności wraz z kontrolkami odtwarzania',
'settings.showNavBarLabels' => 'Pokaż etykiety paska nawigacji',
@@ -2089,6 +2114,9 @@ extension on TranslationsPl {
'hotkeys.actions.speedIncrease' => 'Zwiększ prędkość',
'hotkeys.actions.speedDecrease' => 'Zmniejsz prędkość',
'hotkeys.actions.speedReset' => 'Zresetuj prędkość',
'hotkeys.actions.zoomIn' => 'Powiększ',
'hotkeys.actions.zoomOut' => 'Pomniejsz',
'hotkeys.actions.zoomReset' => 'Zresetuj zoom',
'hotkeys.actions.subSeekNext' => 'Przewiń do następnego napisu',
'hotkeys.actions.subSeekPrev' => 'Przewiń do poprzedniego napisu',
'hotkeys.actions.shaderToggle' => 'Przełącz shadery',
@@ -2172,6 +2200,10 @@ extension on TranslationsPl {
'videoControls.unlockRotation' => 'Odblokuj obrót',
'videoControls.timerActive' => 'Wyłącznik aktywny',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Odtwarzanie zatrzyma się za ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Koniec bieżącego wideo',
'videoControls.sleepTimerStopAtHeader' => 'Zatrzymaj na',
'videoControls.sleepTimerDurationHeader' => 'Minutnik',
'videoControls.playbackWillPauseAtEnd' => 'Odtwarzanie zatrzyma się na końcu tego wideo',
'videoControls.stillWatching' => 'Nadal oglądasz?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauza za ${seconds}s',
'videoControls.continueWatching' => 'Kontynuuj',
@@ -2214,6 +2246,7 @@ extension on TranslationsPl {
'videoControls.pipActive' => 'Odtwarzanie w trybie obraz w obrazie',
'videoControls.pipFailed' => 'Nie udało się uruchomić trybu obraz w obrazie',
'videoControls.screenshotSaved' => 'Zrzut ekranu zapisany',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Wymaga Androida 8.0 lub nowszego',
'videoControls.pipErrors.iosVersion' => 'Wymaga iOS 15.0 lub nowszego',
'videoControls.pipErrors.permissionDisabled' => 'Obraz w obrazie jest wyłączony. Włącz go w ustawieniach systemu.',
@@ -2300,6 +2333,8 @@ extension on TranslationsPl {
'mpvConfig.presetSaved' => 'Preset zapisany',
'mpvConfig.presetLoaded' => 'Preset załadowany',
'mpvConfig.presetDeleted' => 'Preset usunięty',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Czy na pewno chcesz usunąć ten preset?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Potwierdź działanie',
@@ -2313,8 +2348,6 @@ extension on TranslationsPl {
'profiles.signOut' => 'Wyloguj się',
'profiles.signOutPlexTitle' => 'Wylogować się z Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Usunąć ${displayName} i wszystkich użytkowników Plex Home? Możesz zalogować się ponownie w każdej chwili.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Wylogowano z Plex.',
'profiles.signOutFailed' => 'Wylogowanie nie powiodło się.',
'profiles.sectionTitle' => 'Profile',
@@ -2369,6 +2402,8 @@ extension on TranslationsPl {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sesja wygasła dla ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sesja wygasła dla ${count} serwerów',
'connections.signInAgain' => 'Zaloguj się ponownie',
'connections.editJellyfinTitle' => 'Edytuj połączenie Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Dodaj lub usuń adresy URL dla ${serverName}. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.',
'discover.title' => 'Odkryj',
'discover.switchProfile' => 'Zmień profil',
'discover.noContentAvailable' => 'Brak dostępnych treści',
@@ -2789,6 +2824,7 @@ extension on TranslationsPl {
'companionRemote.remote.audio' => 'Audio',
'companionRemote.remote.searchHint' => 'Szukaj na komputerze...',
'videoSettings.playbackSpeed' => 'Prędkość odtwarzania',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Wyłącznik czasowy',
'videoSettings.audioSync' => 'Synchronizacja audio',
'videoSettings.subtitleSync' => 'Synchronizacja napisów',
@@ -2811,6 +2847,8 @@ extension on TranslationsPl {
'externalPlayer.off' => 'Wyłączony',
'externalPlayer.launchFailed' => 'Nie udało się otworzyć zewnętrznego odtwarzacza',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} nie jest zainstalowany',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Odtwórz w zewnętrznym odtwarzaczu',
'metadataEdit.editMetadata' => 'Edytuj...',
'metadataEdit.screenTitle' => 'Edytuj metadane',
@@ -2827,8 +2865,6 @@ extension on TranslationsPl {
'metadataEdit.summary' => 'Opis',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Tło',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kwadratowy obraz',
'metadataEdit.selectPoster' => 'Wybierz plakat',
@@ -2947,8 +2983,12 @@ extension on TranslationsPl {
'trackers.libraryFilter.noLibraries' => 'Brak dostępnych bibliotek',
'addServer.addJellyfinTitle' => 'Dodaj serwer Jellyfin',
'addServer.jellyfinUrlIntro' => 'Wpisz URL serwera, np. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami lub nowymi wierszami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.',
'addServer.serverUrl' => 'URL serwera',
'addServer.serverUrls' => 'URL-e serwera',
'addServer.findServer' => 'Znajdź serwer',
'addServer.searchingLocalServers' => 'Szukanie lokalnych serwerów Jellyfin...',
'addServer.localServers' => 'Lokalne serwery Jellyfin',
'addServer.username' => 'Nazwa użytkownika',
'addServer.password' => 'Hasło',
'addServer.signIn' => 'Zaloguj się',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonPt extends TranslationsCommonEn {
@override String get yes => 'Sim';
@override String get no => 'Não';
@override String get delete => 'Excluir';
@override String get edit => 'Editar';
@override String get shuffle => 'Aleatório';
@override String get addTo => 'Adicionar a...';
@override String get createNew => 'Criar novo';
@@ -253,6 +254,8 @@ class _TranslationsSettingsPt extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Mostrar temporada e episódio nos cartões de episódio';
@override String get showSeasonPostersOnTabs => 'Mostrar Pôsteres de Temporada nas Abas';
@override String get showSeasonPostersOnTabsDescription => 'Mostrar o pôster de cada temporada acima da aba';
@override String get tvFullCardLayout => 'Cartões TV completos';
@override String get tvFullCardLayoutDescription => 'Usar cartões de TV só com imagem e nomes dos atores sobrepostos';
@override String get hideSpoilers => 'Ocultar Spoilers de Episódios Não Assistidos';
@override String get hideSpoilersDescription => 'Desfocar miniaturas e descrições de episódios não vistos';
@override String get playerBackend => 'Backend do Player';
@@ -388,6 +391,8 @@ class _TranslationsSettingsPt extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Forçar layout TV. Para dispositivos sem detecção automática. Requer reinício.';
@override String get startInFullscreen => 'Iniciar em tela cheia';
@override String get startInFullscreenDescription => 'Abrir o Plezy em modo de tela cheia ao iniciar';
@override String get exitFullscreenOnPlayerClose => 'Sair do ecrã inteiro ao fechar o leitor';
@override String get exitFullscreenOnPlayerCloseDescription => 'Sair automaticamente do modo de ecrã inteiro ao fechar o leitor de vídeo';
@override String get autoHidePerformanceOverlay => 'Ocultar overlay de desempenho automaticamente';
@override String get autoHidePerformanceOverlayDescription => 'Desvanecer o overlay de desempenho com os controles de reprodução';
@override String get showNavBarLabels => 'Mostrar Rótulos da Barra de Navegação';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsPt extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Destravar rotação';
@override String get timerActive => 'Timer Ativo';
@override String playbackWillPauseIn({required Object duration}) => 'A reprodução pausará em ${duration}';
@override String get sleepTimerEndOfVideo => 'Fim do vídeo atual';
@override String get sleepTimerStopAtHeader => 'Parar em';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'A reprodução pausará no final deste vídeo';
@override String get stillWatching => 'Ainda assistindo?';
@override String pausingIn({required Object seconds}) => 'Pausando em ${seconds}s';
@override String get continueWatching => 'Continuar';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsPt extends TranslationsVideoControlsEn {
@override String get pipActive => 'Reproduzindo em Picture-in-Picture';
@override String get pipFailed => 'Falha ao iniciar picture-in-picture';
@override String get screenshotSaved => 'Captura de tela salva';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsPt pipErrors = _TranslationsVideoControlsPipErrorsPt._(_root);
@override String get chapters => 'Capítulos';
@override String get noChaptersAvailable => 'Nenhum capítulo disponível';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsPt extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sessão expirada para ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sessão expirada para ${count} servidores';
@override String get signInAgain => 'Entrar novamente';
@override String get editJellyfinTitle => 'Editar conexão Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Adicione ou remova URLs de ${serverName}. O Plezy usará a URL acessível com a menor latência.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsPt extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Velocidade de Reprodução';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Timer de Sono';
@override String get audioSync => 'Sincronia de Áudio';
@override String get subtitleSync => 'Sincronia de Legendas';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerPt extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Adicionar servidor Jellyfin';
@override String get jellyfinUrlIntro => 'Insira a URL do servidor, ex. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Insira uma ou mais URLs do servidor, separadas por vírgulas ou novas linhas. O Plezy usará a URL acessível com a menor latência.';
@override String get serverUrl => 'URL do servidor';
@override String get serverUrls => 'URLs do servidor';
@override String get findServer => 'Encontrar servidor';
@override String get searchingLocalServers => 'A procurar servidores Jellyfin locais...';
@override String get localServers => 'Servidores Jellyfin locais';
@override String get username => 'Usuário';
@override String get password => 'Senha';
@override String get signIn => 'Entrar';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsPt extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Aumentar Velocidade';
@override String get speedDecrease => 'Diminuir Velocidade';
@override String get speedReset => 'Redefinir Velocidade';
@override String get zoomIn => 'Aumentar zoom';
@override String get zoomOut => 'Diminuir zoom';
@override String get zoomReset => 'Redefinir zoom';
@override String get subSeekNext => 'Ir para Próxima Legenda';
@override String get subSeekPrev => 'Ir para Legenda Anterior';
@override String get shaderToggle => 'Alternar Shaders';
@@ -1833,6 +1853,7 @@ extension on TranslationsPt {
'common.yes' => 'Sim',
'common.no' => 'Não',
'common.delete' => 'Excluir',
'common.edit' => 'Editar',
'common.shuffle' => 'Aleatório',
'common.addTo' => 'Adicionar a...',
'common.createNew' => 'Criar novo',
@@ -1916,6 +1937,8 @@ extension on TranslationsPt {
'settings.showEpisodeNumberOnCardsDescription' => 'Mostrar temporada e episódio nos cartões de episódio',
'settings.showSeasonPostersOnTabs' => 'Mostrar Pôsteres de Temporada nas Abas',
'settings.showSeasonPostersOnTabsDescription' => 'Mostrar o pôster de cada temporada acima da aba',
'settings.tvFullCardLayout' => 'Cartões TV completos',
'settings.tvFullCardLayoutDescription' => 'Usar cartões de TV só com imagem e nomes dos atores sobrepostos',
'settings.hideSpoilers' => 'Ocultar Spoilers de Episódios Não Assistidos',
'settings.hideSpoilersDescription' => 'Desfocar miniaturas e descrições de episódios não vistos',
'settings.playerBackend' => 'Backend do Player',
@@ -2051,6 +2074,8 @@ extension on TranslationsPt {
'settings.forceTvModeDescription' => 'Forçar layout TV. Para dispositivos sem detecção automática. Requer reinício.',
'settings.startInFullscreen' => 'Iniciar em tela cheia',
'settings.startInFullscreenDescription' => 'Abrir o Plezy em modo de tela cheia ao iniciar',
'settings.exitFullscreenOnPlayerClose' => 'Sair do ecrã inteiro ao fechar o leitor',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Sair automaticamente do modo de ecrã inteiro ao fechar o leitor de vídeo',
'settings.autoHidePerformanceOverlay' => 'Ocultar overlay de desempenho automaticamente',
'settings.autoHidePerformanceOverlayDescription' => 'Desvanecer o overlay de desempenho com os controles de reprodução',
'settings.showNavBarLabels' => 'Mostrar Rótulos da Barra de Navegação',
@@ -2089,6 +2114,9 @@ extension on TranslationsPt {
'hotkeys.actions.speedIncrease' => 'Aumentar Velocidade',
'hotkeys.actions.speedDecrease' => 'Diminuir Velocidade',
'hotkeys.actions.speedReset' => 'Redefinir Velocidade',
'hotkeys.actions.zoomIn' => 'Aumentar zoom',
'hotkeys.actions.zoomOut' => 'Diminuir zoom',
'hotkeys.actions.zoomReset' => 'Redefinir zoom',
'hotkeys.actions.subSeekNext' => 'Ir para Próxima Legenda',
'hotkeys.actions.subSeekPrev' => 'Ir para Legenda Anterior',
'hotkeys.actions.shaderToggle' => 'Alternar Shaders',
@@ -2172,6 +2200,10 @@ extension on TranslationsPt {
'videoControls.unlockRotation' => 'Destravar rotação',
'videoControls.timerActive' => 'Timer Ativo',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'A reprodução pausará em ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Fim do vídeo atual',
'videoControls.sleepTimerStopAtHeader' => 'Parar em',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'A reprodução pausará no final deste vídeo',
'videoControls.stillWatching' => 'Ainda assistindo?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausando em ${seconds}s',
'videoControls.continueWatching' => 'Continuar',
@@ -2214,6 +2246,7 @@ extension on TranslationsPt {
'videoControls.pipActive' => 'Reproduzindo em Picture-in-Picture',
'videoControls.pipFailed' => 'Falha ao iniciar picture-in-picture',
'videoControls.screenshotSaved' => 'Captura de tela salva',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Requer Android 8.0 ou superior',
'videoControls.pipErrors.iosVersion' => 'Requer iOS 15.0 ou superior',
'videoControls.pipErrors.permissionDisabled' => 'Picture-in-picture está desativado. Ative nas configurações do sistema.',
@@ -2300,6 +2333,8 @@ extension on TranslationsPt {
'mpvConfig.presetSaved' => 'Predefinição salva',
'mpvConfig.presetLoaded' => 'Predefinição carregada',
'mpvConfig.presetDeleted' => 'Predefinição excluída',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Tem certeza que deseja excluir esta predefinição?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Confirmar Ação',
@@ -2313,8 +2348,6 @@ extension on TranslationsPt {
'profiles.signOut' => 'Sair',
'profiles.signOutPlexTitle' => 'Sair do Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Remover ${displayName} e todos os usuários Plex Home? Você pode entrar novamente quando quiser.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Saiu do Plex.',
'profiles.signOutFailed' => 'Falha ao sair.',
'profiles.sectionTitle' => 'Perfis',
@@ -2369,6 +2402,8 @@ extension on TranslationsPt {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sessão expirada para ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sessão expirada para ${count} servidores',
'connections.signInAgain' => 'Entrar novamente',
'connections.editJellyfinTitle' => 'Editar conexão Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Adicione ou remova URLs de ${serverName}. O Plezy usará a URL acessível com a menor latência.',
'discover.title' => 'Descobrir',
'discover.switchProfile' => 'Trocar Perfil',
'discover.noContentAvailable' => 'Nenhum conteúdo disponível',
@@ -2789,6 +2824,7 @@ extension on TranslationsPt {
'companionRemote.remote.audio' => 'Áudio',
'companionRemote.remote.searchHint' => 'Buscar no desktop...',
'videoSettings.playbackSpeed' => 'Velocidade de Reprodução',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Timer de Sono',
'videoSettings.audioSync' => 'Sincronia de Áudio',
'videoSettings.subtitleSync' => 'Sincronia de Legendas',
@@ -2811,6 +2847,8 @@ extension on TranslationsPt {
'externalPlayer.off' => 'Desativado',
'externalPlayer.launchFailed' => 'Falha ao abrir player externo',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} não está instalado',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Reproduzir no Player Externo',
'metadataEdit.editMetadata' => 'Editar...',
'metadataEdit.screenTitle' => 'Editar Metadados',
@@ -2827,8 +2865,6 @@ extension on TranslationsPt {
'metadataEdit.summary' => 'Sinopse',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Plano de Fundo',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Imagem Quadrada',
'metadataEdit.selectPoster' => 'Selecionar Poster',
@@ -2947,8 +2983,12 @@ extension on TranslationsPt {
'trackers.libraryFilter.noLibraries' => 'Nenhuma biblioteca disponível',
'addServer.addJellyfinTitle' => 'Adicionar servidor Jellyfin',
'addServer.jellyfinUrlIntro' => 'Insira a URL do servidor, ex. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Insira uma ou mais URLs do servidor, separadas por vírgulas ou novas linhas. O Plezy usará a URL acessível com a menor latência.',
'addServer.serverUrl' => 'URL do servidor',
'addServer.serverUrls' => 'URLs do servidor',
'addServer.findServer' => 'Encontrar servidor',
'addServer.searchingLocalServers' => 'A procurar servidores Jellyfin locais...',
'addServer.localServers' => 'Servidores Jellyfin locais',
'addServer.username' => 'Usuário',
'addServer.password' => 'Senha',
'addServer.signIn' => 'Entrar',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonRu extends TranslationsCommonEn {
@override String get yes => 'Да';
@override String get no => 'Нет';
@override String get delete => 'Удалить';
@override String get edit => 'Редактировать';
@override String get shuffle => 'Перемешать';
@override String get addTo => 'Добавить в...';
@override String get createNew => 'Создать новый';
@@ -253,6 +254,8 @@ class _TranslationsSettingsRu extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Показывать номер сезона и серии на карточках серий';
@override String get showSeasonPostersOnTabs => 'Показывать постеры сезонов на вкладках';
@override String get showSeasonPostersOnTabsDescription => 'Показывать постер каждого сезона над его вкладкой';
@override String get tvFullCardLayout => 'Полные TV-карточки';
@override String get tvFullCardLayoutDescription => 'Использовать TV-карточки только с изображением и именами актёров поверх него';
@override String get hideSpoilers => 'Скрыть спойлеры непросмотренных эпизодов';
@override String get hideSpoilersDescription => 'Размывать миниатюры и описания непросмотренных серий';
@override String get playerBackend => 'Бэкенд плеера';
@@ -388,6 +391,8 @@ class _TranslationsSettingsRu extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Принудительно включить ТВ-интерфейс. Для устройств без автоопределения. Требуется перезапуск.';
@override String get startInFullscreen => 'Запускать в полноэкранном режиме';
@override String get startInFullscreenDescription => 'Открывать Plezy в полноэкранном режиме при запуске';
@override String get exitFullscreenOnPlayerClose => 'Выходить из полноэкранного режима при закрытии плеера';
@override String get exitFullscreenOnPlayerCloseDescription => 'Автоматически выходить из полноэкранного режима при закрытии видеоплеера';
@override String get autoHidePerformanceOverlay => 'Автоскрытие оверлея производительности';
@override String get autoHidePerformanceOverlayDescription => 'Скрывать оверлей производительности вместе с элементами управления воспроизведением';
@override String get showNavBarLabels => 'Показывать подписи панели навигации';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsRu extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Разблокировать поворот';
@override String get timerActive => 'Таймер активен';
@override String playbackWillPauseIn({required Object duration}) => 'Воспроизведение будет приостановлено через ${duration}';
@override String get sleepTimerEndOfVideo => 'Конец текущего видео';
@override String get sleepTimerStopAtHeader => 'Остановить на';
@override String get sleepTimerDurationHeader => 'Таймер';
@override String get playbackWillPauseAtEnd => 'Воспроизведение будет приостановлено в конце этого видео';
@override String get stillWatching => 'Всё ещё смотрите?';
@override String pausingIn({required Object seconds}) => 'Пауза через ${seconds}с';
@override String get continueWatching => 'Продолжить';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsRu extends TranslationsVideoControlsEn {
@override String get pipActive => 'Воспроизводится в режиме «картинка в картинке»';
@override String get pipFailed => 'Не удалось запустить режим «картинка в картинке»';
@override String get screenshotSaved => 'Снимок экрана сохранён';
@override String zoomPercent({required Object percent}) => 'Масштаб ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsRu pipErrors = _TranslationsVideoControlsPipErrorsRu._(_root);
@override String get chapters => 'Главы';
@override String get noChaptersAvailable => 'Главы недоступны';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsRu extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Сессия истекла для ${name}';
@override String sessionExpiredMany({required Object count}) => 'Сессия истекла для ${count} серверов';
@override String get signInAgain => 'Войти снова';
@override String get editJellyfinTitle => 'Изменить подключение Jellyfin';
@override String editJellyfinIntro({required Object serverName}) => 'Добавьте или удалите URL для ${serverName}. Plezy будет использовать доступный URL с минимальной задержкой.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsRu extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Скорость воспроизведения';
@override String get zoom => 'Масштаб';
@override String get sleepTimer => 'Таймер сна';
@override String get audioSync => 'Синхронизация аудио';
@override String get subtitleSync => 'Синхронизация субтитров';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerRu extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Добавить сервер Jellyfin';
@override String get jellyfinUrlIntro => 'Введите URL сервера, например `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Введите один или несколько URL сервера, разделяя их запятыми или новыми строками. Plezy будет использовать доступный URL с минимальной задержкой.';
@override String get serverUrl => 'URL сервера';
@override String get serverUrls => 'URL сервера';
@override String get findServer => 'Найти сервер';
@override String get searchingLocalServers => 'Поиск локальных серверов Jellyfin...';
@override String get localServers => 'Локальные серверы Jellyfin';
@override String get username => 'Имя пользователя';
@override String get password => 'Пароль';
@override String get signIn => 'Войти';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsRu extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Увеличить скорость';
@override String get speedDecrease => 'Уменьшить скорость';
@override String get speedReset => 'Сбросить скорость';
@override String get zoomIn => 'Увеличить масштаб';
@override String get zoomOut => 'Уменьшить масштаб';
@override String get zoomReset => 'Сбросить масштаб';
@override String get subSeekNext => 'К следующему субтитру';
@override String get subSeekPrev => 'К предыдущему субтитру';
@override String get shaderToggle => 'Вкл./выкл. шейдеры';
@@ -1833,6 +1853,7 @@ extension on TranslationsRu {
'common.yes' => 'Да',
'common.no' => 'Нет',
'common.delete' => 'Удалить',
'common.edit' => 'Редактировать',
'common.shuffle' => 'Перемешать',
'common.addTo' => 'Добавить в...',
'common.createNew' => 'Создать новый',
@@ -1916,6 +1937,8 @@ extension on TranslationsRu {
'settings.showEpisodeNumberOnCardsDescription' => 'Показывать номер сезона и серии на карточках серий',
'settings.showSeasonPostersOnTabs' => 'Показывать постеры сезонов на вкладках',
'settings.showSeasonPostersOnTabsDescription' => 'Показывать постер каждого сезона над его вкладкой',
'settings.tvFullCardLayout' => 'Полные TV-карточки',
'settings.tvFullCardLayoutDescription' => 'Использовать TV-карточки только с изображением и именами актёров поверх него',
'settings.hideSpoilers' => 'Скрыть спойлеры непросмотренных эпизодов',
'settings.hideSpoilersDescription' => 'Размывать миниатюры и описания непросмотренных серий',
'settings.playerBackend' => 'Бэкенд плеера',
@@ -2051,6 +2074,8 @@ extension on TranslationsRu {
'settings.forceTvModeDescription' => 'Принудительно включить ТВ-интерфейс. Для устройств без автоопределения. Требуется перезапуск.',
'settings.startInFullscreen' => 'Запускать в полноэкранном режиме',
'settings.startInFullscreenDescription' => 'Открывать Plezy в полноэкранном режиме при запуске',
'settings.exitFullscreenOnPlayerClose' => 'Выходить из полноэкранного режима при закрытии плеера',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Автоматически выходить из полноэкранного режима при закрытии видеоплеера',
'settings.autoHidePerformanceOverlay' => 'Автоскрытие оверлея производительности',
'settings.autoHidePerformanceOverlayDescription' => 'Скрывать оверлей производительности вместе с элементами управления воспроизведением',
'settings.showNavBarLabels' => 'Показывать подписи панели навигации',
@@ -2089,6 +2114,9 @@ extension on TranslationsRu {
'hotkeys.actions.speedIncrease' => 'Увеличить скорость',
'hotkeys.actions.speedDecrease' => 'Уменьшить скорость',
'hotkeys.actions.speedReset' => 'Сбросить скорость',
'hotkeys.actions.zoomIn' => 'Увеличить масштаб',
'hotkeys.actions.zoomOut' => 'Уменьшить масштаб',
'hotkeys.actions.zoomReset' => 'Сбросить масштаб',
'hotkeys.actions.subSeekNext' => 'К следующему субтитру',
'hotkeys.actions.subSeekPrev' => 'К предыдущему субтитру',
'hotkeys.actions.shaderToggle' => 'Вкл./выкл. шейдеры',
@@ -2172,6 +2200,10 @@ extension on TranslationsRu {
'videoControls.unlockRotation' => 'Разблокировать поворот',
'videoControls.timerActive' => 'Таймер активен',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Воспроизведение будет приостановлено через ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Конец текущего видео',
'videoControls.sleepTimerStopAtHeader' => 'Остановить на',
'videoControls.sleepTimerDurationHeader' => 'Таймер',
'videoControls.playbackWillPauseAtEnd' => 'Воспроизведение будет приостановлено в конце этого видео',
'videoControls.stillWatching' => 'Всё ещё смотрите?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Пауза через ${seconds}с',
'videoControls.continueWatching' => 'Продолжить',
@@ -2214,6 +2246,7 @@ extension on TranslationsRu {
'videoControls.pipActive' => 'Воспроизводится в режиме «картинка в картинке»',
'videoControls.pipFailed' => 'Не удалось запустить режим «картинка в картинке»',
'videoControls.screenshotSaved' => 'Снимок экрана сохранён',
'videoControls.zoomPercent' => ({required Object percent}) => 'Масштаб ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Требуется Android 8.0 или новее',
'videoControls.pipErrors.iosVersion' => 'Требуется iOS 15.0 или новее',
'videoControls.pipErrors.permissionDisabled' => 'Картинка-в-картинке отключена. Включите ее в системных настройках.',
@@ -2300,6 +2333,8 @@ extension on TranslationsRu {
'mpvConfig.presetSaved' => 'Пресет сохранён',
'mpvConfig.presetLoaded' => 'Пресет загружен',
'mpvConfig.presetDeleted' => 'Пресет удалён',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Вы уверены, что хотите удалить этот пресет?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Подтвердить действие',
@@ -2313,8 +2348,6 @@ extension on TranslationsRu {
'profiles.signOut' => 'Выйти',
'profiles.signOutPlexTitle' => 'Выйти из Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Удалить ${displayName} и всех пользователей Plex Home? Вы сможете войти снова в любое время.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Вы вышли из Plex.',
'profiles.signOutFailed' => 'Не удалось выйти.',
'profiles.sectionTitle' => 'Профили',
@@ -2369,6 +2402,8 @@ extension on TranslationsRu {
'connections.sessionExpiredOne' => ({required Object name}) => 'Сессия истекла для ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Сессия истекла для ${count} серверов',
'connections.signInAgain' => 'Войти снова',
'connections.editJellyfinTitle' => 'Изменить подключение Jellyfin',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Добавьте или удалите URL для ${serverName}. Plezy будет использовать доступный URL с минимальной задержкой.',
'discover.title' => 'Обзор',
'discover.switchProfile' => 'Сменить профиль',
'discover.noContentAvailable' => 'Контент недоступен',
@@ -2789,6 +2824,7 @@ extension on TranslationsRu {
'companionRemote.remote.audio' => 'Аудио',
'companionRemote.remote.searchHint' => 'Поиск на десктопе...',
'videoSettings.playbackSpeed' => 'Скорость воспроизведения',
'videoSettings.zoom' => 'Масштаб',
'videoSettings.sleepTimer' => 'Таймер сна',
'videoSettings.audioSync' => 'Синхронизация аудио',
'videoSettings.subtitleSync' => 'Синхронизация субтитров',
@@ -2811,6 +2847,8 @@ extension on TranslationsRu {
'externalPlayer.off' => 'Выкл.',
'externalPlayer.launchFailed' => 'Не удалось открыть внешний плеер',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} не установлен',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Воспроизвести во внешнем плеере',
'metadataEdit.editMetadata' => 'Редактировать...',
'metadataEdit.screenTitle' => 'Редактировать метаданные',
@@ -2827,8 +2865,6 @@ extension on TranslationsRu {
'metadataEdit.summary' => 'Описание',
'metadataEdit.poster' => 'Постер',
'metadataEdit.background' => 'Фон',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Логотип',
'metadataEdit.squareArt' => 'Квадратное изображение',
'metadataEdit.selectPoster' => 'Выбрать постер',
@@ -2947,8 +2983,12 @@ extension on TranslationsRu {
'trackers.libraryFilter.noLibraries' => 'Библиотеки недоступны',
'addServer.addJellyfinTitle' => 'Добавить сервер Jellyfin',
'addServer.jellyfinUrlIntro' => 'Введите URL сервера, например `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Введите один или несколько URL сервера, разделяя их запятыми или новыми строками. Plezy будет использовать доступный URL с минимальной задержкой.',
'addServer.serverUrl' => 'URL сервера',
'addServer.serverUrls' => 'URL сервера',
'addServer.findServer' => 'Найти сервер',
'addServer.searchingLocalServers' => 'Поиск локальных серверов Jellyfin...',
'addServer.localServers' => 'Локальные серверы Jellyfin',
'addServer.username' => 'Имя пользователя',
'addServer.password' => 'Пароль',
'addServer.signIn' => 'Войти',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonSv extends TranslationsCommonEn {
@override String get yes => 'Ja';
@override String get no => 'Nej';
@override String get delete => 'Ta bort';
@override String get edit => 'Redigera';
@override String get shuffle => 'Blanda';
@override String get addTo => 'Lägg till i...';
@override String get createNew => 'Skapa ny';
@@ -253,6 +254,8 @@ class _TranslationsSettingsSv extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => 'Visa säsongs- och avsnittsnummer på avsnittskort';
@override String get showSeasonPostersOnTabs => 'Visa säsongsaffischer på flikar';
@override String get showSeasonPostersOnTabsDescription => 'Visa varje säsongs affisch ovanför fliken';
@override String get tvFullCardLayout => 'Heltäckande TV-kort';
@override String get tvFullCardLayoutDescription => 'Använd TV-kort med enbart bild och skådespelarnamn ovanpå';
@override String get hideSpoilers => 'Dölj spoilers för osedda avsnitt';
@override String get hideSpoilersDescription => 'Sudda miniatyrbilder och beskrivningar för osedda avsnitt';
@override String get playerBackend => 'Spelarmotor';
@@ -388,6 +391,8 @@ class _TranslationsSettingsSv extends TranslationsSettingsEn {
@override String get forceTvModeDescription => 'Tvinga TV-layout. För enheter som inte upptäcks automatiskt. Kräver omstart.';
@override String get startInFullscreen => 'Starta i helskärm';
@override String get startInFullscreenDescription => 'Öppna Plezy i helskärm vid start';
@override String get exitFullscreenOnPlayerClose => 'Avsluta helskärm vid stängning av spelare';
@override String get exitFullscreenOnPlayerCloseDescription => 'Avslutar automatiskt helskärmsläge när videospelaren stängs';
@override String get autoHidePerformanceOverlay => 'Dölj prestandaöverlagring automatiskt';
@override String get autoHidePerformanceOverlayDescription => 'Tona prestandaöverlagringen med uppspelningskontrollerna';
@override String get showNavBarLabels => 'Visa navigeringsfältets etiketter';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsSv extends TranslationsVideoControlsEn {
@override String get unlockRotation => 'Lås upp rotation';
@override String get timerActive => 'Timer aktiv';
@override String playbackWillPauseIn({required Object duration}) => 'Uppspelningen pausas om ${duration}';
@override String get sleepTimerEndOfVideo => 'Slutet av aktuell video';
@override String get sleepTimerStopAtHeader => 'Stoppa vid';
@override String get sleepTimerDurationHeader => 'Timer';
@override String get playbackWillPauseAtEnd => 'Uppspelningen pausas i slutet av denna video';
@override String get stillWatching => 'Tittar du fortfarande?';
@override String pausingIn({required Object seconds}) => 'Pausar om ${seconds}s';
@override String get continueWatching => 'Fortsätt';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsSv extends TranslationsVideoControlsEn {
@override String get pipActive => 'Spelar i bild-i-bild';
@override String get pipFailed => 'Bild-i-bild kunde inte starta';
@override String get screenshotSaved => 'Skärmbild sparad';
@override String zoomPercent({required Object percent}) => 'Zoom ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsSv pipErrors = _TranslationsVideoControlsPipErrorsSv._(_root);
@override String get chapters => 'Kapitel';
@override String get noChaptersAvailable => 'Inga kapitel tillgängliga';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsSv extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => 'Sessionen har gått ut för ${name}';
@override String sessionExpiredMany({required Object count}) => 'Sessionen har gått ut för ${count} servrar';
@override String get signInAgain => 'Logga in igen';
@override String get editJellyfinTitle => 'Redigera Jellyfin-anslutning';
@override String editJellyfinIntro({required Object serverName}) => 'Lägg till eller ta bort URL:er för ${serverName}. Plezy använder den nåbara URL:en med lägst latens.';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsSv extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => 'Uppspelningshastighet';
@override String get zoom => 'Zoom';
@override String get sleepTimer => 'Sovtimer';
@override String get audioSync => 'Ljudsynkronisering';
@override String get subtitleSync => 'Undertextsynkronisering';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerSv extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => 'Lägg till Jellyfin-server';
@override String get jellyfinUrlIntro => 'Ange server-URL, t.ex. `https://jellyfin.example.com`.';
@override String get jellyfinUrlsIntro => 'Ange en eller flera server-URL:er, separerade med kommatecken eller nya rader. Plezy använder den nåbara URL:en med lägst latens.';
@override String get serverUrl => 'Server-URL';
@override String get serverUrls => 'Server-URL:er';
@override String get findServer => 'Hitta server';
@override String get searchingLocalServers => 'Söker efter lokala Jellyfin-servrar...';
@override String get localServers => 'Lokala Jellyfin-servrar';
@override String get username => 'Användarnamn';
@override String get password => 'Lösenord';
@override String get signIn => 'Logga in';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsSv extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => 'Öka hastighet';
@override String get speedDecrease => 'Minska hastighet';
@override String get speedReset => 'Återställ hastighet';
@override String get zoomIn => 'Zooma in';
@override String get zoomOut => 'Zooma ut';
@override String get zoomReset => 'Återställ zoom';
@override String get subSeekNext => 'Hoppa till nästa undertext';
@override String get subSeekPrev => 'Hoppa till föregående undertext';
@override String get shaderToggle => 'Växla shaders';
@@ -1833,6 +1853,7 @@ extension on TranslationsSv {
'common.yes' => 'Ja',
'common.no' => 'Nej',
'common.delete' => 'Ta bort',
'common.edit' => 'Redigera',
'common.shuffle' => 'Blanda',
'common.addTo' => 'Lägg till i...',
'common.createNew' => 'Skapa ny',
@@ -1916,6 +1937,8 @@ extension on TranslationsSv {
'settings.showEpisodeNumberOnCardsDescription' => 'Visa säsongs- och avsnittsnummer på avsnittskort',
'settings.showSeasonPostersOnTabs' => 'Visa säsongsaffischer på flikar',
'settings.showSeasonPostersOnTabsDescription' => 'Visa varje säsongs affisch ovanför fliken',
'settings.tvFullCardLayout' => 'Heltäckande TV-kort',
'settings.tvFullCardLayoutDescription' => 'Använd TV-kort med enbart bild och skådespelarnamn ovanpå',
'settings.hideSpoilers' => 'Dölj spoilers för osedda avsnitt',
'settings.hideSpoilersDescription' => 'Sudda miniatyrbilder och beskrivningar för osedda avsnitt',
'settings.playerBackend' => 'Spelarmotor',
@@ -2051,6 +2074,8 @@ extension on TranslationsSv {
'settings.forceTvModeDescription' => 'Tvinga TV-layout. För enheter som inte upptäcks automatiskt. Kräver omstart.',
'settings.startInFullscreen' => 'Starta i helskärm',
'settings.startInFullscreenDescription' => 'Öppna Plezy i helskärm vid start',
'settings.exitFullscreenOnPlayerClose' => 'Avsluta helskärm vid stängning av spelare',
'settings.exitFullscreenOnPlayerCloseDescription' => 'Avslutar automatiskt helskärmsläge när videospelaren stängs',
'settings.autoHidePerformanceOverlay' => 'Dölj prestandaöverlagring automatiskt',
'settings.autoHidePerformanceOverlayDescription' => 'Tona prestandaöverlagringen med uppspelningskontrollerna',
'settings.showNavBarLabels' => 'Visa navigeringsfältets etiketter',
@@ -2089,6 +2114,9 @@ extension on TranslationsSv {
'hotkeys.actions.speedIncrease' => 'Öka hastighet',
'hotkeys.actions.speedDecrease' => 'Minska hastighet',
'hotkeys.actions.speedReset' => 'Återställ hastighet',
'hotkeys.actions.zoomIn' => 'Zooma in',
'hotkeys.actions.zoomOut' => 'Zooma ut',
'hotkeys.actions.zoomReset' => 'Återställ zoom',
'hotkeys.actions.subSeekNext' => 'Hoppa till nästa undertext',
'hotkeys.actions.subSeekPrev' => 'Hoppa till föregående undertext',
'hotkeys.actions.shaderToggle' => 'Växla shaders',
@@ -2172,6 +2200,10 @@ extension on TranslationsSv {
'videoControls.unlockRotation' => 'Lås upp rotation',
'videoControls.timerActive' => 'Timer aktiv',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Uppspelningen pausas om ${duration}',
'videoControls.sleepTimerEndOfVideo' => 'Slutet av aktuell video',
'videoControls.sleepTimerStopAtHeader' => 'Stoppa vid',
'videoControls.sleepTimerDurationHeader' => 'Timer',
'videoControls.playbackWillPauseAtEnd' => 'Uppspelningen pausas i slutet av denna video',
'videoControls.stillWatching' => 'Tittar du fortfarande?',
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausar om ${seconds}s',
'videoControls.continueWatching' => 'Fortsätt',
@@ -2214,6 +2246,7 @@ extension on TranslationsSv {
'videoControls.pipActive' => 'Spelar i bild-i-bild',
'videoControls.pipFailed' => 'Bild-i-bild kunde inte starta',
'videoControls.screenshotSaved' => 'Skärmbild sparad',
'videoControls.zoomPercent' => ({required Object percent}) => 'Zoom ${percent}%',
'videoControls.pipErrors.androidVersion' => 'Kräver Android 8.0 eller nyare',
'videoControls.pipErrors.iosVersion' => 'Kräver iOS 15.0 eller nyare',
'videoControls.pipErrors.permissionDisabled' => 'Bild-i-bild är inaktiverat. Aktivera det i systeminställningarna.',
@@ -2300,6 +2333,8 @@ extension on TranslationsSv {
'mpvConfig.presetSaved' => 'Förval sparat',
'mpvConfig.presetLoaded' => 'Förval laddat',
'mpvConfig.presetDeleted' => 'Förval borttaget',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => 'Är du säker på att du vill ta bort detta förval?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => 'Bekräfta åtgärd',
@@ -2313,8 +2348,6 @@ extension on TranslationsSv {
'profiles.signOut' => 'Logga ut',
'profiles.signOutPlexTitle' => 'Logga ut från Plex?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => 'Ta bort ${displayName} och alla Plex Home-användare? Du kan logga in igen när som helst.',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => 'Utloggad från Plex.',
'profiles.signOutFailed' => 'Utloggningen misslyckades.',
'profiles.sectionTitle' => 'Profiler',
@@ -2369,6 +2402,8 @@ extension on TranslationsSv {
'connections.sessionExpiredOne' => ({required Object name}) => 'Sessionen har gått ut för ${name}',
'connections.sessionExpiredMany' => ({required Object count}) => 'Sessionen har gått ut för ${count} servrar',
'connections.signInAgain' => 'Logga in igen',
'connections.editJellyfinTitle' => 'Redigera Jellyfin-anslutning',
'connections.editJellyfinIntro' => ({required Object serverName}) => 'Lägg till eller ta bort URL:er för ${serverName}. Plezy använder den nåbara URL:en med lägst latens.',
'discover.title' => 'Upptäck',
'discover.switchProfile' => 'Byt profil',
'discover.noContentAvailable' => 'Inget innehåll tillgängligt',
@@ -2789,6 +2824,7 @@ extension on TranslationsSv {
'companionRemote.remote.audio' => 'Ljud',
'companionRemote.remote.searchHint' => 'Sök på datorn...',
'videoSettings.playbackSpeed' => 'Uppspelningshastighet',
'videoSettings.zoom' => 'Zoom',
'videoSettings.sleepTimer' => 'Sovtimer',
'videoSettings.audioSync' => 'Ljudsynkronisering',
'videoSettings.subtitleSync' => 'Undertextsynkronisering',
@@ -2811,6 +2847,8 @@ extension on TranslationsSv {
'externalPlayer.off' => 'Av',
'externalPlayer.launchFailed' => 'Kunde inte öppna extern spelare',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} är inte installerad',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => 'Spela i extern spelare',
'metadataEdit.editMetadata' => 'Redigera...',
'metadataEdit.screenTitle' => 'Redigera metadata',
@@ -2827,8 +2865,6 @@ extension on TranslationsSv {
'metadataEdit.summary' => 'Sammanfattning',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Bakgrund',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => 'Logotyp',
'metadataEdit.squareArt' => 'Kvadratisk bild',
'metadataEdit.selectPoster' => 'Välj poster',
@@ -2947,8 +2983,12 @@ extension on TranslationsSv {
'trackers.libraryFilter.noLibraries' => 'Inga bibliotek tillgängliga',
'addServer.addJellyfinTitle' => 'Lägg till Jellyfin-server',
'addServer.jellyfinUrlIntro' => 'Ange server-URL, t.ex. `https://jellyfin.example.com`.',
'addServer.jellyfinUrlsIntro' => 'Ange en eller flera server-URL:er, separerade med kommatecken eller nya rader. Plezy använder den nåbara URL:en med lägst latens.',
'addServer.serverUrl' => 'Server-URL',
'addServer.serverUrls' => 'Server-URL:er',
'addServer.findServer' => 'Hitta server',
'addServer.searchingLocalServers' => 'Söker efter lokala Jellyfin-servrar...',
'addServer.localServers' => 'Lokala Jellyfin-servrar',
'addServer.username' => 'Användarnamn',
'addServer.password' => 'Lösenord',
'addServer.signIn' => 'Logga in',
+44 -4
View File
@@ -143,6 +143,7 @@ class _TranslationsCommonZh extends TranslationsCommonEn {
@override String get yes => '是';
@override String get no => '否';
@override String get delete => '删除';
@override String get edit => '编辑';
@override String get shuffle => '随机播放';
@override String get addTo => '添加到...';
@override String get createNew => '新建';
@@ -253,6 +254,8 @@ class _TranslationsSettingsZh extends TranslationsSettingsEn {
@override String get showEpisodeNumberOnCardsDescription => '在剧集卡片上显示季和集编号';
@override String get showSeasonPostersOnTabs => '在选项卡上显示季海报';
@override String get showSeasonPostersOnTabsDescription => '在每季标签上方显示该季海报';
@override String get tvFullCardLayout => '完整 TV 卡片';
@override String get tvFullCardLayoutDescription => '使用仅显示图片的 TV 卡片,并叠加演员姓名';
@override String get hideSpoilers => '隐藏未看剧集的剧透内容';
@override String get hideSpoilersDescription => '模糊未观看剧集的缩略图和描述';
@override String get playerBackend => '播放器引擎';
@@ -388,6 +391,8 @@ class _TranslationsSettingsZh extends TranslationsSettingsEn {
@override String get forceTvModeDescription => '强制 TV 布局。适用于无法自动检测的设备。需要重启。';
@override String get startInFullscreen => '以全屏模式启动';
@override String get startInFullscreenDescription => '启动时以全屏模式打开 Plezy';
@override String get exitFullscreenOnPlayerClose => '关闭播放器时退出全屏';
@override String get exitFullscreenOnPlayerCloseDescription => '关闭视频播放器时自动退出全屏模式';
@override String get autoHidePerformanceOverlay => '自动隐藏性能叠加层';
@override String get autoHidePerformanceOverlayDescription => '性能叠加层随播放控件一起淡入淡出';
@override String get showNavBarLabels => '显示导航栏标签';
@@ -560,6 +565,10 @@ class _TranslationsVideoControlsZh extends TranslationsVideoControlsEn {
@override String get unlockRotation => '解锁旋转';
@override String get timerActive => '定时器已激活';
@override String playbackWillPauseIn({required Object duration}) => '播放将在 ${duration} 后暂停';
@override String get sleepTimerEndOfVideo => '当前视频结束时';
@override String get sleepTimerStopAtHeader => '停止于';
@override String get sleepTimerDurationHeader => '定时器';
@override String get playbackWillPauseAtEnd => '播放将在此视频结束时暂停';
@override String get stillWatching => '还在看吗?';
@override String pausingIn({required Object seconds}) => '${seconds}秒后暂停';
@override String get continueWatching => '继续';
@@ -602,6 +611,7 @@ class _TranslationsVideoControlsZh extends TranslationsVideoControlsEn {
@override String get pipActive => '正在画中画模式中播放';
@override String get pipFailed => '画中画启动失败';
@override String get screenshotSaved => '截图已保存';
@override String zoomPercent({required Object percent}) => '缩放 ${percent}%';
@override late final _TranslationsVideoControlsPipErrorsZh pipErrors = _TranslationsVideoControlsPipErrorsZh._(_root);
@override String get chapters => '章节';
@override String get noChaptersAvailable => '没有可用的章节';
@@ -812,6 +822,8 @@ class _TranslationsConnectionsZh extends TranslationsConnectionsEn {
@override String sessionExpiredOne({required Object name}) => '${name} 的会话已过期';
@override String sessionExpiredMany({required Object count}) => '${count} 个服务器的会话已过期';
@override String get signInAgain => '重新登录';
@override String get editJellyfinTitle => '编辑 Jellyfin 连接';
@override String editJellyfinIntro({required Object serverName}) => '添加或移除 ${serverName} 的 URL。Plezy 会使用可访问且延迟最低的 URL。';
}
// Path: discover
@@ -1303,6 +1315,7 @@ class _TranslationsVideoSettingsZh extends TranslationsVideoSettingsEn {
// Translations
@override String get playbackSpeed => '播放速度';
@override String get zoom => '缩放';
@override String get sleepTimer => '睡眠定时器';
@override String get audioSync => '音频同步';
@override String get subtitleSync => '字幕同步';
@@ -1502,8 +1515,12 @@ class _TranslationsAddServerZh extends TranslationsAddServerEn {
// Translations
@override String get addJellyfinTitle => '添加 Jellyfin 服务器';
@override String get jellyfinUrlIntro => '输入服务器 URL,例如 `https://jellyfin.example.com`。';
@override String get jellyfinUrlsIntro => '输入一个或多个服务器 URL,用逗号或换行分隔。Plezy 会使用可访问且延迟最低的 URL。';
@override String get serverUrl => '服务器 URL';
@override String get serverUrls => '服务器 URL';
@override String get findServer => '查找服务器';
@override String get searchingLocalServers => '正在查找本地 Jellyfin 服务器...';
@override String get localServers => '本地 Jellyfin 服务器';
@override String get username => '用户名';
@override String get password => '密码';
@override String get signIn => '登录';
@@ -1558,6 +1575,9 @@ class _TranslationsHotkeysActionsZh extends TranslationsHotkeysActionsEn {
@override String get speedIncrease => '加速';
@override String get speedDecrease => '减速';
@override String get speedReset => '重置速度';
@override String get zoomIn => '放大';
@override String get zoomOut => '缩小';
@override String get zoomReset => '重置缩放';
@override String get subSeekNext => '跳转到下一字幕';
@override String get subSeekPrev => '跳转到上一字幕';
@override String get shaderToggle => '切换着色器';
@@ -1833,6 +1853,7 @@ extension on TranslationsZh {
'common.yes' => '是',
'common.no' => '否',
'common.delete' => '删除',
'common.edit' => '编辑',
'common.shuffle' => '随机播放',
'common.addTo' => '添加到...',
'common.createNew' => '新建',
@@ -1916,6 +1937,8 @@ extension on TranslationsZh {
'settings.showEpisodeNumberOnCardsDescription' => '在剧集卡片上显示季和集编号',
'settings.showSeasonPostersOnTabs' => '在选项卡上显示季海报',
'settings.showSeasonPostersOnTabsDescription' => '在每季标签上方显示该季海报',
'settings.tvFullCardLayout' => '完整 TV 卡片',
'settings.tvFullCardLayoutDescription' => '使用仅显示图片的 TV 卡片,并叠加演员姓名',
'settings.hideSpoilers' => '隐藏未看剧集的剧透内容',
'settings.hideSpoilersDescription' => '模糊未观看剧集的缩略图和描述',
'settings.playerBackend' => '播放器引擎',
@@ -2051,6 +2074,8 @@ extension on TranslationsZh {
'settings.forceTvModeDescription' => '强制 TV 布局。适用于无法自动检测的设备。需要重启。',
'settings.startInFullscreen' => '以全屏模式启动',
'settings.startInFullscreenDescription' => '启动时以全屏模式打开 Plezy',
'settings.exitFullscreenOnPlayerClose' => '关闭播放器时退出全屏',
'settings.exitFullscreenOnPlayerCloseDescription' => '关闭视频播放器时自动退出全屏模式',
'settings.autoHidePerformanceOverlay' => '自动隐藏性能叠加层',
'settings.autoHidePerformanceOverlayDescription' => '性能叠加层随播放控件一起淡入淡出',
'settings.showNavBarLabels' => '显示导航栏标签',
@@ -2089,6 +2114,9 @@ extension on TranslationsZh {
'hotkeys.actions.speedIncrease' => '加速',
'hotkeys.actions.speedDecrease' => '减速',
'hotkeys.actions.speedReset' => '重置速度',
'hotkeys.actions.zoomIn' => '放大',
'hotkeys.actions.zoomOut' => '缩小',
'hotkeys.actions.zoomReset' => '重置缩放',
'hotkeys.actions.subSeekNext' => '跳转到下一字幕',
'hotkeys.actions.subSeekPrev' => '跳转到上一字幕',
'hotkeys.actions.shaderToggle' => '切换着色器',
@@ -2172,6 +2200,10 @@ extension on TranslationsZh {
'videoControls.unlockRotation' => '解锁旋转',
'videoControls.timerActive' => '定时器已激活',
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '播放将在 ${duration} 后暂停',
'videoControls.sleepTimerEndOfVideo' => '当前视频结束时',
'videoControls.sleepTimerStopAtHeader' => '停止于',
'videoControls.sleepTimerDurationHeader' => '定时器',
'videoControls.playbackWillPauseAtEnd' => '播放将在此视频结束时暂停',
'videoControls.stillWatching' => '还在看吗?',
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}秒后暂停',
'videoControls.continueWatching' => '继续',
@@ -2214,6 +2246,7 @@ extension on TranslationsZh {
'videoControls.pipActive' => '正在画中画模式中播放',
'videoControls.pipFailed' => '画中画启动失败',
'videoControls.screenshotSaved' => '截图已保存',
'videoControls.zoomPercent' => ({required Object percent}) => '缩放 ${percent}%',
'videoControls.pipErrors.androidVersion' => '需要 Android 8.0 或更高版本',
'videoControls.pipErrors.iosVersion' => '需要 iOS 15.0 或更高版本',
'videoControls.pipErrors.permissionDisabled' => '画中画已禁用。请在系统设置中启用。',
@@ -2300,6 +2333,8 @@ extension on TranslationsZh {
'mpvConfig.presetSaved' => '预设已保存',
'mpvConfig.presetLoaded' => '预设已加载',
'mpvConfig.presetDeleted' => '预设已删除',
_ => null,
} ?? switch (path) {
'mpvConfig.confirmDeletePreset' => '确定要删除此预设吗?',
'mpvConfig.configPlaceholder' => 'gpu-api=vulkan\nhwdec=auto\n# comment',
'dialog.confirmAction' => '确认操作',
@@ -2313,8 +2348,6 @@ extension on TranslationsZh {
'profiles.signOut' => '退出登录',
'profiles.signOutPlexTitle' => '退出 Plex 登录?',
'profiles.signOutPlexMessage' => ({required Object displayName}) => '要移除 ${displayName} 和所有 Plex Home 用户吗?可随时重新登录。',
_ => null,
} ?? switch (path) {
'profiles.signedOutPlex' => '已退出 Plex 登录。',
'profiles.signOutFailed' => '退出登录失败。',
'profiles.sectionTitle' => '配置文件',
@@ -2369,6 +2402,8 @@ extension on TranslationsZh {
'connections.sessionExpiredOne' => ({required Object name}) => '${name} 的会话已过期',
'connections.sessionExpiredMany' => ({required Object count}) => '${count} 个服务器的会话已过期',
'connections.signInAgain' => '重新登录',
'connections.editJellyfinTitle' => '编辑 Jellyfin 连接',
'connections.editJellyfinIntro' => ({required Object serverName}) => '添加或移除 ${serverName} 的 URL。Plezy 会使用可访问且延迟最低的 URL。',
'discover.title' => '发现',
'discover.switchProfile' => '切换用户',
'discover.noContentAvailable' => '没有可用内容',
@@ -2789,6 +2824,7 @@ extension on TranslationsZh {
'companionRemote.remote.audio' => '音频',
'companionRemote.remote.searchHint' => '在桌面上搜索...',
'videoSettings.playbackSpeed' => '播放速度',
'videoSettings.zoom' => '缩放',
'videoSettings.sleepTimer' => '睡眠定时器',
'videoSettings.audioSync' => '音频同步',
'videoSettings.subtitleSync' => '字幕同步',
@@ -2811,6 +2847,8 @@ extension on TranslationsZh {
'externalPlayer.off' => '关闭',
'externalPlayer.launchFailed' => '无法打开外部播放器',
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} 未安装',
_ => null,
} ?? switch (path) {
'externalPlayer.playInExternalPlayer' => '在外部播放器中播放',
'metadataEdit.editMetadata' => '编辑...',
'metadataEdit.screenTitle' => '编辑元数据',
@@ -2827,8 +2865,6 @@ extension on TranslationsZh {
'metadataEdit.summary' => '简介',
'metadataEdit.poster' => '海报',
'metadataEdit.background' => '背景',
_ => null,
} ?? switch (path) {
'metadataEdit.logo' => '标志',
'metadataEdit.squareArt' => '方形图片',
'metadataEdit.selectPoster' => '选择海报',
@@ -2947,8 +2983,12 @@ extension on TranslationsZh {
'trackers.libraryFilter.noLibraries' => '没有可用的媒体库',
'addServer.addJellyfinTitle' => '添加 Jellyfin 服务器',
'addServer.jellyfinUrlIntro' => '输入服务器 URL,例如 `https://jellyfin.example.com`。',
'addServer.jellyfinUrlsIntro' => '输入一个或多个服务器 URL,用逗号或换行分隔。Plezy 会使用可访问且延迟最低的 URL。',
'addServer.serverUrl' => '服务器 URL',
'addServer.serverUrls' => '服务器 URL',
'addServer.findServer' => '查找服务器',
'addServer.searchingLocalServers' => '正在查找本地 Jellyfin 服务器...',
'addServer.localServers' => '本地 Jellyfin 服务器',
'addServer.username' => '用户名',
'addServer.password' => '密码',
'addServer.signIn' => '登录',
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "Ja",
"no": "Nej",
"delete": "Ta bort",
"edit": "Redigera",
"shuffle": "Blanda",
"addTo": "Lägg till i...",
"createNew": "Skapa ny",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "Visa säsongs- och avsnittsnummer på avsnittskort",
"showSeasonPostersOnTabs": "Visa säsongsaffischer på flikar",
"showSeasonPostersOnTabsDescription": "Visa varje säsongs affisch ovanför fliken",
"tvFullCardLayout": "Heltäckande TV-kort",
"tvFullCardLayoutDescription": "Använd TV-kort med enbart bild och skådespelarnamn ovanpå",
"hideSpoilers": "Dölj spoilers för osedda avsnitt",
"hideSpoilersDescription": "Sudda miniatyrbilder och beskrivningar för osedda avsnitt",
"playerBackend": "Spelarmotor",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "Tvinga TV-layout. För enheter som inte upptäcks automatiskt. Kräver omstart.",
"startInFullscreen": "Starta i helskärm",
"startInFullscreenDescription": "Öppna Plezy i helskärm vid start",
"exitFullscreenOnPlayerClose": "Avsluta helskärm vid stängning av spelare",
"exitFullscreenOnPlayerCloseDescription": "Avslutar automatiskt helskärmsläge när videospelaren stängs",
"autoHidePerformanceOverlay": "Dölj prestandaöverlagring automatiskt",
"autoHidePerformanceOverlayDescription": "Tona prestandaöverlagringen med uppspelningskontrollerna",
"showNavBarLabels": "Visa navigeringsfältets etiketter",
@@ -303,6 +308,9 @@
"speedIncrease": "Öka hastighet",
"speedDecrease": "Minska hastighet",
"speedReset": "Återställ hastighet",
"zoomIn": "Zooma in",
"zoomOut": "Zooma ut",
"zoomReset": "Återställ zoom",
"subSeekNext": "Hoppa till nästa undertext",
"subSeekPrev": "Hoppa till föregående undertext",
"shaderToggle": "Växla shaders",
@@ -399,6 +407,10 @@
"unlockRotation": "Lås upp rotation",
"timerActive": "Timer aktiv",
"playbackWillPauseIn": "Uppspelningen pausas om ${duration}",
"sleepTimerEndOfVideo": "Slutet av aktuell video",
"sleepTimerStopAtHeader": "Stoppa vid",
"sleepTimerDurationHeader": "Timer",
"playbackWillPauseAtEnd": "Uppspelningen pausas i slutet av denna video",
"stillWatching": "Tittar du fortfarande?",
"pausingIn": "Pausar om ${seconds}s",
"continueWatching": "Fortsätt",
@@ -441,6 +453,7 @@
"pipActive": "Spelar i bild-i-bild",
"pipFailed": "Bild-i-bild kunde inte starta",
"screenshotSaved": "Skärmbild sparad",
"zoomPercent": "Zoom ${percent}%",
"pipErrors": {
"androidVersion": "Kräver Android 8.0 eller nyare",
"iosVersion": "Kräver iOS 15.0 eller nyare",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "Lägg till för ${displayName}: Plex, Jellyfin eller en annan profilanslutning",
"sessionExpiredOne": "Sessionen har gått ut för ${name}",
"sessionExpiredMany": "Sessionen har gått ut för ${count} servrar",
"signInAgain": "Logga in igen"
"signInAgain": "Logga in igen",
"editJellyfinTitle": "Redigera Jellyfin-anslutning",
"editJellyfinIntro": "Lägg till eller ta bort URL:er för ${serverName}. Plezy använder den nåbara URL:en med lägst latens."
},
"discover": {
"title": "Upptäck",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "Uppspelningshastighet",
"zoom": "Zoom",
"sleepTimer": "Sovtimer",
"audioSync": "Ljudsynkronisering",
"subtitleSync": "Undertextsynkronisering",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "Lägg till Jellyfin-server",
"jellyfinUrlIntro": "Ange server-URL, t.ex. `https://jellyfin.example.com`.",
"jellyfinUrlsIntro": "Ange en eller flera server-URL:er, separerade med kommatecken eller nya rader. Plezy använder den nåbara URL:en med lägst latens.",
"serverUrl": "Server-URL",
"serverUrls": "Server-URL:er",
"findServer": "Hitta server",
"searchingLocalServers": "Söker efter lokala Jellyfin-servrar...",
"localServers": "Lokala Jellyfin-servrar",
"username": "Användarnamn",
"password": "Lösenord",
"signIn": "Logga in",
+21 -1
View File
@@ -36,6 +36,7 @@
"yes": "是",
"no": "否",
"delete": "删除",
"edit": "编辑",
"shuffle": "随机播放",
"addTo": "添加到...",
"createNew": "新建",
@@ -125,6 +126,8 @@
"showEpisodeNumberOnCardsDescription": "在剧集卡片上显示季和集编号",
"showSeasonPostersOnTabs": "在选项卡上显示季海报",
"showSeasonPostersOnTabsDescription": "在每季标签上方显示该季海报",
"tvFullCardLayout": "完整 TV 卡片",
"tvFullCardLayoutDescription": "使用仅显示图片的 TV 卡片,并叠加演员姓名",
"hideSpoilers": "隐藏未看剧集的剧透内容",
"hideSpoilersDescription": "模糊未观看剧集的缩略图和描述",
"playerBackend": "播放器引擎",
@@ -260,6 +263,8 @@
"forceTvModeDescription": "强制 TV 布局。适用于无法自动检测的设备。需要重启。",
"startInFullscreen": "以全屏模式启动",
"startInFullscreenDescription": "启动时以全屏模式打开 Plezy",
"exitFullscreenOnPlayerClose": "关闭播放器时退出全屏",
"exitFullscreenOnPlayerCloseDescription": "关闭视频播放器时自动退出全屏模式",
"autoHidePerformanceOverlay": "自动隐藏性能叠加层",
"autoHidePerformanceOverlayDescription": "性能叠加层随播放控件一起淡入淡出",
"showNavBarLabels": "显示导航栏标签",
@@ -303,6 +308,9 @@
"speedIncrease": "加速",
"speedDecrease": "减速",
"speedReset": "重置速度",
"zoomIn": "放大",
"zoomOut": "缩小",
"zoomReset": "重置缩放",
"subSeekNext": "跳转到下一字幕",
"subSeekPrev": "跳转到上一字幕",
"shaderToggle": "切换着色器",
@@ -399,6 +407,10 @@
"unlockRotation": "解锁旋转",
"timerActive": "定时器已激活",
"playbackWillPauseIn": "播放将在 ${duration} 后暂停",
"sleepTimerEndOfVideo": "当前视频结束时",
"sleepTimerStopAtHeader": "停止于",
"sleepTimerDurationHeader": "定时器",
"playbackWillPauseAtEnd": "播放将在此视频结束时暂停",
"stillWatching": "还在看吗?",
"pausingIn": "${seconds}秒后暂停",
"continueWatching": "继续",
@@ -441,6 +453,7 @@
"pipActive": "正在画中画模式中播放",
"pipFailed": "画中画启动失败",
"screenshotSaved": "截图已保存",
"zoomPercent": "缩放 ${percent}%",
"pipErrors": {
"androidVersion": "需要 Android 8.0 或更高版本",
"iosVersion": "需要 iOS 15.0 或更高版本",
@@ -609,7 +622,9 @@
"addConnectionSubtitleScoped": "添加到 ${displayName}: Plex、Jellyfin 或其他个人资料连接",
"sessionExpiredOne": "${name} 的会话已过期",
"sessionExpiredMany": "${count} 个服务器的会话已过期",
"signInAgain": "重新登录"
"signInAgain": "重新登录",
"editJellyfinTitle": "编辑 Jellyfin 连接",
"editJellyfinIntro": "添加或移除 ${serverName} 的 URL。Plezy 会使用可访问且延迟最低的 URL。"
},
"discover": {
"title": "发现",
@@ -1078,6 +1093,7 @@
},
"videoSettings": {
"playbackSpeed": "播放速度",
"zoom": "缩放",
"sleepTimer": "睡眠定时器",
"audioSync": "音频同步",
"subtitleSync": "字幕同步",
@@ -1256,8 +1272,12 @@
"addServer": {
"addJellyfinTitle": "添加 Jellyfin 服务器",
"jellyfinUrlIntro": "输入服务器 URL,例如 `https://jellyfin.example.com`。",
"jellyfinUrlsIntro": "输入一个或多个服务器 URL,用逗号或换行分隔。Plezy 会使用可访问且延迟最低的 URL。",
"serverUrl": "服务器 URL",
"serverUrls": "服务器 URL",
"findServer": "查找服务器",
"searchingLocalServers": "正在查找本地 Jellyfin 服务器...",
"localServers": "本地 Jellyfin 服务器",
"username": "用户名",
"password": "密码",
"signIn": "登录",
+22 -7
View File
@@ -73,6 +73,7 @@ import 'utils/media_server_http_client.dart';
import 'utils/orientation_helper.dart';
import 'utils/watch_state_notifier.dart';
import 'i18n/strings.g.dart';
import 'media/media_server_client.dart';
import 'focus/input_mode_tracker.dart';
import 'focus/key_event_utils.dart';
import 'package:intl/date_symbol_data_local.dart';
@@ -227,10 +228,10 @@ Future<void> _bootstrapApp() async {
FullscreenStateManager().startMonitoring();
// Apply "start in fullscreen" preference on Windows/Linux. macOS is
// excluded — its native fullscreen animation is awkward at launch and
// the OS already restores window state.
if ((Platform.isWindows || Platform.isLinux) && settings.read(SettingsService.startInFullscreen)) {
// Apply "start in fullscreen" preference on desktop. macOS does not restore
// fullscreen state on its own (frame autosave only persists windowed geometry),
// so it needs the same explicit handling as Windows/Linux.
if (PlatformDetector.isDesktopOS() && settings.read(SettingsService.startInFullscreen)) {
unawaited(FullscreenStateManager().enterFullscreen());
}
@@ -764,11 +765,15 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
return provider;
},
),
ChangeNotifierProxyProvider<ActiveProfileProvider, WatchStateOverlayProvider>(
ChangeNotifierProxyProvider2<ActiveProfileProvider, MultiServerProvider, WatchStateOverlayProvider>(
create: (_) => WatchStateOverlayProvider(),
update: (_, activeProfile, previous) {
update: (_, activeProfile, multiServer, previous) {
final provider = previous ?? WatchStateOverlayProvider();
provider.setActiveProfileId(activeProfile.activeId);
provider.setActiveClientScopesByServer({
for (final serverId in multiServer.serverManager.serverIds)
serverId: multiServer.serverManager.getClient(serverId)?.cacheServerId,
});
return provider;
},
),
@@ -849,7 +854,17 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
ChangeNotifierProvider(create: (context) => TraktAccountProvider()),
ChangeNotifierProvider(create: (context) => TrackersProvider()),
ChangeNotifierProvider(create: (context) => HiddenLibrariesProvider(), lazy: true),
ChangeNotifierProvider(create: (context) => LibrariesProvider()),
ChangeNotifierProvider(
create: (context) {
final provider = LibrariesProvider();
// Reload libraries when a new server comes online. Servers bind in
// waves on sign-in / profile switch and slow ones reconnect after
// the initial load; without this they stay missing from the sidebar
// until a profile re-switch or restart.
context.read<MultiServerProvider>().onOnlineServersChanged = provider.syncToOnlineServers;
return provider;
},
),
ChangeNotifierProvider(create: (context) => PlaybackStateProvider()),
ChangeNotifierProvider(create: (context) => WatchTogetherProvider()),
ChangeNotifierProvider(create: (context) => CompanionRemoteProvider()),
+2 -1
View File
@@ -47,7 +47,8 @@ class DownloadArtworkSpec {
/// version.
class DownloadResolution {
final String? videoUrl;
final String? mediaSourceId;
final List<DownloadSubtitleSpec> externalSubtitles;
const DownloadResolution({required this.videoUrl, this.externalSubtitles = const []});
const DownloadResolution({required this.videoUrl, this.mediaSourceId, this.externalSubtitles = const []});
}
+5 -2
View File
@@ -18,6 +18,7 @@ import 'media_item.dart';
import 'media_kind.dart';
import 'media_library.dart';
import 'media_playlist.dart';
import 'playback_report_metadata.dart';
import 'server_capabilities.dart';
/// Backend-neutral client for a single media server (Plex or Jellyfin).
@@ -493,20 +494,22 @@ abstract class MediaServerClient {
});
/// End-of-session signal. Plex sends `state=stopped`; Jellyfin closes
/// the session row.
/// the session row. [report] carries semantic metadata such as offline
/// replay timing without leaking backend-specific wire parameter names.
Future<void> reportPlaybackStopped({
required String itemId,
required Duration position,
Duration? duration,
String? playSessionId,
String? mediaSourceId,
PlaybackReportMetadata report = const PlaybackReportMetadata.live(),
});
/// Resolve the video URL, media info, and external subtitle list for
/// playback. Backends own the per-backend particulars: Plex runs the
/// transcode-decision flow when [PlaybackInitializationOptions.qualityPreset]
/// is non-original; Jellyfin asks PlaybackInfo for a matching stream when a
/// non-original preset is explicitly selected. Throws
/// non-original preset is selected. Throws
/// [PlaybackException] when the item can't be resolved (no MediaSources,
/// no playable URL, transcode decision unavailable).
///
+4
View File
@@ -25,6 +25,9 @@ class MediaSourceInfo {
/// null here and uses [partId] + the BIF service instead.
final Map<int, TrickplayInfo>? trickplayByWidth;
/// Display aspect ratio of the video stream (width / height).
final double? videoAspectRatio;
MediaSourceInfo({
required this.videoUrl,
required this.audioTracks,
@@ -36,6 +39,7 @@ class MediaSourceInfo {
this.defaultAudioStreamIndex,
this.defaultSubtitleStreamIndex,
this.trickplayByWidth,
this.videoAspectRatio,
});
int? getPartId() => partId;
}
+1 -1
View File
@@ -65,7 +65,7 @@ class MediaVersion {
/// Defaults to true when file-access fields are absent. Plex only populates
/// them when metadata is fetched with `checkFiles=1`.
bool get isPlayable => parts.isEmpty || parts.first.isPlayable;
bool get isPlayable => parts.isEmpty || parts.any((part) => part.isPlayable);
/// Display label with detailed information: "1080p H.264 MKV (8.5 Mbps)".
/// When [name] is set, it prefixes the technical label so a user can tell
+23
View File
@@ -0,0 +1,23 @@
/// Backend-neutral metadata attached to a playback report.
///
/// This deliberately describes user/client intent rather than backend wire
/// parameters. Plex maps offline replays to `offline`, `updated`, and
/// `continuing` timeline query params; backends without equivalent semantics
/// can ignore the fields.
enum PlaybackReportOrigin { live, offlineReplay }
class PlaybackReportMetadata {
final PlaybackReportOrigin origin;
final DateTime? recordedAt;
final bool? willContinue;
const PlaybackReportMetadata({this.origin = PlaybackReportOrigin.live, this.recordedAt, this.willContinue});
const PlaybackReportMetadata.live({bool? willContinue})
: this(origin: PlaybackReportOrigin.live, willContinue: willContinue);
const PlaybackReportMetadata.offlineReplay({required DateTime recordedAt, bool willContinue = false})
: this(origin: PlaybackReportOrigin.offlineReplay, recordedAt: recordedAt, willContinue: willContinue);
bool get isOfflineReplay => origin == PlaybackReportOrigin.offlineReplay;
}
+4 -4
View File
@@ -75,9 +75,9 @@ class ServerCapabilities {
/// still works but choices don't follow the user across devices.
final bool trackPreferencePersistence;
/// Multi-endpoint connection model with relay/local/remote racing
/// (Plex `findBestWorkingConnection`). Jellyfin servers expose a single
/// URL, so this is false there.
/// Multi-endpoint connection model with endpoint racing/failover. Plex gets
/// local/remote/relay candidates from plex.tv; Jellyfin uses user-entered
/// URLs for the same server.
final bool endpointFailover;
/// Watch progress can be queued offline and replayed when reconnected
@@ -173,7 +173,7 @@ class ServerCapabilities {
numericUserRating: false,
externalSubtitleSearch: false,
trackPreferencePersistence: true,
endpointFailover: false,
endpointFailover: true,
offlineWatchQueue: false,
discordRpc: false,
richMetadataEdit: false,
@@ -12,11 +12,17 @@ class PlexVideoPlaybackData {
final List<MediaMarker> markers;
final int selectedMediaIndex;
final int selectedPartIndex;
PlexVideoPlaybackData({
required this.videoUrl,
required this.mediaInfo,
required this.availableVersions,
this.markers = const [],
this.selectedMediaIndex = 0,
this.selectedPartIndex = 0,
});
bool get hasValidVideoUrl => videoUrl != null && videoUrl!.isNotEmpty;
+3 -3
View File
@@ -1,8 +1,8 @@
/// Video transcode quality presets modeled on Plex Web's custom-quality table.
///
/// When a non-[original] preset is selected, playback goes through Plex's
/// `/video/:/transcode/universal/decision` + `start` flow. [original] bypasses
/// transcoding entirely and uses the direct-play URL.
/// When a non-[original] preset is selected, playback asks the active backend
/// for a capped transcode stream. [original] bypasses transcoding entirely and
/// uses the direct-play URL.
enum TranscodeQualityPreset {
original(null, null, null),
p240_320(320, '420x240', 30),
+17 -2
View File
@@ -70,8 +70,23 @@ sealed class SubtitleTrack with _$SubtitleTrack {
String? uri,
}) = _SubtitleTrack;
factory SubtitleTrack.uri(String uri, {String? title, String? language}) =>
SubtitleTrack(id: 'external:$uri', title: title, language: language, isExternal: true, uri: uri);
factory SubtitleTrack.uri(
String uri, {
String? title,
String? language,
String? codec,
bool isDefault = false,
bool isForced = false,
}) => SubtitleTrack(
id: 'external:$uri',
title: title,
language: language,
codec: codec,
isDefault: isDefault,
isForced: isForced,
isExternal: true,
uri: uri,
);
static const auto = SubtitleTrack(id: 'auto', title: 'Auto');
+16 -2
View File
@@ -120,7 +120,16 @@ class PlayerAndroid extends PlayerBase {
if (externalSubtitles != null && externalSubtitles.isNotEmpty)
'externalSubtitles': externalSubtitles
.where((s) => s.uri != null)
.map((s) => {'uri': s.uri, 'title': s.title, 'language': s.language})
.map(
(s) => {
'uri': s.uri,
'title': s.title,
'language': s.language,
'codec': s.codec,
'isDefault': s.isDefault,
'isForced': s.isForced,
},
)
.toList(),
});
}
@@ -372,6 +381,12 @@ class PlayerAndroid extends PlayerBase {
await invoke('setBoxFitMode', {'mode': mode});
}
/// Apply custom zoom to the native ExoPlayer layer.
Future<void> setVideoZoom(double scale) async {
if (disposed || !initialized) return;
await invoke('setVideoZoom', {'scale': scale});
}
@override
Future<bool> setVideoFrameRate(double fps, int durationMs, {int extraDelayMs = 0}) async {
if (disposed || !initialized) return false;
@@ -411,7 +426,6 @@ class PlayerAndroid extends PlayerBase {
@override
Future<void> setLogLevel(String level) async {
if (disposed) return;
await _ensureInitialized();
await invoke('setLogLevel', {'level': level});
}
}
+68 -1
View File
@@ -11,6 +11,8 @@ import 'player_base.dart';
/// or FlTextureGL (Linux).
class PlayerNative extends PlayerBase {
int? _textureIdValue;
String _dvConversionMode = 'auto';
String _dvConversionLog = 'no';
@override
int? get textureId => _textureIdValue;
@@ -34,6 +36,52 @@ class PlayerNative extends PlayerBase {
/// but as JSON strings on Android/Windows.
static final String _nodeFormat = (Platform.isAndroid || Platform.isWindows) ? 'string' : 'node';
static String _normalizeDvConversionMode(String value) {
return switch (value.toLowerCase()) {
'disabled' || 'native' => 'disabled',
'dv81' || 'p8' || 'p7_to_p8' || 'p7-to-p8' => 'dv81',
'hevc' || 'hevc_strip' || 'p7_to_hevc' || 'p7-to-hevc' => 'hevc_strip',
_ => 'auto',
};
}
static String _normalizeBoolProperty(String value) {
return switch (value.toLowerCase()) {
'1' || 'true' || 'yes' || 'on' => 'yes',
_ => 'no',
};
}
MediaDisplayCriteria? _effectiveDisplayCriteria(MediaDisplayCriteria? criteria) {
if (criteria == null || (criteria.doviProfile ?? 0) != 7) return criteria;
final convertToDv81 = _dvConversionMode == 'auto' || _dvConversionMode == 'dv81';
if (convertToDv81) {
return MediaDisplayCriteria(
fps: criteria.fps,
width: criteria.width,
height: criteria.height,
doviProfile: 8,
doviLevel: criteria.doviLevel,
doviCompatibilityId: 1,
transfer: criteria.transfer ?? 'smpte2084',
primaries: criteria.primaries ?? 'bt2020',
matrix: criteria.matrix ?? 'bt2020nc',
);
}
return MediaDisplayCriteria(
fps: criteria.fps,
width: criteria.width,
height: criteria.height,
doviProfile: 0,
doviCompatibilityId: criteria.doviCompatibilityId ?? 1,
transfer: criteria.transfer ?? 'smpte2084',
primaries: criteria.primaries ?? 'bt2020',
matrix: criteria.matrix ?? 'bt2020nc',
);
}
// Memoizes the in-flight init Future so concurrent callers (e.g. the
// parallel `requestAudioFocus()` and `setProperty()` paths kicked off in
// VideoPlayerScreen._initializePlayer) share one `invoke('initialize')`.
@@ -132,6 +180,11 @@ class PlayerNative extends PlayerBase {
await setProperty('pause', 'yes');
}
// Prevent mpv's own default subtitle selection from racing the
// server-backed TrackManager decision applied after tracks are discovered.
await setProperty('sid', 'no');
await setProperty('secondary-sid', 'no');
// Convert content:// URIs to fdclose:// for MPV on Android (SAF SD card downloads)
var uri = media.uri;
if (Platform.isAndroid && uri.startsWith('content://')) {
@@ -209,6 +262,14 @@ class PlayerNative extends PlayerBase {
@override
Future<void> setProperty(String name, String value) async {
if (disposed) return;
if ((Platform.isIOS || Platform.isMacOS) && name == 'dv-conversion-mode') {
value = _normalizeDvConversionMode(value);
_dvConversionMode = value;
}
if ((Platform.isIOS || Platform.isMacOS) && name == 'dv-conversion-log') {
value = _normalizeBoolProperty(value);
_dvConversionLog = value;
}
await _ensureInitialized();
await invoke('setProperty', {'name': name, 'value': value});
}
@@ -216,6 +277,12 @@ class PlayerNative extends PlayerBase {
@override
Future<String?> getProperty(String name) async {
if (disposed) return null;
if ((Platform.isIOS || Platform.isMacOS) && name == 'dv-conversion-mode') {
return _dvConversionMode;
}
if ((Platform.isIOS || Platform.isMacOS) && name == 'dv-conversion-log') {
return _dvConversionLog;
}
await _ensureInitialized();
return await invoke<String>('getProperty', {'name': name});
}
@@ -231,7 +298,7 @@ class PlayerNative extends PlayerBase {
Future<void> setDisplayCriteria(MediaDisplayCriteria? criteria) async {
if (disposed || !Platform.isIOS) return;
await _ensureInitialized();
await invoke('setDisplayCriteria', {'criteria': criteria?.toJson()});
await invoke('setDisplayCriteria', {'criteria': _effectiveDisplayCriteria(criteria)?.toJson()});
}
@override
+3 -1
View File
@@ -223,7 +223,9 @@ class ActiveProfileProvider extends ChangeNotifier with DisposableChangeNotifier
await storage.setActiveProfileId(profile.id);
final now = DateTime.now();
await storage.markProfileUsed(profile.id, now);
_active = profile.copyWith(lastUsedAt: now);
final activated = profile.copyWith(lastUsedAt: now);
_active = activated;
_profiles = sortProfilesByLastUsed([for (final p in _profiles) p.id == profile.id ? activated : p]);
safeNotifyListeners();
appLogger.i('ActiveProfileProvider: activated ${profile.displayName} (${profile.id})');
if (profile.isLocal) {
+30 -2
View File
@@ -13,7 +13,7 @@ List<Profile> mergeLocalWithPlexHome({
required Map<String, Connection> connectionsById,
StorageService? storage,
}) {
final out = <Profile>[...locals];
final out = <Profile>[for (final local in locals) _withLatestStoredLastUsed(local, storage)];
for (final entry in plexHomeByConnectionId.entries) {
final connectionId = entry.key;
if (!connectionsById.containsKey(connectionId)) continue;
@@ -29,5 +29,33 @@ List<Profile> mergeLocalWithPlexHome({
);
}
}
return out;
return sortProfilesByLastUsed(out);
}
List<Profile> sortProfilesByLastUsed(List<Profile> profiles) {
final indexed = profiles.indexed.toList();
indexed.sort((a, b) {
final aLastUsed = a.$2.lastUsedAt;
final bLastUsed = b.$2.lastUsedAt;
if (aLastUsed == null && bLastUsed == null) return a.$1.compareTo(b.$1);
if (aLastUsed == null) return 1;
if (bLastUsed == null) return -1;
final byLastUsed = bLastUsed.compareTo(aLastUsed);
if (byLastUsed != 0) return byLastUsed;
return a.$1.compareTo(b.$1);
});
return [for (final entry in indexed) entry.$2];
}
Profile _withLatestStoredLastUsed(Profile profile, StorageService? storage) {
final storedLastUsed = storage?.getProfileLastUsed(profile.id);
final currentLastUsed = profile.lastUsedAt;
final lastUsedAt = switch ((currentLastUsed, storedLastUsed)) {
(null, final stored?) => stored,
(final current?, null) => current,
(final current?, final stored?) => stored.isAfter(current) ? stored : current,
_ => null,
};
if (lastUsedAt == currentLastUsed) return profile;
return profile.copyWith(lastUsedAt: lastUsedAt);
}
+73 -67
View File
@@ -17,6 +17,7 @@ import '../services/download_storage_service.dart';
import '../services/multi_server_manager.dart';
import '../services/offline_mode_source.dart';
import '../services/storage_service.dart';
import '../services/watch_state_resolver.dart';
import '../media/media_server_client.dart';
import '../services/sync_rule_executor.dart';
import '../utils/app_logger.dart';
@@ -361,7 +362,7 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
scopes[key] = await _offlineWatchScopeForGlobalKey(key);
}
final profileId = _activeProfileId;
final actions = await _database.getLatestWatchActionsForKeys(
final actions = await _database.getWatchActionsForKeys(
keys,
profileId: profileId,
filterProfile: profileId != null,
@@ -371,21 +372,9 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
for (final entry in actions.entries) {
final base = _metadata[entry.key];
if (base == null) continue;
final action = entry.value;
bool? isWatched;
switch (action.actionType) {
case 'watched':
isWatched = true;
case 'unwatched':
isWatched = false;
case 'progress':
isWatched = action.shouldMarkWatched;
}
if (isWatched == null) continue;
_metadata[entry.key] = base.copyWith(
viewCount: isWatched ? 1 : 0,
viewOffsetMs: isWatched ? base.viewOffsetMs : 0,
);
final snapshot = WatchStateResolver.fromActions(entry.value);
if (snapshot.isEmpty) continue;
_metadata[entry.key] = snapshot.apply(base);
}
} catch (e) {
appLogger.w('Failed to apply offline watch overlay', error: e);
@@ -494,26 +483,41 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
}
void _onWatchStateChanged(WatchStateEvent event) {
// Progress ticks fire continuously during playback; only react to discrete
// watched/unwatched flips so we don't churn listeners on every frame.
if (event.changeType == WatchStateChangeType.progressUpdate) return;
if (event.isNowWatched == null) return;
final snapshot = WatchStateResolver.fromEvent(event);
if (snapshot.isEmpty) return;
final globalKey = buildGlobalKey(event.serverId, event.itemId);
final base = _metadata[globalKey];
if (base == null) return;
final eventScope = event.cacheServerId;
final activeScope = _downloadManager.activeClientScopeIdForServer(event.serverId);
if (eventScope != null && eventScope.isNotEmpty && eventScope != event.serverId && eventScope != activeScope) {
return;
}
_metadata[globalKey] = snapshot.apply(base);
final isWatched = snapshot.isWatched;
// Sub-threshold progress ticks are frequent; offline reloads re-apply them
// from queued watch actions, so only durable watch flips hit the cache here.
final shouldPersistToCache =
isWatched != null && (event.changeType != WatchStateChangeType.progressUpdate || event.isNowWatched == true);
final isWatched = event.isNowWatched!;
_metadata[globalKey] = base.copyWith(viewCount: isWatched ? 1 : 0, viewOffsetMs: isWatched ? base.viewOffsetMs : 0);
// Persist into the per-backend pinned cache so the patch survives reloads
// (`_loadPersistedDownloads` rehydrates `_metadata` from the cache).
unawaited(
ApiCache.forBackend(base.backend)
.applyWatchState(serverId: event.cacheServerId ?? event.serverId, itemId: event.itemId, isWatched: isWatched)
.catchError((Object e) {
appLogger.w('Failed to apply watch state to cache for $globalKey', error: e);
}),
);
if (shouldPersistToCache) {
unawaited(
ApiCache.forBackend(base.backend)
.applyWatchState(
serverId: event.cacheServerId ?? event.serverId,
itemId: event.itemId,
isWatched: isWatched,
)
.catchError((Object e) {
appLogger.w('Failed to apply watch state to cache for $globalKey', error: e);
}),
);
}
safeNotifyListeners();
}
@@ -660,42 +664,18 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
}) {
final globalKey = buildGlobalKey(serverId, ratingKey);
// DIAGNOSTIC: Check all sources of episode count
final meta = _metadata[globalKey];
final metadataLeafCount = meta?.leafCount;
final storedCount = _totalEpisodeCounts[globalKey];
final downloadedCount = episodes.length;
// The progress ring reflects only the episodes the user actually queued for
// this show/season — not the show's full episode count. _getEpisodeDownloads
// returns just the owned download records, so episodes.length IS the queued
// count. Downloading 5 of a 50-episode show therefore reaches 100% at 5/5.
//
// NOTE: the show's full episode count (metadata.leafCount / _totalEpisodeCounts)
// is intentionally not used as the denominator here.
// TODO: remove the now-unread _totalEpisodeCounts plumbing in a dedicated cleanup.
final int totalEpisodes = episodes.length;
appLogger.d(
'📊 Episode count sources for $entityType $ratingKey:\n'
' - Metadata leafCount: $metadataLeafCount\n'
' - Stored count: $storedCount\n'
' - Downloaded episodes: $downloadedCount\n'
' - Metadata exists: ${meta != null}\n'
' - Type: ${meta?.kind.id}\n'
' - Title: ${meta?.title}',
);
// Get total episode count - Use metadata.leafCount as primary source
int totalEpisodes;
String countSource;
if (metadataLeafCount != null && metadataLeafCount > 0) {
totalEpisodes = metadataLeafCount;
countSource = 'metadata.leafCount';
} else if (storedCount != null && storedCount > 0) {
totalEpisodes = storedCount;
countSource = 'stored count (StorageService)';
} else {
totalEpisodes = downloadedCount;
countSource = 'downloaded episodes (fallback)';
}
appLogger.d('✅ Using totalEpisodes=$totalEpisodes from [$countSource] for $entityType $ratingKey');
// If we have stored count but no downloads, check if it's a valid partial state
if (totalEpisodes == 0 || (episodes.isEmpty && totalEpisodes > 0)) {
appLogger.d('⚠️ No valid downloads for $entityType $ratingKey, returning null');
if (totalEpisodes == 0) {
appLogger.d('⚠️ No queued downloads for $entityType $ratingKey, returning null');
return null;
}
@@ -704,8 +684,10 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
int downloadingCount = 0;
int queuedCount = 0;
int failedCount = 0;
int summedProgress = 0; // sum of per-episode progress (completed counts as 100)
for (final ep in episodes) {
summedProgress += ep.status == DownloadStatus.completed ? 100 : ep.progress;
switch (ep.status) {
case DownloadStatus.completed:
completedCount++;
@@ -736,8 +718,13 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
return null;
}
// Calculate overall progress percentage based on TOTAL episodes
final int overallProgress = totalEpisodes > 0 ? ((completedCount * 100) / totalEpisodes).round() : 0;
// Smooth percentage across the queued episodes: an in-flight episode
// contributes its partial progress so the ring advances continuously,
// rather than jumping only when whole episodes complete. Cap below 100%
// until every episode is actually complete — otherwise rounding (e.g.
// 99.8 → 100) could fill the ring while a download is still finishing.
final int rawProgress = (summedProgress / totalEpisodes).round();
final int overallProgress = completedCount == totalEpisodes ? 100 : (rawProgress > 99 ? 99 : rawProgress);
appLogger.d(
'Aggregate progress for $entityType $ratingKey: $overallProgress% '
@@ -828,7 +815,7 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
/// Get the local video file path for a downloaded item
/// Returns null if not downloaded or file doesn't exist
Future<String?> getVideoFilePath(String globalKey) async {
Future<String?> getVideoFilePath(String globalKey, {int? mediaIndex, String? mediaSourceId}) async {
appLogger.d('getVideoFilePath called with globalKey: $globalKey');
if (!_ownsDownloadKey(globalKey)) {
appLogger.w('Profile does not own downloaded item: $globalKey');
@@ -844,6 +831,25 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
appLogger.w('Download not complete. Status: ${downloadedItem.status}');
return null;
}
final expectedSourceId = mediaSourceId?.trim();
final downloadedSourceId = downloadedItem.mediaSourceId;
final comparedBySourceId =
expectedSourceId != null &&
expectedSourceId.isNotEmpty &&
downloadedSourceId != null &&
downloadedSourceId.isNotEmpty;
if (comparedBySourceId && expectedSourceId != downloadedSourceId) {
appLogger.w(
'Downloaded media source mismatch for $globalKey: have $downloadedSourceId, expected $expectedSourceId',
);
return null;
}
if (!comparedBySourceId && mediaIndex != null && downloadedItem.mediaIndex != mediaIndex) {
appLogger.w(
'Downloaded media index mismatch for $globalKey: have ${downloadedItem.mediaIndex}, expected $mediaIndex',
);
return null;
}
if (downloadedItem.videoFilePath == null) {
appLogger.w('Video file path is null for globalKey: $globalKey');
return null;
+86 -11
View File
@@ -23,6 +23,20 @@ class LibrariesProvider extends ChangeNotifier with DisposableChangeNotifierMixi
/// see the same in-flight result instead of racing two separate fetches.
Future<void>? _inFlightLoad;
/// Server ids whose library fetch *succeeded* in the current [_libraries], as
/// reported by [DataAggregationService.getMediaLibrariesFromAllServers].
/// Keyed on fetch success (not on which servers returned libraries) so a
/// server that genuinely has zero libraries still counts as loaded, while a
/// server whose fetch failed does not — the latter is retried on the next
/// status emission instead of being cached as "loaded" forever. Drives
/// [syncToOnlineServers].
Set<String> _loadedServerIds = {};
/// Set when a (re)load is requested while one is already in flight, so the
/// loop runs another pass: a server that comes online *during* a load would
/// otherwise be lost to the coalesced [_inFlightLoad].
bool _hasPendingLoad = false;
/// Unmodifiable list of all libraries (filtered for supported types, ordered)
List<MediaLibrary> get libraries => List.unmodifiable(_libraries);
@@ -47,30 +61,77 @@ class LibrariesProvider extends ChangeNotifier with DisposableChangeNotifierMixi
_aggregationService = service;
}
/// Load libraries from all connected servers.
/// Filters out music libraries and applies saved ordering.
Future<void> loadLibraries() {
return _inFlightLoad ??= _loadLibrariesInternal().whenComplete(() => _inFlightLoad = null);
/// Reload libraries when the set of online servers has grown since the last
/// load. Servers connect in waves — the owner Plex account, then each
/// borrowed/shared connection, then Jellyfin, plus slow servers that
/// reconnect after timing out — and each wave must surface in the sidebar
/// without a profile re-switch or app restart.
///
/// No-op when uninitialized, when [onlineServerIds] is empty, or when every
/// id is already represented in the current load. That last guard keeps the
/// many unrelated reasons the server-status stream fires (visibility churn,
/// auth errors, Live TV probes, a server going offline) from causing reload
/// storms.
Future<void> syncToOnlineServers(Set<String> onlineServerIds) {
if (_aggregationService == null || onlineServerIds.isEmpty) return Future<void>.value();
if (_loadState == LibrariesLoadState.loaded && _loadedServerIds.containsAll(onlineServerIds)) {
return Future<void>.value();
}
return _load();
}
Future<void> _loadLibrariesInternal() async {
/// Load libraries from all connected servers, unconditionally. Used by
/// pull-to-refresh, inline connection-add, and library reordering.
/// Filters out music libraries and applies saved ordering.
Future<void> loadLibraries() => _load();
/// Single entry point for every (re)load. Concurrent callers coalesce onto
/// one in-flight pass; a request that arrives mid-pass is replayed by
/// [_runLoadLoop] so it isn't masked by that coalescing. Each pass fetches
/// whatever is online at fetch time, so no caller needs to specify a target.
Future<void> _load() {
_hasPendingLoad = true;
return _inFlightLoad ??= _runLoadLoop().whenComplete(() => _inFlightLoad = null);
}
Future<void> _runLoadLoop() async {
while (_hasPendingLoad) {
_hasPendingLoad = false;
final succeeded = await _loadLibrariesInternal();
// Stop on failure so a persistently failing fetch can't hot-loop; the
// next server-status emission re-drives the sync.
if (!succeeded) break;
}
}
/// Returns `true` on a successful load, `false` on error.
Future<bool> _loadLibrariesInternal() async {
if (_aggregationService == null) {
appLogger.w('LibrariesProvider: Cannot load libraries - not initialized');
return;
return false;
}
_loadState = LibrariesLoadState.loading;
_errorMessage = null;
safeNotifyListeners();
// Reloading over an already-loaded list (a reactive server-connect sync, an
// inline connection add, a reorder) must not flip the UI back to a loading
// state: screens such as LibrariesScreen replace their whole body with a
// spinner whenever `isLoading` is true. Keep the current list visible and
// swap in the fuller one when the fetch completes; only the first load (or
// a reload after clear()/error) surfaces the spinner.
final reloadInPlace = _loadState == LibrariesLoadState.loaded;
if (!reloadInPlace) {
_loadState = LibrariesLoadState.loading;
_errorMessage = null;
safeNotifyListeners();
}
try {
// Fetch libraries from every connected backend (Plex + Jellyfin).
// The aggregation service converts Plex-typed responses to MediaLibrary
// internally; Jellyfin clients return MediaLibrary natively.
final allLibraries = await _aggregationService!.getMediaLibrariesFromAllServers();
final result = await _aggregationService!.getMediaLibrariesFromAllServers();
// Filter out music libraries (not supported)
final filteredLibraries = allLibraries.where((lib) => !ContentTypeHelper.isMusicLibrary(lib)).toList();
final filteredLibraries = result.libraries.where((lib) => !ContentTypeHelper.isMusicLibrary(lib)).toList();
// Apply saved library order
final storage = await StorageService.getInstance();
@@ -78,16 +139,28 @@ class LibrariesProvider extends ChangeNotifier with DisposableChangeNotifierMixi
final orderedLibraries = _applyLibraryOrder(filteredLibraries, savedOrder);
_libraries = orderedLibraries;
// Track which servers actually responded so [syncToOnlineServers] can tell
// a genuinely new server from one already covered. Keyed on fetch success
// (not on which servers returned libraries) so a zero-library server still
// counts as loaded, while a server whose fetch failed is left out and
// retried on the next status emission.
_loadedServerIds = result.succeededServerIds;
_loadState = LibrariesLoadState.loaded;
_errorMessage = null;
appLogger.i('LibrariesProvider: Loaded ${_libraries.length} libraries');
safeNotifyListeners();
return true;
} catch (e, stackTrace) {
appLogger.e('LibrariesProvider: Failed to load libraries', error: e, stackTrace: stackTrace);
// A refresh that fails over an existing list keeps the last good data and
// `loaded` state instead of blanking to an error screen; the next status
// emission re-drives the sync.
if (reloadInPlace) return false;
_loadState = LibrariesLoadState.error;
_errorMessage = e.toString();
safeNotifyListeners();
return false;
}
}
@@ -118,6 +191,8 @@ class LibrariesProvider extends ChangeNotifier with DisposableChangeNotifierMixi
_libraries = [];
_loadState = LibrariesLoadState.initial;
_errorMessage = null;
_loadedServerIds = {};
_hasPendingLoad = false;
safeNotifyListeners();
appLogger.d('LibrariesProvider: Cleared library data');
}
+26
View File
@@ -40,6 +40,14 @@ class MultiServerProvider extends ChangeNotifier with DisposableChangeNotifierMi
/// Previously-seen set of online server IDs, used to detect new servers
Set<String> _previousOnlineServerIds = {};
/// Invoked with the current visibility-filtered online server ids whenever
/// the manager's status stream fires (a server connects, reconnects, drops,
/// or its auth state changes). Lets `LibrariesProvider` reload when the
/// online set grows — servers bind in waves and slow ones reconnect after
/// the initial load — without coupling the two providers by type. Wired once
/// in `main.dart`.
void Function(Set<String> onlineServerIds)? onOnlineServersChanged;
/// Visibility filter applied by the active app profile. `null` means
/// "all servers visible" (no profile restriction); otherwise only server
/// ids in the set surface through [serverIds] / [onlineServerIds].
@@ -130,12 +138,19 @@ class MultiServerProvider extends ChangeNotifier with DisposableChangeNotifierMi
MultiServerProvider(this._serverManager, this._aggregationService) {
// Listen to server status changes
_statusSubscription = _serverManager.statusStream.listen((_) {
_promoteOnlineExpectedServers();
final currentOnline = Set<String>.from(onlineServerIds);
final hasNewServer = currentOnline.any((id) => !_previousOnlineServerIds.contains(id));
_previousOnlineServerIds = currentOnline;
safeNotifyListeners();
// Reload libraries when the online set changes. LibrariesProvider owns
// the "is anything actually new to me?" decision (its loaded set can
// differ from _previousOnlineServerIds after a load error or a profile
// switch that cleared it), so notify unconditionally and let it decide.
onOnlineServersChanged?.call(currentOnline);
// Only re-check live TV when a new server came online
if (hasNewServer) {
checkLiveTvAvailability();
@@ -143,6 +158,17 @@ class MultiServerProvider extends ChangeNotifier with DisposableChangeNotifierMi
});
}
void _promoteOnlineExpectedServers() {
final visible = _visibleServerIds;
final expected = _expectedVisibleServerIds;
if (visible == null || expected == null || expected.isEmpty) return;
final onlineExpected = _serverManager.onlineServerIds.where(expected.contains).where((id) => !visible.contains(id));
if (onlineExpected.isEmpty) return;
_visibleServerIds = {...visible, ...onlineExpected};
}
/// Get the multi-server manager
MultiServerManager get serverManager => _serverManager;
@@ -76,6 +76,9 @@ class OfflineWatchProvider extends ChangeNotifier with DisposableChangeNotifierM
return localOffset;
}
final localStatus = await _syncService.getLocalWatchStatus(globalKey);
if (localStatus == true) return null;
// Fall back to cached metadata
final metadata = _downloadProvider.getMetadata(globalKey);
return metadata?.viewOffsetMs;
+4 -3
View File
@@ -74,9 +74,10 @@ class ShaderProvider extends ChangeNotifier with DisposableChangeNotifierMixin {
Future<void> setPreset(ShaderPreset preset) async {
final service = _settingsService ?? await SettingsService.getInstance();
await service.write(SettingsService.globalShaderPreset, preset.id);
if (_savedPresetListenable == null) {
_savedPreset = preset;
_currentPreset = preset;
final changed = _savedPreset.id != preset.id || _currentPreset.id != preset.id;
_savedPreset = preset;
_currentPreset = preset;
if (changed || _savedPresetListenable == null) {
safeNotifyListeners();
}
}
+49 -22
View File
@@ -4,6 +4,8 @@ import 'package:flutter/foundation.dart';
import '../media/media_item.dart';
import '../mixins/disposable_change_notifier_mixin.dart';
import '../services/watch_state_resolver.dart';
import '../utils/global_key_utils.dart';
import '../utils/watch_state_notifier.dart';
@immutable
@@ -14,6 +16,12 @@ class WatchStateOverlayPatch {
const WatchStateOverlayPatch({this.isWatched, this.hasViewOffsetMs = false, this.viewOffsetMs});
factory WatchStateOverlayPatch.fromSnapshot(WatchStateSnapshot snapshot) => WatchStateOverlayPatch(
isWatched: snapshot.isWatched,
hasViewOffsetMs: snapshot.hasViewOffsetMs,
viewOffsetMs: snapshot.viewOffsetMs,
);
@override
bool operator ==(Object other) =>
identical(this, other) ||
@@ -26,6 +34,13 @@ class WatchStateOverlayPatch {
int get hashCode => Object.hash(isWatched, hasViewOffsetMs, viewOffsetMs);
}
class _WatchStateOverlayEntry {
final WatchStateOverlayPatch patch;
final int sequence;
const _WatchStateOverlayEntry(this.patch, this.sequence);
}
/// Session-local watch-state overlay for immediate UI freshness.
///
/// Server fetches remain the source of truth; this only patches stale
@@ -36,10 +51,25 @@ class WatchStateOverlayProvider extends ChangeNotifier with DisposableChangeNoti
}
StreamSubscription<WatchStateEvent>? _subscription;
final Map<String, WatchStateOverlayPatch> _patches = {};
final Map<String, _WatchStateOverlayEntry> _patches = {};
String? _activeProfileId;
Map<String, String?> _activeClientScopesByServer = const {};
int _sequence = 0;
WatchStateOverlayPatch? patchForGlobalKey(String globalKey) => _patches[globalKey];
WatchStateOverlayPatch? patchForGlobalKey(String globalKey) {
_WatchStateOverlayEntry? scopedEntry;
final parsed = parseGlobalKey(globalKey);
if (parsed != null) {
final scoped = _activeClientScopesByServer[parsed.serverId];
if (scoped != null && scoped.isNotEmpty) {
scopedEntry = _patches[buildGlobalKey(scoped, parsed.ratingKey)];
}
}
final unscopedEntry = _patches[globalKey];
if (scopedEntry == null) return unscopedEntry?.patch;
if (unscopedEntry == null) return scopedEntry.patch;
return scopedEntry.sequence >= unscopedEntry.sequence ? scopedEntry.patch : unscopedEntry.patch;
}
WatchStateOverlayPatch? patchForItem(MediaItem item) => patchForGlobalKey(item.globalKey);
@@ -69,29 +99,26 @@ class WatchStateOverlayProvider extends ChangeNotifier with DisposableChangeNoti
safeNotifyListeners();
}
void _onWatchStateEvent(WatchStateEvent event) {
final patch = switch (event.changeType) {
WatchStateChangeType.watched => const WatchStateOverlayPatch(
isWatched: true,
hasViewOffsetMs: true,
viewOffsetMs: 0,
),
WatchStateChangeType.unwatched => const WatchStateOverlayPatch(
isWatched: false,
hasViewOffsetMs: true,
viewOffsetMs: 0,
),
WatchStateChangeType.progressUpdate => WatchStateOverlayPatch(
hasViewOffsetMs: event.viewOffset != null,
viewOffsetMs: event.viewOffset,
),
WatchStateChangeType.removedFromContinueWatching => null,
void setActiveClientScopesByServer(Map<String, String?> scopes) {
final normalized = <String, String?>{
for (final entry in scopes.entries)
if (entry.value != null && entry.value!.isNotEmpty && entry.value != entry.key) entry.key: entry.value,
};
if (mapEquals(_activeClientScopesByServer, normalized)) return;
_activeClientScopesByServer = Map.unmodifiable(normalized);
if (_patches.isNotEmpty) safeNotifyListeners();
}
if (patch == null) return;
void _onWatchStateEvent(WatchStateEvent event) {
final snapshot = WatchStateResolver.fromEvent(event);
if (snapshot.isEmpty) return;
final patch = WatchStateOverlayPatch.fromSnapshot(snapshot);
if (_patches[event.globalKey] == patch) return;
_patches[event.globalKey] = patch;
final cacheServerId = event.cacheServerId;
final key = cacheServerId != null && cacheServerId.isNotEmpty && cacheServerId != event.serverId
? buildGlobalKey(cacheServerId, event.itemId)
: event.globalKey;
_patches[key] = _WatchStateOverlayEntry(patch, ++_sequence);
safeNotifyListeners();
}
+1
View File
@@ -1554,6 +1554,7 @@ class _DiscoverScreenState extends State<DiscoverScreen>
hubs: browseHubs,
density: svc.read(SettingsService.libraryDensity),
episodePosterMode: svc.read(SettingsService.episodePosterMode),
fullCardLayout: svc.read(SettingsService.tvFullCardLayout),
tallPosterScale: TvBrowseRailLayout.compactTallPosterScale,
);
final spotlightTop = (size.height * 0.075).clamp(64.0 * scale, 120.0 * scale).toDouble();
+18 -5
View File
@@ -317,21 +317,33 @@ class _DownloadsGridContentState extends State<_DownloadsGridContent> {
// Extra top padding for focus decoration (scale + border extends beyond item bounds)
const effectivePadding = EdgeInsets.only(left: 8, right: 8, top: 8);
return SettingValueBuilder<int>(
pref: SettingsService.libraryDensity,
builder: (context, density, _) {
return SettingsBuilder(
prefs: const [SettingsService.libraryDensity, SettingsService.tvFullCardLayout],
builder: (context) {
final settings = SettingsService.instanceOrNull!;
final density = settings.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && settings.read(SettingsService.tvFullCardLayout);
final maxCrossAxisExtent = GridSizeCalculator.getMaxCrossAxisExtent(context, density);
// Use LayoutBuilder to get actual available width (accounting for sidebar)
return LayoutBuilder(
builder: (context, constraints) {
final availableWidth = constraints.maxWidth - effectivePadding.left - effectivePadding.right;
final columnCount = GridSizeCalculator.getColumnCount(availableWidth, maxCrossAxisExtent);
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
final columnCount = GridSizeCalculator.getColumnCount(
availableWidth,
maxCrossAxisExtent,
crossAxisSpacing: gridSpacing,
);
return GridView.builder(
padding: effectivePadding,
// Allow focus decoration to render outside scroll bounds
clipBehavior: Clip.none,
gridDelegate: MediaGridDelegate.createDelegate(context: context, density: density),
gridDelegate: MediaGridDelegate.createDelegate(
context: context,
density: density,
fullBleedImage: fullCardLayout,
),
itemCount: items.length,
itemBuilder: (context, index) {
final item = items[index];
@@ -342,6 +354,7 @@ class _DownloadsGridContentState extends State<_DownloadsGridContent> {
focusNode: isFirst ? _firstItemFocusNode : null,
onBack: widget.onBack,
isOffline: true, // Downloaded content works without server
fullBleedImage: fullCardLayout,
onNavigateLeft: isFirstColumn ? _navigateToSidebar : null,
);
},
+28 -6
View File
@@ -169,11 +169,12 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
VoidCallback? onListRefresh,
}) {
return SettingsBuilder(
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity],
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity, SettingsService.tvFullCardLayout],
builder: (context) {
final svc = SettingsService.instanceOrNull!;
final isListMode = svc.read(SettingsService.viewMode) == ViewMode.list;
final libraryDensity = svc.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && svc.read(SettingsService.tvFullCardLayout);
if (isListMode) {
return SliverPadding(
@@ -206,9 +207,18 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
padding: const EdgeInsets.all(8),
sliver: SliverLayoutBuilder(
builder: (context, constraints) {
final columnCount = GridSizeCalculator.getColumnCount(constraints.crossAxisExtent, maxExtent);
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
final columnCount = GridSizeCalculator.getColumnCount(
constraints.crossAxisExtent,
maxExtent,
crossAxisSpacing: gridSpacing,
);
return SliverGrid.builder(
gridDelegate: MediaGridDelegate.createDelegate(context: context, density: libraryDensity),
gridDelegate: MediaGridDelegate.createDelegate(
context: context,
density: libraryDensity,
fullBleedImage: fullCardLayout,
),
itemCount: items.length,
itemBuilder: (context, index) {
final item = items[index];
@@ -222,6 +232,7 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
onRefresh: onRefresh,
collectionId: collectionId,
onListRefresh: onListRefresh,
fullBleedImage: fullCardLayout,
onNavigateUp: inFirstRow ? navigateToAppBar : null,
onBack: handleBackFromContent,
onFocusChange: (hasFocus) => trackGridItemFocus(index, hasFocus),
@@ -248,11 +259,12 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
VoidCallback? onListRefresh,
}) {
return SettingsBuilder(
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity],
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity, SettingsService.tvFullCardLayout],
builder: (context) {
final svc = SettingsService.instanceOrNull!;
final isListMode = svc.read(SettingsService.viewMode) == ViewMode.list;
final libraryDensity = svc.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && svc.read(SettingsService.tvFullCardLayout);
Widget buildTile(int index, {required bool inFirstRow, required bool disableScale}) {
final item = itemAt(index);
@@ -269,6 +281,7 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
onRefresh: onRefresh,
collectionId: collectionId,
onListRefresh: onListRefresh,
fullBleedImage: fullCardLayout && !disableScale,
onNavigateUp: inFirstRow ? navigateToAppBar : null,
onBack: handleBackFromContent,
onFocusChange: (hasFocus) => trackGridItemFocus(index, hasFocus),
@@ -290,9 +303,18 @@ mixin FocusableDetailScreenMixin<T extends StatefulWidget> on State<T>, GridFocu
padding: const EdgeInsets.all(8),
sliver: SliverLayoutBuilder(
builder: (context, constraints) {
final columnCount = GridSizeCalculator.getColumnCount(constraints.crossAxisExtent, maxExtent);
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
final columnCount = GridSizeCalculator.getColumnCount(
constraints.crossAxisExtent,
maxExtent,
crossAxisSpacing: gridSpacing,
);
return SliverGrid.builder(
gridDelegate: MediaGridDelegate.createDelegate(context: context, density: libraryDensity),
gridDelegate: MediaGridDelegate.createDelegate(
context: context,
density: libraryDensity,
fullBleedImage: fullCardLayout,
),
itemCount: totalItems,
itemBuilder: (context, index) => buildTile(
index,
+9
View File
@@ -510,12 +510,14 @@ class _HubDetailScreenState extends State<HubDetailScreen>
SettingsService.viewMode,
SettingsService.episodePosterMode,
SettingsService.libraryDensity,
SettingsService.tvFullCardLayout,
],
builder: (context) {
final svc = SettingsService.instanceOrNull!;
final isListMode = svc.read(SettingsService.viewMode) == ViewMode.list;
final episodePosterMode = svc.read(SettingsService.episodePosterMode);
final libraryDensity = svc.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && svc.read(SettingsService.tvFullCardLayout);
// Determine hub content type for layout decisions
final hasEpisodes = _filteredItems.any((item) => item.usesWideAspectRatio(episodePosterMode));
@@ -570,9 +572,14 @@ class _HubDetailScreenState extends State<HubDetailScreen>
libraryDensity,
16,
);
final gridSpacing = MediaGridDelegate.spacingFor(
context: context,
fullBleedImage: fullCardLayout,
);
final columnCount = GridSizeCalculator.getColumnCount(
constraints.crossAxisExtent,
useWideLayout ? maxExtent * 1.8 : maxExtent,
crossAxisSpacing: gridSpacing,
);
return SliverGrid(
@@ -582,6 +589,7 @@ class _HubDetailScreenState extends State<HubDetailScreen>
usePaddingAware: true,
horizontalPadding: 16,
useWideAspectRatio: useWideLayout,
fullBleedImage: fullCardLayout,
),
delegate: SliverChildBuilderDelegate((context, index) {
final item = _filteredItems[index];
@@ -602,6 +610,7 @@ class _HubDetailScreenState extends State<HubDetailScreen>
onBack: handleBackFromContent,
onFocusChange: (hasFocus) => trackGridItemFocus(index, hasFocus),
mixedHubContext: isMixedHub,
fullBleedImage: fullCardLayout,
);
}, childCount: _filteredItems.length),
);
+3 -1
View File
@@ -71,8 +71,9 @@ class ContextMenuItem {
class LibrariesScreen extends StatefulWidget {
final VoidCallback? onLibraryOrderChanged;
final ValueChanged<String>? onLibrarySelected;
const LibrariesScreen({super.key, this.onLibraryOrderChanged});
const LibrariesScreen({super.key, this.onLibraryOrderChanged, this.onLibrarySelected});
@override
State<LibrariesScreen> createState() => _LibrariesScreenState();
@@ -469,6 +470,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
// Clear loaded tabs tracking for new library
_loadedTabs.clear();
});
widget.onLibrarySelected?.call(libraryGlobalKey);
// The new TabBarView mounts with fresh inner positions at offset 0;
// bring the floating header back too. Also covers the case where the
@@ -0,0 +1,167 @@
import 'package:flutter/material.dart';
import 'package:material_symbols_icons/symbols.dart';
import '../../i18n/strings.g.dart';
import '../../media/media_library.dart';
import '../../utils/content_utils.dart';
import '../../utils/library_grouping.dart';
import '../../widgets/app_icon.dart';
import '../../widgets/backend_badge.dart';
import '../../widgets/focusable_list_tile.dart';
class LibraryQuickPickerSheet extends StatelessWidget {
final List<MediaLibrary> libraries;
final String? selectedLibraryKey;
final bool isLoading;
final bool groupByServer;
final String emptyMessage;
final ValueChanged<String> onSelected;
const LibraryQuickPickerSheet({
super.key,
required this.libraries,
required this.selectedLibraryKey,
required this.isLoading,
required this.groupByServer,
required this.emptyMessage,
required this.onSelected,
});
bool get _showServerHeaders {
final serverIds = libraries.where((library) => library.serverId != null).map((library) => library.serverId).toSet();
return serverIds.length > 1 && groupByServer;
}
Set<String> _getNonUniqueLibraryNames() {
final nameCounts = <String, int>{};
for (final library in libraries) {
nameCounts[library.title] = (nameCounts[library.title] ?? 0) + 1;
}
return nameCounts.entries.where((entry) => entry.value > 1).map((entry) => entry.key).toSet();
}
List<Widget> _buildLibraryRows(BuildContext context) {
if (!_showServerHeaders) {
final nonUniqueNames = _getNonUniqueLibraryNames();
return libraries.map((library) {
return _buildLibraryTile(
context,
library,
showServerName: library.serverName != null && nonUniqueNames.contains(library.title),
);
}).toList();
}
final grouped = groupLibrariesByFirstAppearance(libraries);
final rows = <Widget>[];
for (final serverKey in grouped.serverOrder) {
final bucket = grouped.byServer[serverKey]!;
if (serverKey.isNotEmpty) {
rows.add(_buildServerHeader(context, bucket.first, serverKey));
}
for (final library in bucket) {
rows.add(_buildLibraryTile(context, library, showServerName: false));
}
}
return rows;
}
Widget _buildServerHeader(BuildContext context, MediaLibrary library, String fallbackServerName) {
final theme = Theme.of(context);
final labelStyle = theme.textTheme.labelSmall?.copyWith(
fontWeight: FontWeight.w600,
letterSpacing: 0.4,
color: theme.textTheme.bodySmall?.color?.withValues(alpha: 0.65),
);
return Padding(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
child: Row(
children: [
BackendBadge(backend: library.backend, size: 12, color: labelStyle?.color),
const SizedBox(width: 6),
Expanded(
child: Text(
library.serverName ?? fallbackServerName,
style: labelStyle,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
],
),
);
}
Widget _buildServerSubtitle(BuildContext context, MediaLibrary library) {
final style = Theme.of(
context,
).textTheme.bodySmall?.copyWith(color: Theme.of(context).textTheme.bodySmall?.color?.withValues(alpha: 0.6));
return Row(
mainAxisSize: MainAxisSize.min,
children: [
BackendBadge(backend: library.backend, size: 10, color: style?.color),
const SizedBox(width: 4),
Flexible(
child: Text(library.serverName!, style: style, maxLines: 1, overflow: TextOverflow.ellipsis),
),
],
);
}
Widget _buildLibraryTile(BuildContext context, MediaLibrary library, {required bool showServerName}) {
final colorScheme = Theme.of(context).colorScheme;
final isSelected = library.globalKey == selectedLibraryKey;
final foregroundColor = isSelected ? colorScheme.primary : null;
return FocusableListTile(
key: ValueKey('library_quick_picker_${library.globalKey}'),
dense: false,
visualDensity: VisualDensity.standard,
selected: isSelected,
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
leading: AppIcon(ContentTypeHelper.getLibraryIcon(library.kind.id), fill: 1, size: 22, color: foregroundColor),
title: Text(
library.title,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: isSelected ? FontWeight.w600 : FontWeight.w400, color: foregroundColor),
),
subtitle: showServerName ? _buildServerSubtitle(context, library) : null,
trailing: isSelected ? AppIcon(Symbols.check_rounded, fill: 1, color: colorScheme.primary) : null,
onTap: () => onSelected(library.globalKey),
);
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
child: Align(
alignment: Alignment.centerLeft,
child: Text(t.libraries.selectLibrary, style: theme.textTheme.titleMedium),
),
),
if (isLoading && libraries.isEmpty)
const Padding(padding: EdgeInsets.symmetric(vertical: 32), child: CircularProgressIndicator())
else if (libraries.isEmpty)
Padding(
padding: const EdgeInsets.fromLTRB(24, 24, 24, 32),
child: Text(emptyMessage, textAlign: TextAlign.center, style: theme.textTheme.bodyMedium),
)
else
Flexible(
child: ListView(
shrinkWrap: true,
padding: const EdgeInsets.only(bottom: 8),
children: _buildLibraryRows(context),
),
),
],
);
}
}
@@ -153,6 +153,13 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
@override
void onDeletionEvent(DeletionEvent event) {
// Browse is online-only (the Libraries tab is hidden when offline), so it
// always reflects server-side content. A download-only deletion removes
// local files but leaves the item on the server, so it must not affect the
// browse grid. Without this guard, deleting every downloaded episode of a
// show drives its leafCount to zero and evicts the show from browse.
if (event.isDownloadOnly) return;
// If we have an item that matches the rating key exactly, remove it and rebuild indices
final matchEntry = loadedItems.entries.where((e) => e.value.id == event.itemId).firstOrNull;
if (matchEntry != null) {
@@ -1511,7 +1518,12 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
return [
SettingsBuilder(
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity, SettingsService.episodePosterMode],
prefs: const [
SettingsService.viewMode,
SettingsService.libraryDensity,
SettingsService.episodePosterMode,
SettingsService.tvFullCardLayout,
],
builder: (context) => _buildItemsSliver(context),
),
];
@@ -1568,6 +1580,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
final viewMode = svc.read(SettingsService.viewMode);
final libraryDensity = svc.read(SettingsService.libraryDensity);
final episodePosterMode = svc.read(SettingsService.episodePosterMode);
final fullCardLayout = PlatformDetector.isTV() && svc.read(SettingsService.tvFullCardLayout);
final itemCount = totalSize;
final isPhone = _isPhone(context);
final topPadding = isPhone ? _gridTopPaddingPhone : _gridTopPadding;
@@ -1611,17 +1624,28 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
padding: EdgeInsets.fromLTRB(8, topPadding, rightPadding, 8),
sliver: SliverLayoutBuilder(
builder: (context, constraints) {
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
// Compute column count from the width the grid would have without the alpha
// bar's reservation, so toggling the bar doesn't repack the grid into one
// fewer column and blow up poster size.
final baselineWidth = constraints.crossAxisExtent + (rightPadding - 8.0);
final columnCount = GridSizeCalculator.getColumnCount(baselineWidth, effectiveMaxExtent);
final columnCount = GridSizeCalculator.getColumnCount(
baselineWidth,
effectiveMaxExtent,
crossAxisSpacing: gridSpacing,
);
// Cache grid metrics for alpha jump bar scroll calculations
final itemWidth = constraints.crossAxisExtent / columnCount;
final itemHeight = itemWidth / GridLayoutConstants.posterAspectRatio;
final itemWidth = GridSizeCalculator.getCellWidthForColumnCount(
constraints.crossAxisExtent,
columnCount,
crossAxisSpacing: gridSpacing,
);
final itemHeight =
itemWidth /
MediaGridDelegate.aspectRatioFor(useWideAspectRatio: useWideRatio, fullBleedImage: fullCardLayout);
_scrollMetrics = LibraryAlphaScrollMetrics(
columnCount: columnCount,
rowHeight: itemHeight + GridLayoutConstants.mainAxisSpacing,
rowHeight: itemHeight + gridSpacing,
itemWidth: itemWidth,
itemHeight: itemHeight,
);
@@ -1630,7 +1654,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
context: context,
density: libraryDensity,
useWideAspectRatio: useWideRatio,
maxCrossAxisExtentOverride: hasAlphaBarReservation ? constraints.crossAxisExtent / columnCount : null,
fullBleedImage: fullCardLayout,
maxCrossAxisExtentOverride: hasAlphaBarReservation ? itemWidth : null,
),
itemCount: itemCount,
itemBuilder: (context, index) => _buildMediaCardItem(
@@ -1640,6 +1665,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
isLastColumn: (index % columnCount) == (columnCount - 1),
columnCount: columnCount,
itemCount: itemCount,
fullBleedImage: fullCardLayout,
),
);
},
@@ -1654,6 +1680,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
required bool isFirstColumn,
bool isLastColumn = false,
bool disableScale = false,
bool fullBleedImage = false,
int columnCount = 1,
int itemCount = 0,
}) {
@@ -1711,6 +1738,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
onBack: widget.onBack,
onFocusChange: (hasFocus) => trackGridItemFocus(index, hasFocus),
onListRefresh: _loadItems,
fullBleedImage: fullBleedImage,
);
}
@@ -10,6 +10,7 @@ import '../../../utils/grid_size_calculator.dart';
import '../../../utils/layout_constants.dart';
import '../../../utils/library_refresh_notifier.dart';
import '../../../utils/media_server_http_client.dart';
import '../../../utils/platform_detector.dart';
import '../../../widgets/focusable_media_card.dart';
import '../../../widgets/media_grid_delegate.dart';
import '../../../widgets/settings_builder.dart';
@@ -106,16 +107,20 @@ class _LibraryCollectionsTabState extends BaseLibraryTabState<MediaItem, Library
@override
Widget buildContent(List<MediaItem> items) {
return SettingsBuilder(
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity],
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity, SettingsService.tvFullCardLayout],
builder: (context) {
final settings = SettingsService.instanceOrNull!;
final viewMode = settings.read(SettingsService.viewMode);
final density = settings.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && settings.read(SettingsService.tvFullCardLayout);
return CustomScrollView(
clipBehavior: Clip.none,
slivers: [
SliverOverlapInjector(handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context)),
if (viewMode == ViewMode.list) _buildListSliver(density) else _buildGridSliver(density),
if (viewMode == ViewMode.list)
_buildListSliver(density)
else
_buildGridSliver(density, fullCardLayout: fullCardLayout),
],
);
},
@@ -139,25 +144,42 @@ class _LibraryCollectionsTabState extends BaseLibraryTabState<MediaItem, Library
);
}
Widget _buildGridSliver(int density) {
Widget _buildGridSliver(int density, {required bool fullCardLayout}) {
return SliverPadding(
padding: _effectivePadding,
sliver: SliverLayoutBuilder(
builder: (context, constraints) {
final maxCrossAxisExtent = GridSizeCalculator.getMaxCrossAxisExtent(context, density);
final columnCount = GridSizeCalculator.getColumnCount(constraints.crossAxisExtent, maxCrossAxisExtent);
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
final columnCount = GridSizeCalculator.getColumnCount(
constraints.crossAxisExtent,
maxCrossAxisExtent,
crossAxisSpacing: gridSpacing,
);
return SliverGrid.builder(
gridDelegate: MediaGridDelegate.createDelegate(context: context, density: density),
gridDelegate: MediaGridDelegate.createDelegate(
context: context,
density: density,
fullBleedImage: fullCardLayout,
),
itemCount: totalSize,
itemBuilder: (context, index) =>
_buildMediaCardItem(index, isFirstColumn: GridSizeCalculator.isFirstColumn(index, columnCount)),
itemBuilder: (context, index) => _buildMediaCardItem(
index,
isFirstColumn: GridSizeCalculator.isFirstColumn(index, columnCount),
fullBleedImage: fullCardLayout,
),
);
},
),
);
}
Widget _buildMediaCardItem(int index, {required bool isFirstColumn, bool disableScale = false}) {
Widget _buildMediaCardItem(
int index, {
required bool isFirstColumn,
bool disableScale = false,
bool fullBleedImage = false,
}) {
final item = loadedItems[index];
if (item == null) {
ensureIndexLoaded(index, pageSize: _pageSize);
@@ -169,6 +191,7 @@ class _LibraryCollectionsTabState extends BaseLibraryTabState<MediaItem, Library
item: item,
focusNode: index == 0 ? firstItemFocusNode : null,
disableScale: disableScale,
fullBleedImage: fullBleedImage,
onListRefresh: loadItems,
onBack: widget.onBack,
onNavigateLeft: isFirstColumn ? _navigateToSidebar : null,
@@ -10,6 +10,7 @@ import '../../../utils/grid_size_calculator.dart';
import '../../../utils/layout_constants.dart';
import '../../../utils/library_refresh_notifier.dart';
import '../../../utils/media_server_http_client.dart';
import '../../../utils/platform_detector.dart';
import '../../../widgets/focusable_media_card.dart';
import '../../../widgets/media_grid_delegate.dart';
import '../../../widgets/settings_builder.dart';
@@ -108,16 +109,20 @@ class _LibraryPlaylistsTabState extends BaseLibraryTabState<MediaPlaylist, Libra
@override
Widget buildContent(List<MediaPlaylist> items) {
return SettingsBuilder(
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity],
prefs: const [SettingsService.viewMode, SettingsService.libraryDensity, SettingsService.tvFullCardLayout],
builder: (context) {
final settings = SettingsService.instanceOrNull!;
final viewMode = settings.read(SettingsService.viewMode);
final density = settings.read(SettingsService.libraryDensity);
final fullCardLayout = PlatformDetector.isTV() && settings.read(SettingsService.tvFullCardLayout);
return CustomScrollView(
clipBehavior: Clip.none,
slivers: [
SliverOverlapInjector(handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context)),
if (viewMode == ViewMode.list) _buildListSliver(density) else _buildGridSliver(density),
if (viewMode == ViewMode.list)
_buildListSliver(density)
else
_buildGridSliver(density, fullCardLayout: fullCardLayout),
],
);
},
@@ -141,25 +146,42 @@ class _LibraryPlaylistsTabState extends BaseLibraryTabState<MediaPlaylist, Libra
);
}
Widget _buildGridSliver(int density) {
Widget _buildGridSliver(int density, {required bool fullCardLayout}) {
return SliverPadding(
padding: _effectivePadding,
sliver: SliverLayoutBuilder(
builder: (context, constraints) {
final maxCrossAxisExtent = GridSizeCalculator.getMaxCrossAxisExtent(context, density);
final columnCount = GridSizeCalculator.getColumnCount(constraints.crossAxisExtent, maxCrossAxisExtent);
final gridSpacing = MediaGridDelegate.spacingFor(context: context, fullBleedImage: fullCardLayout);
final columnCount = GridSizeCalculator.getColumnCount(
constraints.crossAxisExtent,
maxCrossAxisExtent,
crossAxisSpacing: gridSpacing,
);
return SliverGrid.builder(
gridDelegate: MediaGridDelegate.createDelegate(context: context, density: density),
gridDelegate: MediaGridDelegate.createDelegate(
context: context,
density: density,
fullBleedImage: fullCardLayout,
),
itemCount: totalSize,
itemBuilder: (context, index) =>
_buildPlaylistCard(index, isFirstColumn: GridSizeCalculator.isFirstColumn(index, columnCount)),
itemBuilder: (context, index) => _buildPlaylistCard(
index,
isFirstColumn: GridSizeCalculator.isFirstColumn(index, columnCount),
fullBleedImage: fullCardLayout,
),
);
},
),
);
}
Widget _buildPlaylistCard(int index, {required bool isFirstColumn, bool disableScale = false}) {
Widget _buildPlaylistCard(
int index, {
required bool isFirstColumn,
bool disableScale = false,
bool fullBleedImage = false,
}) {
final playlist = loadedItems[index];
if (playlist == null) {
ensureIndexLoaded(index, pageSize: _pageSize);
@@ -171,6 +193,7 @@ class _LibraryPlaylistsTabState extends BaseLibraryTabState<MediaPlaylist, Libra
item: playlist,
focusNode: index == 0 ? firstItemFocusNode : null,
disableScale: disableScale,
fullBleedImage: fullBleedImage,
onListRefresh: loadItems,
onBack: widget.onBack,
onNavigateLeft: isFirstColumn ? _navigateToSidebar : null,
@@ -316,6 +316,7 @@ class _LibraryRecommendedTabState extends BaseLibraryTabState<MediaHub, LibraryR
hubs: tvHubs,
density: svc.read(SettingsService.libraryDensity),
episodePosterMode: svc.read(SettingsService.episodePosterMode),
fullCardLayout: svc.read(SettingsService.tvFullCardLayout),
tallPosterScale: TvBrowseRailLayout.compactTallPosterScale,
);
final spotlightTop = (size.height * 0.075).clamp(64.0 * scale, 120.0 * scale).toDouble();
+128 -30
View File
@@ -47,6 +47,7 @@ import '../widgets/side_navigation_rail.dart';
import '../focus/dpad_navigator.dart';
import '../focus/key_event_utils.dart';
import 'discover_screen.dart';
import 'libraries/library_quick_picker_sheet.dart';
import 'libraries/libraries_screen.dart';
import 'livetv/live_tv_screen.dart';
import 'search_screen.dart';
@@ -337,32 +338,35 @@ class _MainScreenState extends State<MainScreen>
// Wire profile binder + tracker bootstrap (skip in offline mode)
WidgetsBinding.instance.addPostFrameCallback((_) async {
if (mounted) {
final activeProfile = context.read<ActiveProfileProvider>();
_activeProfileForListener = activeProfile;
_lastSeenProfileId = activeProfile.activeId;
activeProfile.addListener(_onActiveProfileChanged);
_plexHomeService = context.read<PlexHomeService>();
unawaited(_plexHomeService!.start());
final manager = context.read<MultiServerProvider>().serverManager;
// Read the binder so the Provider's `lazy: false` create has fired
// for sure; start only in online mode so explicit startup offline does
// not immediately kick off the same connection attempts it skipped.
final binder = context.read<ActiveProfileBinder>();
if (!_isOffline) binder.start();
_runStartupOnFirstOnlineServer(manager);
}
if (!mounted) return;
final activeProfile = context.read<ActiveProfileProvider>();
_activeProfileForListener = activeProfile;
_lastSeenProfileId = activeProfile.activeId;
activeProfile.addListener(_onActiveProfileChanged);
_plexHomeService = context.read<PlexHomeService>();
unawaited(_plexHomeService!.start());
final manager = context.read<MultiServerProvider>().serverManager;
// Read the binder so the Provider's `lazy: false` create has fired
// for sure; start only in online mode so explicit startup offline does
// not immediately kick off the same connection attempts it skipped.
final binder = context.read<ActiveProfileBinder>();
if (!_isOffline) binder.start();
_runStartupOnFirstOnlineServer(manager);
if (!_isOffline) {
// Settings-only initialization — profile identity is managed by
// ActiveProfileProvider + ActiveProfileBinder.
final userProfileProvider = context.userProfile;
await userProfileProvider.initialize();
if (!mounted) return;
// Ensure first login (or any unset profile state) requires explicit selection.
await _promptForInitialProfileSelection();
if (!mounted) return;
// Auto-start companion remote server once the active profile is known.
if (_companionRemoteSetup && mounted) {
if (_companionRemoteSetup) {
unawaited(_autoStartCompanionRemoteServer());
}
}
@@ -576,6 +580,7 @@ class _MainScreenState extends State<MainScreen>
await Navigator.of(
context,
).push(MaterialPageRoute(builder: (context) => const ProfileSwitchScreen(requireSelection: true)));
if (!mounted) return;
_isShowingProfileSelection = false;
_updateTvosMenuPassthrough();
}
@@ -859,6 +864,7 @@ class _MainScreenState extends State<MainScreen>
await Navigator.of(
context,
).push(MaterialPageRoute(builder: (context) => const ProfileSwitchScreen(requireSelection: true)));
if (!mounted) return;
_isShowingProfileSelection = false;
_updateTvosMenuPassthrough();
}
@@ -890,6 +896,7 @@ class _MainScreenState extends State<MainScreen>
NavigationTabId.libraries => LibrariesScreen(
key: _librariesKey,
onLibraryOrderChanged: _onLibraryOrderChanged,
onLibrarySelected: _handleLibrariesScreenSelected,
),
NavigationTabId.liveTv => LiveTvScreen(key: _liveTvKey),
NavigationTabId.search => SearchScreen(key: _searchKey),
@@ -1104,6 +1111,7 @@ class _MainScreenState extends State<MainScreen>
}
void _updateTvosMenuPassthrough() {
if (!mounted) return;
_setTvosMenuPassthrough(_shouldPassTvosMenuToSystem);
}
@@ -1396,6 +1404,63 @@ class _MainScreenState extends State<MainScreen>
}
}
void _handleLibrariesScreenSelected(String libraryGlobalKey) {
if (_selectedLibraryGlobalKey == libraryGlobalKey) return;
setState(() => _selectedLibraryGlobalKey = libraryGlobalKey);
}
void _showLibraryQuickPicker(BuildContext context) {
if (_isOffline) return;
final controller = OverlaySheetController.of(context);
final groupByServer = SettingsService.instanceOrNull?.read(SettingsService.groupLibrariesByServer) ?? false;
final maxHeight = MediaQuery.sizeOf(context).height * 0.62;
controller
.show<String>(
showDragHandle: true,
constraints: BoxConstraints(maxHeight: maxHeight),
builder: (sheetContext) {
return Consumer2<LibrariesProvider, HiddenLibrariesProvider>(
builder: (context, librariesProvider, hiddenLibrariesProvider, _) {
if (!hiddenLibrariesProvider.isInitialized) {
return LibraryQuickPickerSheet(
libraries: const [],
selectedLibraryKey: _selectedLibraryGlobalKey,
isLoading: true,
groupByServer: groupByServer,
emptyMessage: t.libraries.noLibrariesFound,
onSelected: (libraryGlobalKey) => controller.close(libraryGlobalKey),
);
}
final allLibraries = librariesProvider.libraries;
final hiddenKeys = hiddenLibrariesProvider.hiddenLibraryKeys;
final visibleLibraries = allLibraries
.where((library) => !hiddenKeys.contains(library.globalKey))
.toList();
final emptyMessage = allLibraries.isEmpty
? t.libraries.noLibrariesFound
: t.libraries.allLibrariesHidden;
return LibraryQuickPickerSheet(
libraries: visibleLibraries,
selectedLibraryKey: _selectedLibraryGlobalKey,
isLoading: librariesProvider.isLoading,
groupByServer: groupByServer,
emptyMessage: emptyMessage,
onSelected: (libraryGlobalKey) => controller.close(libraryGlobalKey),
);
},
);
},
)
.then((libraryGlobalKey) {
if (!mounted || libraryGlobalKey == null) return;
_selectLibrary(libraryGlobalKey);
});
}
/// Whether the Live TV tab is currently visible
/// Use the synchronized value so screens list and nav bar always agree.
/// Updated by _handleLiveTvChanged when the provider notifies.
@@ -1418,9 +1483,52 @@ class _MainScreenState extends State<MainScreen>
};
}
/// Build navigation destinations for bottom navigation bar.
List<NavigationDestination> _buildNavDestinations(bool isOffline) {
return _getVisibleTabs(isOffline).map((tab) => tab.toDestination()).toList();
Widget _buildBottomNavigationBar(BuildContext context, {required bool hideLabels}) {
final tabs = _getVisibleTabs(_isOffline);
final navigationBar = NavigationBar(
selectedIndex: _currentIndex,
onDestinationSelected: (i) {
if (i >= 0 && i < tabs.length) _selectTab(tabs[i].id);
},
labelBehavior: hideLabels
? NavigationDestinationLabelBehavior.alwaysHide
: NavigationDestinationLabelBehavior.alwaysShow,
destinations: tabs.map((tab) => tab.toDestination()).toList(),
);
final librariesIndex = tabs.indexWhere((tab) => tab.id == NavigationTabId.libraries);
if (librariesIndex < 0 || tabs.isEmpty) return navigationBar;
return LayoutBuilder(
builder: (context, constraints) {
if (!constraints.hasBoundedWidth) return navigationBar;
final itemWidth = constraints.maxWidth / tabs.length;
final isRtl = Directionality.of(context) == TextDirection.rtl;
final left = isRtl ? constraints.maxWidth - (itemWidth * (librariesIndex + 1)) : itemWidth * librariesIndex;
return Stack(
children: [
navigationBar,
Positioned(
left: left,
top: 0,
bottom: 0,
width: itemWidth,
child: GestureDetector(
behavior: HitTestBehavior.translucent,
excludeFromSemantics: true,
onLongPress: () {
Feedback.forLongPress(context);
_showLibraryQuickPicker(context);
},
child: const SizedBox.expand(),
),
),
],
);
},
);
}
@override
@@ -1595,17 +1703,7 @@ class _MainScreenState extends State<MainScreen>
final hideLabels = !showNavBarLabels;
return NavigationBarTheme(
data: NavigationBarTheme.of(context).copyWith(height: hideLabels ? 56 : null),
child: NavigationBar(
selectedIndex: _currentIndex,
onDestinationSelected: (i) {
final tabs = _getVisibleTabs(_isOffline);
if (i >= 0 && i < tabs.length) _selectTab(tabs[i].id);
},
labelBehavior: hideLabels
? NavigationDestinationLabelBehavior.alwaysHide
: NavigationDestinationLabelBehavior.alwaysShow,
destinations: _buildNavDestinations(_isOffline),
),
child: _buildBottomNavigationBar(context, hideLabels: hideLabels),
);
},
),
+177 -81
View File
@@ -6,7 +6,9 @@ extension _MediaDetailActionButtons on _MediaDetailScreenState {
final tvScale = TvLayoutConstants.scaleOf(context);
final actionSize = isTv ? _tvDetailActionSize * tvScale : 48.0;
final playButtonLabel = _getPlayButtonLabel(metadata);
final playButtonIcon = AppIcon(_getPlayButtonIcon(metadata), fill: 1, size: isTv ? 22 * tvScale : 20);
final playIconSize = isTv ? 22 * tvScale : 20.0;
final playTextStyle = TextStyle(fontSize: isTv ? 17 * tvScale : 16, fontWeight: FontWeight.w700);
final playButtonIcon = AppIcon(_getPlayButtonIcon(metadata), fill: 1, size: playIconSize);
Future<void> onPlayPressed() async {
// For TV shows, play the OnDeck episode if available
@@ -96,79 +98,143 @@ extension _MediaDetailActionButtons on _MediaDetailScreenState {
);
}
// Plays the resolved trailer. Shared by the row's trailer button and the
// ⋮ menu item so the trailer stays reachable when the row hides its button.
final VoidCallback? onPlayTrailer = primaryTrailer == null
? null
: () => unawaited(navigateToVideoPlayer(context, metadata: primaryTrailer));
final gap = isTv ? 8.0 * tvScale : 12.0;
final playButton = SizedBox(
height: actionSize,
child: FilledButton(
focusNode: _playButtonFocusNode,
autofocus: isKeyboardMode,
onPressed: onPlayPressed,
style: actionButtonStyle(
padding: EdgeInsets.symmetric(horizontal: isTv ? 17 * tvScale : 16, vertical: isTv ? 9 * tvScale : 0),
),
child: playButtonLabel.isNotEmpty
? Row(
mainAxisSize: MainAxisSize.min,
children: [
playButtonIcon,
SizedBox(width: isTv ? 7 * tvScale : 8),
Text(playButtonLabel, style: playTextStyle),
],
)
: playButtonIcon,
),
);
final trailerButton = primaryTrailer == null
? null
: IconButton.filledTonal(
onPressed: onPlayTrailer,
icon: const AppIcon(Symbols.theaters_rounded, fill: 1),
tooltip: t.tooltips.playTrailer,
iconSize: isTv ? 21 * tvScale : 20,
style: actionButtonStyle(),
);
final shuffleButton = (metadata.isShow || metadata.isSeason)
? IconButton.filledTonal(
onPressed: () async {
await _handleShufflePlayWithQueue(context, metadata);
},
icon: const AppIcon(Symbols.shuffle_rounded, fill: 1),
tooltip: t.tooltips.shufflePlay,
iconSize: isTv ? 21 * tvScale : 20,
style: actionButtonStyle(),
)
: null;
final downloadButton = !widget.isOffline && !PlatformDetector.isAppleTV()
? _buildDownloadButton(metadata, actionButtonStyle, tvScale)
: null;
final watchedButton = _buildWatchedToggleButton(metadata, actionButtonStyle, tvScale);
final moreActionsButton = widget.isOffline
? null
: _buildMoreActionsButton(metadata, actionButtonStyle, tvScale, onPlayTrailer: onPlayTrailer);
Row actionRow(List<Widget> buttons) {
return Row(
children: [
for (var i = 0; i < buttons.length; i++) ...[if (i > 0) SizedBox(width: gap), buttons[i]],
],
);
}
final allButtons = <Widget>[
playButton,
if (trailerButton != null) trailerButton,
if (shuffleButton != null) shuffleButton,
if (downloadButton != null) downloadButton,
watchedButton,
if (moreActionsButton != null) moreActionsButton,
];
double playButtonWidthEstimate() {
if (playButtonLabel.isEmpty) return 64.0;
final textPainter = TextPainter(
text: TextSpan(text: playButtonLabel, style: playTextStyle),
maxLines: 1,
textDirection: Directionality.of(context),
)..layout();
final textWidth = textPainter.width;
textPainter.dispose();
final horizontalPadding = isTv ? 34.0 * tvScale : 32.0;
final iconGap = isTv ? 7.0 * tvScale : 8.0;
return (horizontalPadding + playIconSize + iconGap + textWidth).clamp(64.0, double.infinity).toDouble();
}
final estimatedPlayWidth = playButtonWidthEstimate();
double estimatedRowWidth(List<Widget> buttons) {
if (buttons.isEmpty) return 0;
return estimatedPlayWidth + (buttons.length - 1) * actionSize + (buttons.length - 1) * gap;
}
List<Widget> compactButtonsFor(double maxWidth) {
if (widget.isOffline) {
final compact = <Widget>[playButton, watchedButton];
if (maxWidth.isFinite && estimatedRowWidth(compact) > maxWidth) return [playButton];
return compact;
}
final medium = <Widget>[
playButton,
if (downloadButton != null) downloadButton,
watchedButton,
if (moreActionsButton != null) moreActionsButton,
];
if (!maxWidth.isFinite || estimatedRowWidth(medium) <= maxWidth) return medium;
final compact = <Widget>[playButton, watchedButton, if (moreActionsButton != null) moreActionsButton];
if (estimatedRowWidth(compact) <= maxWidth) return compact;
return [playButton, if (moreActionsButton != null) moreActionsButton];
}
return Focus(
skipTraversal: true,
onFocusChange: (hasFocus) {
if (isTv) _setTvDetailActionRowFocus(hasFocus);
},
onKeyEvent: _handlePlayButtonKeyEvent,
child: Row(
children: [
SizedBox(
height: actionSize,
child: FilledButton(
focusNode: _playButtonFocusNode,
autofocus: isKeyboardMode,
onPressed: onPlayPressed,
style: actionButtonStyle(
padding: EdgeInsets.symmetric(horizontal: isTv ? 17 * tvScale : 16, vertical: isTv ? 9 * tvScale : 0),
),
child: playButtonLabel.isNotEmpty
? Row(
mainAxisSize: MainAxisSize.min,
children: [
playButtonIcon,
SizedBox(width: isTv ? 7 * tvScale : 8),
Text(
playButtonLabel,
style: TextStyle(fontSize: isTv ? 17 * tvScale : 16, fontWeight: FontWeight.w700),
),
],
)
: playButtonIcon,
),
),
SizedBox(width: isTv ? 8 * tvScale : 12),
// Trailer button (only if trailer is available)
if (primaryTrailer != null) ...[
IconButton.filledTonal(
onPressed: () async {
await navigateToVideoPlayer(context, metadata: primaryTrailer);
// TV screens are wide and D-pad focus should see every direct action.
// On smaller online screens, hidden actions remain available from ⋮.
child: isTv
? actionRow(allButtons)
: LayoutBuilder(
builder: (context, constraints) {
final maxWidth = constraints.maxWidth;
if (!maxWidth.isFinite || estimatedRowWidth(allButtons) <= maxWidth) {
return actionRow(allButtons);
}
return actionRow(compactButtonsFor(maxWidth));
},
icon: const AppIcon(Symbols.theaters_rounded, fill: 1),
tooltip: t.tooltips.playTrailer,
iconSize: isTv ? 21 * tvScale : 20,
style: actionButtonStyle(),
),
SizedBox(width: isTv ? 8 * tvScale : 12),
],
// Shuffle button (only for shows and seasons)
if (metadata.isShow || metadata.isSeason) ...[
IconButton.filledTonal(
onPressed: () async {
await _handleShufflePlayWithQueue(context, metadata);
},
icon: const AppIcon(Symbols.shuffle_rounded, fill: 1),
tooltip: t.tooltips.shufflePlay,
iconSize: isTv ? 21 * tvScale : 20,
style: actionButtonStyle(),
),
SizedBox(width: isTv ? 8 * tvScale : 12),
],
// Download button (hide in offline mode - already downloaded,
// and on Apple TV where there's no user file storage).
if (!widget.isOffline && !PlatformDetector.isAppleTV())
_buildDownloadButton(metadata, actionButtonStyle, tvScale),
SizedBox(width: isTv ? 8 * tvScale : 12),
// Mark as watched/unwatched toggle (works offline too)
_buildWatchedToggleButton(metadata, actionButtonStyle, tvScale),
// Three-dots menu button (hidden in offline mode)
if (!widget.isOffline) ...[
SizedBox(width: isTv ? 8 * tvScale : 12),
_buildMoreActionsButton(metadata, actionButtonStyle, tvScale),
],
],
),
);
}
@@ -231,12 +297,14 @@ extension _MediaDetailActionButtons on _MediaDetailScreenState {
Widget _buildMoreActionsButton(
MediaItem metadata,
ButtonStyle Function({Color? foregroundColor, EdgeInsetsGeometry? padding}) actionButtonStyle,
double tvScale,
) {
double tvScale, {
VoidCallback? onPlayTrailer,
}) {
return MediaContextMenu(
key: _contextMenuKey,
item: metadata,
onRefresh: (itemId) => unawaited(_refreshItemInPlace(itemId)),
onPlayTrailer: onPlayTrailer,
child: Builder(
builder: (buttonContext) => IconButton.filledTonal(
onPressed: () {
@@ -487,26 +555,54 @@ extension _MediaDetailActionButtons on _MediaDetailScreenState {
);
}
// Shows/seasons may have more episodes to fetch; movies/episodes don't.
final canDownloadMore = metadata.isShow || metadata.isSeason;
Future<void> confirmAndDelete() async {
final confirmed = await showDeleteConfirmation(
context,
title: t.downloads.deleteDownload,
message: t.downloads.deleteConfirm(title: metadata.displayTitle),
);
if (confirmed && context.mounted) {
await downloadProvider.deleteDownload(globalKey);
if (context.mounted) {
showSuccessSnackBar(context, t.downloads.downloadDeleted);
}
}
}
return IconButton.filledTonal(
onPressed: () async {
// Show delete download confirmation
final confirmed = await showDeleteConfirmation(
context,
title: t.downloads.deleteDownload,
message: t.downloads.deleteConfirm(title: metadata.displayTitle),
);
if (confirmed && context.mounted) {
await downloadProvider.deleteDownload(globalKey);
// Movies/episodes: nothing more to download, so delete directly.
if (!canDownloadMore) {
await confirmAndDelete();
return;
}
// Shows/seasons: reopen the download options menu so the user can
// grab more episodes (or switch to sync), with delete as a row.
final client = _getMediaClientForMetadata(context);
if (client == null) return;
try {
final result = await showDownloadOptionsAndQueue(
context,
metadata: metadata,
client: client,
downloadProvider: downloadProvider,
onDelete: confirmAndDelete,
);
if (result == null || !context.mounted) return;
showSuccessSnackBar(context, result.toSnackBarMessage());
} on CellularDownloadBlockedException {
if (context.mounted) {
showSuccessSnackBar(context, t.downloads.downloadDeleted);
showErrorSnackBar(context, t.settings.cellularDownloadBlocked);
}
}
},
icon: const AppIcon(Symbols.file_download_done_rounded, fill: 1),
tooltip: t.downloads.deleteDownload,
icon: const AppIcon(Symbols.download_rounded, fill: 1),
tooltip: canDownloadMore ? t.downloads.manage : t.downloads.deleteDownload,
iconSize: iconSize,
style: actionButtonStyle(foregroundColor: Colors.green),
style: actionButtonStyle(foregroundColor: Colors.orange),
);
}
+18 -4
View File
@@ -704,7 +704,9 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
}
void _onScroll() {
_scrollOffset.value = _scrollController.offset;
final positions = _scrollController.positions;
if (positions.length != 1) return;
_scrollOffset.value = positions.first.pixels;
}
@override
@@ -1011,6 +1013,9 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
if (key.isUpKey) {
return KeyEventResult.handled; // consume — nothing above
}
if (key.isLeftKey || key.isRightKey) {
return KeyEventResult.handled; // consume — single chip, nothing beside it (#1181)
}
return KeyEventResult.ignored;
},
child: GestureDetector(
@@ -1999,7 +2004,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
}
/// Intercept DOWN from the play button row to focus the first available section
KeyEventResult _handlePlayButtonKeyEvent(FocusNode _, KeyEvent event) {
KeyEventResult _handlePlayButtonKeyEvent(FocusNode node, KeyEvent event) {
final key = event.logicalKey;
if (!event.isActionable) return KeyEventResult.ignored;
final isTv = PlatformDetector.isTV();
@@ -2017,6 +2022,13 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
return KeyEventResult.handled;
}
// LEFT/RIGHT: let the framework move between buttons in the row, but trap
// at the row's edges so focus can't fall off into a black hole (#1181).
if (key.isLeftKey || key.isRightKey) {
final dir = key.isRightKey ? TraversalDirection.right : TraversalDirection.left;
return hasHorizontalNeighbor(node, dir) ? KeyEventResult.ignored : KeyEventResult.handled;
}
if (!key.isDownKey) return KeyEventResult.ignored;
final metadata = _fullMetadata ?? _metadata;
@@ -3443,6 +3455,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
episodePosterMode: svc.read(SettingsService.episodePosterMode),
episodePosterModeForHub: _tvDetailEpisodePosterModeForHub,
widePosterScaleForHub: _tvDetailWidePosterScaleForHub,
fullCardLayout: svc.read(SettingsService.tvFullCardLayout),
tallPosterScale: _tvDetailTallPosterScale,
);
}
@@ -3469,6 +3482,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
availableWidth: availableWidth,
density: svc.read(SettingsService.libraryDensity),
episodePosterMode: svc.read(SettingsService.episodePosterMode),
fullCardLayout: svc.read(SettingsService.tvFullCardLayout),
scale: scale,
tallPosterScale: _tvDetailTallPosterScale,
widePosterScale: 1.0,
@@ -3883,7 +3897,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
const innerPadding = 3.0;
final imageSize = cardWidth;
// image + inner padding + text area + outer list padding + focus scale headroom
final containerHeight = imageSize + innerPadding * 2 + 66 + 16;
final containerHeight = imageSize + innerPadding * 2 + 58 + 10;
final theme = Theme.of(context);
final actorNameStyle = theme.textTheme.bodyMedium?.copyWith(fontWeight: FontWeight.w600);
@@ -3986,7 +4000,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
final cardWidth = _getResponsiveCardWidth();
// 16:9 aspect ratio for clip thumbnails (cardWidth includes 8px padding on each side)
final posterHeight = (cardWidth - 16) * (9 / 16);
final containerHeight = posterHeight + 66;
final containerHeight = posterHeight + 52;
return Focus(
focusNode: _extrasFocusNode,
-2
View File
@@ -171,7 +171,6 @@ class _PlexMatchScreenState extends State<PlexMatchScreen> with ControllerDispos
textInputAction: TextInputAction.next,
onSubmitted: (_) => _yearFocus.requestFocus(),
onNavigateRight: _yearFocus.requestFocus,
onNavigateDown: _searchFocus.requestFocus,
),
),
const SizedBox(width: 12),
@@ -186,7 +185,6 @@ class _PlexMatchScreenState extends State<PlexMatchScreen> with ControllerDispos
textInputAction: TextInputAction.search,
onSubmitted: (_) => _search(),
onNavigateLeft: _nameFocus.requestFocus,
onNavigateDown: _searchFocus.requestFocus,
),
),
],
@@ -115,8 +115,6 @@ class _AddLocalProfileScreenState extends State<AddLocalProfileScreen> with Cont
focusNode: _setPinFocus,
useBackgroundFocus: true,
onPressed: _setPin,
onNavigateUp: () => _nameFocus.requestFocus(),
onNavigateDown: () => _continueFocus.requestFocus(),
child: OutlinedButton.icon(
onPressed: _setPin,
icon: const AppIcon(Symbols.lock_outline_rounded, fill: 1),
@@ -131,7 +129,6 @@ class _AddLocalProfileScreenState extends State<AddLocalProfileScreen> with Cont
useBackgroundFocus: true,
onPressed: _saving || _nameController.text.trim().isEmpty ? null : _saveAndContinue,
onNavigateUp: () => (_pinHash == null ? _setPinFocus : _nameFocus).requestFocus(),
onNavigateDown: () => _cancelFocus.requestFocus(),
child: FilledButton(
onPressed: _saving || _nameController.text.trim().isEmpty ? null : _saveAndContinue,
child: Text(t.profiles.continueButton),
@@ -142,7 +139,6 @@ class _AddLocalProfileScreenState extends State<AddLocalProfileScreen> with Cont
focusNode: _cancelFocus,
useBackgroundFocus: true,
onPressed: _saving ? null : () => Navigator.of(context).pop(),
onNavigateUp: () => _continueFocus.requestFocus(),
child: TextButton(
onPressed: _saving ? null : () => Navigator.of(context).pop(),
child: Text(t.common.cancel),
+18 -2
View File
@@ -26,6 +26,7 @@ import '../../widgets/focusable_popup_menu_button.dart';
import '../../widgets/focused_scroll_scaffold.dart';
import '../../utils/dialogs.dart';
import '../settings/add_connection_screen.dart';
import '../settings/edit_jellyfin_connection_screen.dart';
import 'pin_entry_dialog.dart';
import 'pin_status_row.dart';
import 'profile_delete_flow.dart';
@@ -130,6 +131,16 @@ class _ProfileDetailScreenState extends State<ProfileDetailScreen> with Controll
unawaited(context.read<ActiveProfileBinder>().rebindIfActive(_profile.id));
}
Future<void> _editConnection(Connection conn) async {
if (conn is! JellyfinConnection) return;
final changed = await Navigator.of(
context,
).push<bool>(MaterialPageRoute(builder: (_) => EditJellyfinConnectionScreen(connection: conn)));
if (changed != true || !mounted) return;
setState(() {});
unawaited(context.read<ActiveProfileBinder>().rebindIfActive(_profile.id));
}
Set<String> _serverIdsForConnection(Connection conn) {
return switch (conn) {
PlexAccountConnection(:final servers) => servers.map((s) => s.clientIdentifier).toSet(),
@@ -228,7 +239,7 @@ class _ProfileDetailScreenState extends State<ProfileDetailScreen> with Controll
],
),
const SizedBox(height: 8),
_ConnectionsList(profile: _profile, onRemove: _removeConnection),
_ConnectionsList(profile: _profile, onRemove: _removeConnection, onEdit: _editConnection),
const SizedBox(height: 24),
if (isLocal)
FocusableButton(
@@ -251,8 +262,9 @@ class _ProfileDetailScreenState extends State<ProfileDetailScreen> with Controll
class _ConnectionsList extends StatelessWidget {
final Profile profile;
final Future<void> Function(ProfileConnection pc, Connection conn) onRemove;
final Future<void> Function(Connection conn) onEdit;
const _ConnectionsList({required this.profile, required this.onRemove});
const _ConnectionsList({required this.profile, required this.onRemove, required this.onEdit});
@override
Widget build(BuildContext context) {
@@ -319,12 +331,16 @@ class _ConnectionsList extends StatelessWidget {
onSelected: (value) {
if (value == 'default') {
unawaited(pcRegistry.setDefault(profile.id, pc.connectionId));
} else if (value == 'edit') {
unawaited(onEdit(conn));
} else if (value == 'remove') {
unawaited(onRemove(pc, conn));
}
},
itemBuilder: (_) => [
if (!pc.isDefault) PopupMenuItem(value: 'default', child: Text(t.profiles.makeDefault)),
if (conn is JellyfinConnection)
PopupMenuItem(value: 'edit', child: Text(t.common.edit)),
PopupMenuItem(value: 'remove', child: Text(t.profiles.removeConnection)),
],
),
+17 -8
View File
@@ -58,25 +58,33 @@ class _ProfileSwitchScreenState extends State<ProfileSwitchScreen> with MountedS
bool _focusRequested = false;
bool _switching = false;
Stream<ProfilesView>? _viewStream;
StorageService? _viewStreamStorage;
StorageService? _storage;
Future<StorageService>? _storageFuture;
@override
void didChangeDependencies() {
super.didChangeDependencies();
_viewStream ??= watchProfilesView(
_ensureViewStream();
if (_storage == null) {
unawaited(
(_storageFuture ??= StorageService.getInstance()).then((s) {
setStateIfMounted(() => _storage = s);
}),
);
}
}
void _ensureViewStream() {
if (_viewStream != null && identical(_viewStreamStorage, _storage)) return;
_viewStreamStorage = _storage;
_viewStream = watchProfilesView(
profiles: context.read<ProfileRegistry>(),
profileConnections: context.read<ProfileConnectionRegistry>(),
connections: context.read<ConnectionRegistry>(),
plexHome: context.read<PlexHomeService>(),
storage: _storage,
);
if (_storage == null) {
unawaited(
StorageService.getInstance().then((s) {
setStateIfMounted(() => _storage = s);
}),
);
}
}
@override
@@ -92,6 +100,7 @@ class _ProfileSwitchScreenState extends State<ProfileSwitchScreen> with MountedS
@override
Widget build(BuildContext context) {
_ensureViewStream();
return PopScope(
canPop: !widget.requireSelection || _allowPop,
onPopInvokedWithResult: (didPop, _) {
+286 -31
View File
@@ -11,6 +11,7 @@ import '../../connection/connection.dart';
import '../../exceptions/media_server_exceptions.dart';
import '../../focus/focusable_button.dart';
import '../../focus/focusable_text_field.dart';
import '../../focus/focusable_wrapper.dart';
import '../../i18n/strings.g.dart';
import '../../mixins/controller_disposer_mixin.dart';
import '../../profiles/active_profile_binder.dart';
@@ -19,6 +20,8 @@ import '../../profiles/profile.dart';
import '../../profiles/profile_connection.dart';
import '../../profiles/profile_registry.dart';
import '../../services/jellyfin_auth_service.dart';
import '../../services/jellyfin_endpoint_discovery.dart';
import '../../services/jellyfin_lan_discovery_service.dart';
import '../../services/storage_service.dart';
import '../../utils/app_logger.dart';
import '../../utils/platform_detector.dart';
@@ -47,7 +50,7 @@ bool shouldPromptForJellyfinProfileSelection({
}
/// Three-step form to add a Jellyfin server:
/// 1. Probe URL (`/System/Info/Public`).
/// 1. Probe URL candidates (`/System/Info/Public`).
/// 2. Username + password (`/Users/AuthenticateByName`) **or** Quick Connect
/// (`/QuickConnect/Initiate` → poll → `/Users/AuthenticateWithQuickConnect`).
/// 3. Persist via [ConnectionRegistry] and create a [ProfileConnection]
@@ -60,8 +63,16 @@ class AddJellyfinScreen extends StatefulWidget {
/// [ProfileConnection] row. When null, falls back to the currently active
/// profile (typical for the global Connections screen entry point).
final Profile? targetProfile;
final FutureOr<JellyfinConnectionAuthService> Function()? _authServiceFactory;
final FutureOr<List<DiscoveredJellyfinServer>> Function()? _localDiscoveryFactory;
const AddJellyfinScreen({super.key, this.targetProfile});
const AddJellyfinScreen({
super.key,
this.targetProfile,
@visibleForTesting FutureOr<JellyfinConnectionAuthService> Function()? authServiceFactory,
@visibleForTesting FutureOr<List<DiscoveredJellyfinServer>> Function()? localDiscoveryFactory,
}) : _authServiceFactory = authServiceFactory,
_localDiscoveryFactory = localDiscoveryFactory;
@override
State<AddJellyfinScreen> createState() => _AddJellyfinScreenState();
@@ -73,6 +84,7 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
late final _passwordController = createTextEditingController();
final _urlFocus = FocusNode(debugLabel: 'AddJellyfin:Url');
final _findServerFocus = FocusNode(debugLabel: 'AddJellyfin:FindServer');
final _changeServerFocus = FocusNode(debugLabel: 'AddJellyfin:ChangeServer');
final _usernameFocus = FocusNode(debugLabel: 'AddJellyfin:Username');
// Owned so the username field can advance focus on Enter; mobile keyboards
// act on `textInputAction: next` automatically but TV remotes / hardware
@@ -81,13 +93,24 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
final _signInFocus = FocusNode(debugLabel: 'AddJellyfin:SignIn');
final _quickConnectFocus = FocusNode(debugLabel: 'AddJellyfin:QuickConnect');
final _cancelQuickConnectFocus = FocusNode(debugLabel: 'AddJellyfin:CancelQuickConnect');
final _discoveredServerFocusNodes = <String, FocusNode>{};
final _formKey = GlobalKey<FormState>();
JellyfinServerInfo? _serverInfo;
JellyfinEndpointRaceResult? _serverEndpoint;
List<DiscoveredJellyfinServer> _localServers = const [];
bool _isDiscoveringLocalServers = true;
bool _quickConnectEnabled = false;
JellyfinQuickConnectInitiation? _qcInitiation;
bool _qcCancelled = false;
int _qcAttemptId = 0;
int _localDiscoveryAttemptId = 0;
@override
void initState() {
super.initState();
unawaited(_discoverLocalServers());
}
@override
void dispose() {
@@ -97,39 +120,96 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
_qcAttemptId++;
_urlFocus.dispose();
_findServerFocus.dispose();
_changeServerFocus.dispose();
_usernameFocus.dispose();
_passwordFocus.dispose();
_signInFocus.dispose();
_quickConnectFocus.dispose();
_cancelQuickConnectFocus.dispose();
for (final node in _discoveredServerFocusNodes.values) {
node.dispose();
}
super.dispose();
}
Future<void> _discoverLocalServers() async {
final attemptId = ++_localDiscoveryAttemptId;
try {
final factory = widget._localDiscoveryFactory;
final servers = factory != null
? await factory()
: await JellyfinLanDiscoveryService().discover(responseWindow: const Duration(milliseconds: 1300));
if (!mounted || attemptId != _localDiscoveryAttemptId) return;
setState(() {
_localServers = servers;
_isDiscoveringLocalServers = false;
_syncDiscoveredServerFocusNodes(servers);
});
} catch (e, st) {
appLogger.w('Add Jellyfin local discovery failed', error: e, stackTrace: st);
if (!mounted || attemptId != _localDiscoveryAttemptId) return;
setState(() => _isDiscoveringLocalServers = false);
}
}
void _syncDiscoveredServerFocusNodes(List<DiscoveredJellyfinServer> servers) {
final ids = servers.map((server) => server.id).toSet();
final removed = _discoveredServerFocusNodes.keys.where((id) => !ids.contains(id)).toList(growable: false);
for (final id in removed) {
_discoveredServerFocusNodes.remove(id)?.dispose();
}
for (final server in servers) {
_discoveredServerFocusNodes.putIfAbsent(
server.id,
() => FocusNode(debugLabel: 'AddJellyfin:Discovered:${server.id}'),
);
}
}
void _clearResolvedServer() {
_serverEndpoint = null;
_serverInfo = null;
_quickConnectEnabled = false;
}
Future<void> _useDiscoveredServer(DiscoveredJellyfinServer server) async {
if (busy) return;
setState(() {
_urlController.text = server.address;
_clearResolvedServer();
});
await _probe();
}
Future<void> _probe() async {
final url = _urlController.text.trim();
if (url.isEmpty) {
final input = JellyfinEndpointDiscovery.buildUserInputCandidates(_enteredUrls());
if (input.probeBaseUrls.isEmpty) {
setErrorText(t.addServer.enterJellyfinUrlError);
return;
}
await runAsync<void>(
() async {
final auth = await _buildAuthService();
// Run the probe and the QC capability check in parallel — the latter
// is independent and just tells the UI whether to surface the button.
final probeFuture = auth.probe(url);
final qcFuture = auth.isQuickConnectEnabled(url);
final info = await probeFuture;
final qcEnabled = await qcFuture;
final endpoint = await auth.raceEndpoints(
input.probeBaseUrls,
baseUrlsToPersist: input.explicitBaseUrls,
baseUrlValidationGroups: input.validationBaseUrlGroups,
);
final qcEnabled = await auth.isQuickConnectEnabled(endpoint.activeBaseUrl);
if (!mounted) return;
setState(() {
_serverInfo = info;
_serverEndpoint = endpoint;
_serverInfo = endpoint.serverInfo;
_quickConnectEnabled = qcEnabled;
_urlController.text = endpoint.baseUrls.join('\n');
});
// On TV, typing a username/password with a remote is misery — auto-jump
// to Quick Connect when the server supports it. Mirrors the
// PlatformDetector.isTV() default in add_plex_account_screen.dart.
if (qcEnabled && PlatformDetector.isTV()) {
unawaited(_startQuickConnect());
} else {
_requestFocusAfterFrame(_usernameFocus);
}
},
errorMapper: (e) =>
@@ -140,7 +220,8 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
Future<void> _signIn() async {
if (!(_formKey.currentState?.validate() ?? false)) return;
final info = _serverInfo;
if (info == null) {
final endpoint = _serverEndpoint;
if (info == null || endpoint == null) {
await _probe();
return;
}
@@ -151,7 +232,8 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
final deviceId = await storage.getOrCreateClientIdentifier();
final connection = await auth.authenticateByName(
baseUrl: _urlController.text,
baseUrl: endpoint.activeBaseUrl,
baseUrls: endpoint.baseUrls,
username: _usernameController.text,
password: _passwordController.text,
deviceId: deviceId,
@@ -171,7 +253,8 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
Future<void> _startQuickConnect() async {
final info = _serverInfo;
if (info == null) return;
final endpoint = _serverEndpoint;
if (info == null || endpoint == null) return;
final attemptId = ++_qcAttemptId;
setState(() => _qcCancelled = false);
await runAsync<void>(
@@ -180,15 +263,17 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
final storage = await StorageService.getInstance();
final deviceId = await storage.getOrCreateClientIdentifier();
final initiation = await auth.initiateQuickConnect(baseUrl: _urlController.text, deviceId: deviceId);
final initiation = await auth.initiateQuickConnect(baseUrl: endpoint.activeBaseUrl, deviceId: deviceId);
if (!_isCurrentQuickConnectAttempt(attemptId)) return;
// Show the waiting panel without a spinner — opt-out of busy mid-flow
// so the user-visible state matches "we're polling, nothing for you to do".
setState(() => _qcInitiation = initiation);
_requestFocusAfterFrame(_cancelQuickConnectFocus);
setBusy(false);
final connection = await auth.authenticateByQuickConnect(
baseUrl: _urlController.text,
baseUrl: endpoint.activeBaseUrl,
baseUrls: endpoint.baseUrls,
secret: initiation.secret,
deviceId: deviceId,
serverInfo: info,
@@ -229,6 +314,37 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
setBusy(false);
}
void _requestFocusAfterFrame(FocusNode node) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted || !node.canRequestFocus) return;
node.requestFocus();
});
}
void _focusFirstDiscoveredServerOrFind() {
if (_localServers.isEmpty) {
_findServerFocus.requestFocus();
return;
}
_discoveredServerFocusNodes[_localServers.first.id]?.requestFocus();
}
void _focusLastDiscoveredServerOrUrl() {
if (_localServers.isEmpty) {
_urlFocus.requestFocus();
return;
}
_discoveredServerFocusNodes[_localServers.last.id]?.requestFocus();
}
List<String> _enteredUrls() {
return _urlController.text
.split(RegExp(r'[\n,]+'))
.map((url) => url.trim())
.where((url) => url.isNotEmpty)
.toList(growable: false);
}
/// Shared persistence path for both username/password and Quick Connect:
/// upsert the connection, attach a ProfileConnection to the bound profile,
/// register with the live manager when binding to the active profile, and
@@ -305,6 +421,8 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
}
Future<JellyfinConnectionAuthService> _buildAuthService() async {
final authServiceFactory = widget._authServiceFactory;
if (authServiceFactory != null) return await authServiceFactory();
final pkg = await PackageInfo.fromPlatform();
final deviceName = await _resolveDeviceName();
return JellyfinConnectionAuthService(clientName: 'Plezy', clientVersion: pkg.version, deviceName: deviceName);
@@ -347,32 +465,43 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
];
}
return [
Text(t.addServer.jellyfinUrlIntro, style: theme.textTheme.bodyMedium),
Text(t.addServer.jellyfinUrlsIntro, style: theme.textTheme.bodyMedium),
const SizedBox(height: 16),
FocusableTextFormField(
controller: _urlController,
focusNode: _urlFocus,
autofocus: true,
keyboardType: TextInputType.url,
minLines: 1,
maxLines: 4,
autocorrect: false,
enableSuggestions: false,
enabled: !busy,
onNavigateDown: _serverInfo == null ? () => _findServerFocus.requestFocus() : null,
onChanged: (_) {
if (_serverInfo == null && _serverEndpoint == null && !_quickConnectEnabled) return;
setState(() {
_clearResolvedServer();
});
},
onNavigateDown: _serverInfo == null
? _focusFirstDiscoveredServerOrFind
: () => _changeServerFocus.requestFocus(),
textInputAction: TextInputAction.go,
onFieldSubmitted: busy ? null : (_) => _probe(),
decoration: InputDecoration(
labelText: t.addServer.serverUrl,
labelText: t.addServer.serverUrls,
prefixIcon: const AppIcon(Symbols.link_rounded, fill: 1),
),
validator: (v) => v == null || v.trim().isEmpty ? t.addServer.required : null,
validator: (_) => _enteredUrls().isEmpty ? t.addServer.required : null,
),
if (_serverInfo == null) ...[
..._buildLocalDiscoverySection(theme),
const SizedBox(height: 16),
FocusableButton(
focusNode: _findServerFocus,
useBackgroundFocus: true,
onNavigateUp: _focusLastDiscoveredServerOrUrl,
onPressed: busy ? null : _probe,
onNavigateUp: () => _urlFocus.requestFocus(),
child: FilledButton.icon(
onPressed: busy ? null : _probe,
icon: busy ? const LoadingIndicatorBox() : const AppIcon(Symbols.travel_explore_rounded, fill: 1),
@@ -389,7 +518,7 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
autocorrect: false,
enableSuggestions: false,
enabled: !busy,
onNavigateDown: () => _passwordFocus.requestFocus(),
onNavigateUp: () => _changeServerFocus.requestFocus(),
textInputAction: TextInputAction.next,
onFieldSubmitted: busy ? null : (_) => _passwordFocus.requestFocus(),
decoration: InputDecoration(
@@ -404,8 +533,6 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
focusNode: _passwordFocus,
obscureText: true,
enabled: !busy,
onNavigateUp: () => _usernameFocus.requestFocus(),
onNavigateDown: () => _signInFocus.requestFocus(),
textInputAction: TextInputAction.done,
onFieldSubmitted: busy ? null : (_) => _signIn(),
decoration: InputDecoration(
@@ -420,8 +547,6 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
focusNode: _signInFocus,
useBackgroundFocus: true,
onPressed: busy ? null : _signIn,
onNavigateUp: () => _passwordFocus.requestFocus(),
onNavigateDown: _quickConnectEnabled ? () => _quickConnectFocus.requestFocus() : null,
child: FilledButton.icon(
onPressed: busy ? null : _signIn,
icon: busy ? const LoadingIndicatorBox() : const AppIcon(Symbols.login_rounded, fill: 1),
@@ -434,7 +559,6 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
focusNode: _quickConnectFocus,
useBackgroundFocus: true,
onPressed: busy ? null : _startQuickConnect,
onNavigateUp: () => _signInFocus.requestFocus(),
child: OutlinedButton.icon(
onPressed: busy ? null : _startQuickConnect,
icon: const AppIcon(Symbols.tap_and_play_rounded, fill: 1),
@@ -473,20 +597,83 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
],
),
),
TextButton(
FocusableButton(
focusNode: _changeServerFocus,
useBackgroundFocus: true,
onNavigateUp: () => _urlFocus.requestFocus(),
onNavigateDown: () => _usernameFocus.requestFocus(),
onPressed: busy
? null
: () => setState(() {
_serverInfo = null;
_quickConnectEnabled = false;
_clearResolvedServer();
}),
child: Text(t.addServer.change),
child: TextButton(
onPressed: busy
? null
: () => setState(() {
_clearResolvedServer();
}),
child: Text(t.addServer.change),
),
),
],
),
);
}
List<Widget> _buildLocalDiscoverySection(ThemeData theme) {
if (_isDiscoveringLocalServers) {
return [
const SizedBox(height: 16),
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: theme.colorScheme.surfaceContainerHighest,
borderRadius: BorderRadius.circular(8),
),
child: Row(
children: [
const LoadingIndicatorBox(size: 20),
const SizedBox(width: 12),
Expanded(child: Text(t.addServer.searchingLocalServers, style: theme.textTheme.bodyMedium)),
],
),
),
];
}
if (_localServers.isEmpty) return const [];
return [
const SizedBox(height: 16),
Text(t.addServer.localServers, style: theme.textTheme.titleSmall),
const SizedBox(height: 8),
for (final server in _localServers) ...[
_DiscoveredJellyfinServerTile(
server: server,
focusNode: _discoveredServerFocusNodes[server.id],
onNavigateUp: () {
final index = _localServers.indexOf(server);
if (index <= 0) {
_urlFocus.requestFocus();
return;
}
_discoveredServerFocusNodes[_localServers[index - 1].id]?.requestFocus();
},
onNavigateDown: () {
final index = _localServers.indexOf(server);
if (index < 0 || index == _localServers.length - 1) {
_findServerFocus.requestFocus();
return;
}
_discoveredServerFocusNodes[_localServers[index + 1].id]?.requestFocus();
},
onTap: busy ? null : () => unawaited(_useDiscoveredServer(server)),
),
const SizedBox(height: 8),
],
];
}
List<Widget> _buildQuickConnectPanel(ThemeData theme) {
final code = _qcInitiation!.code;
return [
@@ -540,3 +727,71 @@ class _AddJellyfinScreenState extends State<AddJellyfinScreen> with AsyncFormSta
];
}
}
class _DiscoveredJellyfinServerTile extends StatelessWidget {
final DiscoveredJellyfinServer server;
final FocusNode? focusNode;
final VoidCallback? onNavigateUp;
final VoidCallback? onNavigateDown;
final VoidCallback? onTap;
const _DiscoveredJellyfinServerTile({
required this.server,
required this.focusNode,
required this.onNavigateUp,
required this.onNavigateDown,
required this.onTap,
});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return FocusableWrapper(
focusNode: focusNode,
disableScale: true,
borderRadius: 12,
useForegroundFocusDecoration: true,
descendantsAreFocusable: false,
onSelect: onTap,
onNavigateUp: onNavigateUp,
onNavigateDown: onNavigateDown,
child: Material(
color: theme.colorScheme.surfaceContainerHighest,
borderRadius: BorderRadius.circular(12),
child: InkWell(
onTap: onTap,
borderRadius: BorderRadius.circular(12),
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
children: [
const AppIcon(Symbols.dns_rounded, fill: 1),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(server.name, style: theme.textTheme.titleSmall),
const SizedBox(height: 2),
Text(
server.address,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurface.withValues(alpha: 0.7),
),
),
],
),
),
const SizedBox(width: 12),
const AppIcon(Symbols.chevron_right_rounded, fill: 1),
],
),
),
),
),
);
}
}
@@ -33,6 +33,13 @@ class AppearanceSettingsScreen extends StatelessWidget {
_densitySelector(),
_viewModeSelector(),
_episodePosterModeSelector(),
if (PlatformDetector.isTV())
SettingSwitchTile(
pref: SettingsService.tvFullCardLayout,
icon: Symbols.image_rounded,
title: t.settings.tvFullCardLayout,
subtitle: t.settings.tvFullCardLayoutDescription,
),
SettingSwitchTile(
pref: SettingsService.showEpisodeNumberOnCards,
icon: Symbols.tag_rounded,
@@ -108,7 +115,7 @@ class AppearanceSettingsScreen extends StatelessWidget {
subtitle: t.settings.showUnwatchedCountDescription,
),
if (Platform.isWindows || Platform.isLinux) ...[
if (PlatformDetector.isDesktopOS()) ...[
SettingsSectionHeader(t.settings.window),
SettingSwitchTile(
pref: SettingsService.startInFullscreen,
@@ -116,6 +123,12 @@ class AppearanceSettingsScreen extends StatelessWidget {
title: t.settings.startInFullscreen,
subtitle: t.settings.startInFullscreenDescription,
),
SettingSwitchTile(
pref: SettingsService.exitFullscreenOnPlayerClose,
icon: Symbols.fullscreen_exit_rounded,
title: t.settings.exitFullscreenOnPlayerClose,
subtitle: t.settings.exitFullscreenOnPlayerCloseDescription,
),
],
SettingsSectionHeader(t.settings.content),
@@ -283,6 +296,8 @@ class AppearanceSettingsScreen extends StatelessWidget {
return 'Dansk';
case AppLocale.nb:
return 'Norsk bokmål';
case AppLocale.bg:
return 'Български';
}
}
@@ -0,0 +1,139 @@
import 'package:flutter/material.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:provider/provider.dart';
import '../../connection/connection.dart';
import '../../connection/connection_registry.dart';
import '../../exceptions/media_server_exceptions.dart';
import '../../focus/focusable_button.dart';
import '../../focus/focusable_text_field.dart';
import '../../i18n/strings.g.dart';
import '../../mixins/controller_disposer_mixin.dart';
import '../../services/jellyfin_endpoint_discovery.dart';
import '../../utils/app_logger.dart';
import '../../widgets/app_icon.dart';
import '../../widgets/focused_scroll_scaffold.dart';
import '../../widgets/loading_indicator_box.dart';
import 'async_form_state_mixin.dart';
class EditJellyfinConnectionScreen extends StatefulWidget {
final JellyfinConnection connection;
const EditJellyfinConnectionScreen({super.key, required this.connection});
@override
State<EditJellyfinConnectionScreen> createState() => _EditJellyfinConnectionScreenState();
}
class _EditJellyfinConnectionScreenState extends State<EditJellyfinConnectionScreen>
with AsyncFormStateMixin, ControllerDisposerMixin {
late final _urlsController = createTextEditingController(text: widget.connection.baseUrls.join('\n'));
final _urlsFocus = FocusNode(debugLabel: 'EditJellyfin:Urls');
final _saveFocus = FocusNode(debugLabel: 'EditJellyfin:Save');
final _formKey = GlobalKey<FormState>();
@override
void dispose() {
_urlsFocus.dispose();
_saveFocus.dispose();
super.dispose();
}
Future<void> _save() async {
if (!(_formKey.currentState?.validate() ?? false)) return;
await runAsync<void>(
() async {
final input = JellyfinEndpointDiscovery.buildUserInputCandidates(_enteredUrls());
final endpoint = await JellyfinEndpointDiscovery().raceEndpoints(
input.probeBaseUrls,
preferredUrl: widget.connection.baseUrl,
expectedMachineId: widget.connection.serverMachineId,
baseUrlsToPersist: input.explicitBaseUrls,
baseUrlValidationGroups: input.validationBaseUrlGroups,
);
final updated = widget.connection.copyWith(
baseUrl: endpoint.activeBaseUrl,
baseUrls: endpoint.baseUrls,
serverName: endpoint.serverInfo.serverName,
);
if (!mounted) return;
await context.read<ConnectionRegistry>().upsert(updated);
if (!mounted) return;
Navigator.of(context).pop(true);
},
errorMapper: (e) {
if (e is MediaServerUrlException) return e.message;
appLogger.e('Edit Jellyfin connection failed', error: e);
return t.addServer.couldNotReachServer(error: e.toString());
},
);
}
List<String> _enteredUrls() {
return _urlsController.text
.split(RegExp(r'[\n,]+'))
.map((url) => url.trim())
.where((url) => url.isNotEmpty)
.toList(growable: false);
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return FocusedScrollScaffold(
title: Text(t.connections.editJellyfinTitle),
slivers: [
SliverPadding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
sliver: SliverToBoxAdapter(
child: Form(
key: _formKey,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
t.connections.editJellyfinIntro(serverName: widget.connection.serverName),
style: theme.textTheme.bodyMedium,
),
const SizedBox(height: 16),
FocusableTextFormField(
controller: _urlsController,
focusNode: _urlsFocus,
autofocus: true,
keyboardType: TextInputType.url,
minLines: 1,
maxLines: 5,
autocorrect: false,
enableSuggestions: false,
enabled: !busy,
onNavigateDown: () => _saveFocus.requestFocus(),
decoration: InputDecoration(
labelText: t.addServer.serverUrls,
prefixIcon: const AppIcon(Symbols.link_rounded, fill: 1),
),
validator: (_) => _enteredUrls().isEmpty ? t.addServer.required : null,
),
const SizedBox(height: 16),
FocusableButton(
focusNode: _saveFocus,
useBackgroundFocus: true,
onPressed: busy ? null : _save,
child: FilledButton.icon(
onPressed: busy ? null : _save,
icon: busy ? const LoadingIndicatorBox() : const AppIcon(Symbols.save_rounded, fill: 1),
label: Text(t.common.save),
),
),
if (errorText != null) ...[
const SizedBox(height: 12),
Text(errorText!, style: theme.textTheme.bodySmall?.copyWith(color: theme.colorScheme.error)),
],
],
),
),
),
),
],
);
}
}
+106 -106
View File
@@ -116,115 +116,17 @@ class _PlayerTile extends StatelessWidget {
}
}
typedef _CustomPlayerDialogResult = ({String name, String value, CustomPlayerType type});
Future<void> _showAddCustomPlayerDialog(BuildContext context) async {
final nameController = TextEditingController();
final valueController = TextEditingController();
final valueFocusNode = FocusNode();
final saveFocusNode = FocusNode();
var selectedType = CustomPlayerType.command;
String? playerName;
String? playerValue;
try {
final result = await showDialog<bool>(
context: context,
builder: (context) => StatefulBuilder(
builder: (context, setDialogState) {
final isUrlScheme = selectedType == CustomPlayerType.urlScheme;
final String fieldLabel;
final String fieldHint;
if (isUrlScheme) {
fieldLabel = t.externalPlayer.playerUrlScheme;
fieldHint = 'myplayer://play?url=';
} else if (Platform.isAndroid) {
fieldLabel = t.externalPlayer.playerPackage;
fieldHint = 'com.example.player';
} else {
fieldLabel = t.externalPlayer.playerCommand;
fieldHint = Platform.isMacOS ? 'mpv' : '/usr/bin/player';
}
return AlertDialog(
title: Text(t.externalPlayer.addCustomPlayer),
content: SizedBox(
width: 300,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
FocusableTextField(
controller: nameController,
decoration: InputDecoration(labelText: t.externalPlayer.playerName, hintText: 'My Player'),
autofocus: true,
textInputAction: TextInputAction.next,
onSubmitted: (_) => primaryFocus?.nextFocus(),
),
const SizedBox(height: 16),
SizedBox(
width: double.infinity,
child: SegmentedButton<CustomPlayerType>(
segments: [
ButtonSegment(
value: CustomPlayerType.command,
label: Text(
Platform.isAndroid ? t.externalPlayer.playerPackage : t.externalPlayer.playerCommand,
),
),
ButtonSegment(value: CustomPlayerType.urlScheme, label: Text(t.externalPlayer.playerUrlScheme)),
],
selected: {selectedType},
onSelectionChanged: (value) => setDialogState(() => selectedType = value.first),
),
),
const SizedBox(height: 16),
FocusableTextField(
controller: valueController,
focusNode: valueFocusNode,
decoration: InputDecoration(labelText: fieldLabel, hintText: fieldHint),
textInputAction: TextInputAction.done,
onSubmitted: (_) => saveFocusNode.requestFocus(),
),
],
),
),
actions: [
FocusableButton(
onPressed: () => Navigator.pop(context),
child: TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel)),
),
FocusableButton(
focusNode: saveFocusNode,
onPressed: () {
if (nameController.text.isNotEmpty && valueController.text.isNotEmpty) {
Navigator.pop(context, true);
}
},
child: FilledButton(
onPressed: () {
if (nameController.text.isNotEmpty && valueController.text.isNotEmpty) {
Navigator.pop(context, true);
}
},
child: Text(t.common.save),
),
),
],
);
},
),
);
if (result != true) return;
playerName = nameController.text;
playerValue = valueController.text;
} finally {
nameController.dispose();
valueController.dispose();
valueFocusNode.dispose();
saveFocusNode.dispose();
}
final result = await showDialog<_CustomPlayerDialogResult>(
context: context,
builder: (_) => const _AddCustomPlayerDialog(),
);
if (result == null) return;
final id = 'custom_${DateTime.now().millisecondsSinceEpoch}';
final newPlayer = ExternalPlayer.custom(id: id, name: playerName, value: playerValue, type: selectedType);
final newPlayer = ExternalPlayer.custom(id: id, name: result.name, value: result.value, type: result.type);
final svc = SettingsService.instanceOrNull!;
await svc.write(SettingsService.customExternalPlayers, [
@@ -232,3 +134,101 @@ Future<void> _showAddCustomPlayerDialog(BuildContext context) async {
newPlayer,
]);
}
class _AddCustomPlayerDialog extends StatefulWidget {
const _AddCustomPlayerDialog();
@override
State<_AddCustomPlayerDialog> createState() => _AddCustomPlayerDialogState();
}
class _AddCustomPlayerDialogState extends State<_AddCustomPlayerDialog> {
final _nameController = TextEditingController();
final _valueController = TextEditingController();
final _valueFocusNode = FocusNode(debugLabel: 'CustomExternalPlayerValue');
final _saveFocusNode = FocusNode(debugLabel: 'CustomExternalPlayerSave');
CustomPlayerType _selectedType = CustomPlayerType.command;
@override
void dispose() {
_valueFocusNode.dispose();
_saveFocusNode.dispose();
_nameController.dispose();
_valueController.dispose();
super.dispose();
}
void _submit() {
final name = _nameController.text.trim();
final value = _valueController.text.trim();
if (name.isEmpty || value.isEmpty) return;
Navigator.pop(context, (name: name, value: value, type: _selectedType));
}
({String label, String hint}) get _valueFieldInfo {
if (_selectedType == CustomPlayerType.urlScheme) {
return (label: t.externalPlayer.playerUrlScheme, hint: 'myplayer://play?url=');
}
if (Platform.isAndroid) {
return (label: t.externalPlayer.playerPackage, hint: 'com.example.player');
}
return (label: t.externalPlayer.playerCommand, hint: Platform.isMacOS ? 'mpv' : '/usr/bin/player');
}
@override
Widget build(BuildContext context) {
final (:label, :hint) = _valueFieldInfo;
return AlertDialog(
title: Text(t.externalPlayer.addCustomPlayer),
content: SizedBox(
width: 300,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
FocusableTextField(
controller: _nameController,
decoration: InputDecoration(labelText: t.externalPlayer.playerName, hintText: 'My Player'),
autofocus: true,
textInputAction: TextInputAction.next,
onSubmitted: (_) => _valueFocusNode.requestFocus(),
),
const SizedBox(height: 16),
SizedBox(
width: double.infinity,
child: SegmentedButton<CustomPlayerType>(
segments: [
ButtonSegment(
value: CustomPlayerType.command,
label: Text(Platform.isAndroid ? t.externalPlayer.playerPackage : t.externalPlayer.playerCommand),
),
ButtonSegment(value: CustomPlayerType.urlScheme, label: Text(t.externalPlayer.playerUrlScheme)),
],
selected: {_selectedType},
onSelectionChanged: (value) => setState(() => _selectedType = value.first),
),
),
const SizedBox(height: 16),
FocusableTextField(
controller: _valueController,
focusNode: _valueFocusNode,
decoration: InputDecoration(labelText: label, hintText: hint),
textInputAction: TextInputAction.done,
onSubmitted: (_) => _saveFocusNode.requestFocus(),
),
],
),
),
actions: [
FocusableButton(
onPressed: () => Navigator.pop(context),
child: TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel)),
),
FocusableButton(
focusNode: _saveFocusNode,
onPressed: _submit,
child: FilledButton(onPressed: _submit, child: Text(t.common.save)),
),
],
);
}
}
+63 -45
View File
@@ -644,52 +644,10 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab, Moun
}
Future<void> _showRelayUrlDialog() async {
final controller = TextEditingController(
text: _settingsService.read(settings.SettingsService.customRelayUrl) ?? '',
await showDialog<void>(
context: context,
builder: (_) => _RelayUrlDialog(settingsService: _settingsService),
);
final saveFocusNode = FocusNode();
// try/finally guarantees disposal on every dismissal path (button,
// back, tap-outside) without depending on `.then` chaining.
try {
await showDialog<void>(
context: context,
builder: (BuildContext dialogContext) {
return AlertDialog(
title: Text(t.settings.watchTogetherRelay),
content: FocusableTextField(
controller: controller,
decoration: InputDecoration(labelText: 'URL', hintText: t.settings.watchTogetherRelayHint),
autofocus: true,
textInputAction: TextInputAction.done,
onEditingComplete: () => saveFocusNode.requestFocus(),
),
actions: [
DialogActionButton(
onPressed: () async {
controller.clear();
await _settingsService.write(settings.SettingsService.customRelayUrl, null);
if (dialogContext.mounted) Navigator.pop(dialogContext);
},
label: t.settings.resetToDefault,
),
DialogActionButton(onPressed: () => Navigator.pop(dialogContext), label: t.common.cancel),
DialogActionButton(
focusNode: saveFocusNode,
onPressed: () async {
final url = controller.text.trim().isEmpty ? null : controller.text.trim();
await _settingsService.write(settings.SettingsService.customRelayUrl, url);
if (dialogContext.mounted) Navigator.pop(dialogContext);
},
label: t.common.save,
),
],
);
},
);
} finally {
controller.dispose();
saveFocusNode.dispose();
}
}
Future<void> _showClearCacheDialog() async {
@@ -810,3 +768,63 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab, Moun
);
}
}
class _RelayUrlDialog extends StatefulWidget {
final settings.SettingsService settingsService;
const _RelayUrlDialog({required this.settingsService});
@override
State<_RelayUrlDialog> createState() => _RelayUrlDialogState();
}
class _RelayUrlDialogState extends State<_RelayUrlDialog> {
late final TextEditingController _controller;
final _saveFocusNode = FocusNode(debugLabel: 'WatchTogetherRelaySave');
@override
void initState() {
super.initState();
_controller = TextEditingController(
text: widget.settingsService.read(settings.SettingsService.customRelayUrl) ?? '',
);
}
@override
void dispose() {
_saveFocusNode.dispose();
_controller.dispose();
super.dispose();
}
Future<void> _reset() async {
_controller.clear();
await widget.settingsService.write(settings.SettingsService.customRelayUrl, null);
if (mounted) Navigator.pop(context);
}
Future<void> _save() async {
final trimmed = _controller.text.trim();
await widget.settingsService.write(settings.SettingsService.customRelayUrl, trimmed.isEmpty ? null : trimmed);
if (mounted) Navigator.pop(context);
}
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text(t.settings.watchTogetherRelay),
content: FocusableTextField(
controller: _controller,
decoration: InputDecoration(labelText: 'URL', hintText: t.settings.watchTogetherRelayHint),
autofocus: true,
textInputAction: TextInputAction.done,
onEditingComplete: () => _saveFocusNode.requestFocus(),
),
actions: [
DialogActionButton(onPressed: _reset, label: t.settings.resetToDefault),
DialogActionButton(onPressed: () => Navigator.pop(context), label: t.common.cancel),
DialogActionButton(focusNode: _saveFocusNode, onPressed: _save, label: t.common.save),
],
);
}
}

Some files were not shown because too many files have changed in this diff Show More