Compare commits

...
47 Commits
Author SHA1 Message Date
github-actions[bot] bd7f7894ed chore: bump version to 1.32.0 2026-04-13 06:03:17 +00:00
edde746 6dfdb62df8 feat: relay connection limits and container memory caps 2026-04-13 07:55:28 +02:00
edde746 3be302d69f feat: set sentry environment per distribution channel 2026-04-13 02:38:28 +02:00
edde746 66ebc547f0 fix: filter disk-full and dbus socket errors from sentry 2026-04-13 02:05:24 +02:00
edde746 3366b83a89 fix: hide spoilers in watch next thumbnails
close #849
2026-04-12 11:12:37 +02:00
edde746 cd3db94b5d fix: guard library dropdown against empty list 2026-04-12 10:14:43 +02:00
edde746 d56067e7cc fix: skip back navigation when overlay route is on top 2026-04-12 10:11:11 +02:00
edde746 7c3cee692c fix: one-shot select key activation in focus helpers 2026-04-12 10:00:26 +02:00
edde746 a948d82c24 switch from glitchtip 2026-04-12 09:11:42 +02:00
edde746 77893bb9ba fix: detail screen section alignment 2026-04-12 01:37:08 +02:00
edde746 1b2ecd9de4 fix: standardize bool parsing with flexibleBool helper
close #844
2026-04-11 21:22:15 +02:00
edde746andGitHub b92842f9ac Merge pull request #842 from jordankoehn/fix-live-tv-join-session-edge-case
Fix Live TV join session edge case
2026-04-11 08:09:51 +02:00
edde746 91d191b3d8 fix: file info bitrate units, multi-track display, tv scrolling
close #840, close #841
2026-04-11 08:04:12 +02:00
Jordan Koehn 21accaa883 Fix Live TV join session edge case
Under the circumstance that guide data is not available, program start
is equal to current time. So program start should be ignored so one can
tune to the oldest available recording offset.
2026-04-10 22:34:32 -04:00
edde746 c6f2e949a7 fix: use configured skip setting for dpad/timeline seeking
close #751, close #790
2026-04-10 22:31:41 +02:00
edde746 9d9d9bb311 feat: add square art and logo editing to metadata editor
close #837
2026-04-10 18:38:54 +02:00
edde746 0b20300572 fix: noisy audio pause on android tv 2026-04-10 10:24:19 +02:00
edde746 f47bcb69fd feat: auto-hide performance overlay with controls
close #834
2026-04-10 01:30:26 +02:00
edde746 c20bb93f1f fix: always show track selection button
close #833
2026-04-09 23:52:02 +02:00
edde746 497259ca16 fix: close http clients on server replacement 2026-04-09 23:34:01 +02:00
edde746 4322ffc6e5 fix: disable android tv pip lifecycle regressions 2026-04-09 06:39:17 +02:00
edde746 8b40e0993f fix: normalize EOF playback state
close #828
2026-04-09 05:55:03 +02:00
edde746 966b6371f5 fix: preserve download server affinity 2026-04-09 04:51:35 +02:00
edde746 5b493a70b0 feat: show snackbar on playback speed change
close #824
2026-04-09 03:48:14 +02:00
edde746 1cb793d781 feat: add sub-ass-override setting 2026-04-08 19:35:18 +02:00
edde746 7f237c9c7b refactor: reuse showTextInputDialog for episode count input 2026-04-08 18:08:39 +02:00
edde746 d0934295b0 feat: download all playlist items
close #241
2026-04-08 12:37:03 +02:00
edde746 8d40ba3011 fix: reduce blank space in media card bottom 2026-04-08 07:21:21 +02:00
edde746 f926deb63b feat: clickable cast members to browse actor filmography
close #723
2026-04-08 05:17:37 +02:00
edde746 b82c612f94 fix: remove unused parameter in focusable_slider 2026-04-08 04:40:12 +02:00
edde746 e7ae108c49 chore: bump win_http to 0.2.0 2026-04-08 04:24:06 +02:00
edde746 08689df2f5 chore: update Podfile.lock 2026-04-08 01:58:26 +02:00
edde746 87c308f6ca feat: use win_http on Windows 2026-04-08 01:54:40 +02:00
edde746 15b22f75a8 refactor: replace dio with package:http 2026-04-08 00:43:08 +02:00
edde746 8e7431e7e5 feat: download options picker for series/seasons 2026-04-07 22:59:35 +02:00
edde746 c034f9b66e fix: request utf-8 encoding for external subtitles
close #817
2026-04-07 18:34:47 +02:00
edde746 5cf53f8cfa fix: chapter keyboard shortcuts navigate chapters not episodes
close #820
2026-04-07 17:58:00 +02:00
edde746 e4de7f1ecb fix(tv): reduce live stream reconnect delay for faster fallback 2026-04-07 15:37:36 +02:00
edde746 bf9913ba0f fix(tv): re-tune on live stream fallback, fix decision 400 throw 2026-04-07 10:52:54 +02:00
edde746 6ac8c905c9 fix(tv): live stream direct-stream fallback chain 2026-04-07 07:58:42 +02:00
edde746 603b5b5105 fix: pip aspect ratio clamp values outside android limits 2026-04-07 07:35:03 +02:00
edde746 7528dcec71 fix: connection selection failover and timeout budget 2026-04-07 06:49:51 +02:00
github-actions[bot] d96848181d chore: update cask to 1.31.3 2026-04-07 04:28:16 +00:00
github-actions[bot] 16b6ea8f29 chore: bump version to 1.31.3 2026-04-07 04:11:07 +00:00
edde746 7150ea2987 fix: log reason for https upgrade failure 2026-04-07 05:48:44 +02:00
edde746 bc2febf480 fix: prefer https endpoints, catch h2 protocol errors 2026-04-07 05:48:44 +02:00
github-actions[bot] 11ec48a506 chore: update cask to 1.31.2 2026-04-07 02:40:18 +00:00
106 changed files with 3318 additions and 1088 deletions
+8 -7
View File
@@ -6,6 +6,7 @@ on:
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
jobs:
build-android:
@@ -62,7 +63,7 @@ jobs:
EOF
- name: Build APKs
run: flutter build apk --release --split-per-abi --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build apk --release --split-per-abi --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
- name: Clean up keystore
if: always()
@@ -130,7 +131,7 @@ jobs:
run: flutter pub get
- name: Build iOS (no codesign)
run: flutter build ios --release --no-codesign --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build ios --release --no-codesign --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
- name: Create IPA
run: |
@@ -188,7 +189,7 @@ jobs:
run: flutter pub get
- name: Build macOS
run: flutter build macos --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build macos --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
- name: Import Code Signing Certificate
env:
@@ -339,7 +340,7 @@ jobs:
run: flutter pub get
- name: Build Windows x64
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
- name: Upload x64 build
uses: actions/upload-artifact@v4
@@ -376,7 +377,7 @@ jobs:
run: flutter pub get
- name: Build Windows arm64
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
- name: Upload arm64 build
uses: actions/upload-artifact@v4
@@ -520,7 +521,7 @@ jobs:
run: flutter pub get
- name: Build Linux x64
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
env:
PKG_CONFIG_PATH: ${{ github.workspace }}/libmpv-prefix/lib/pkgconfig:${{ github.workspace }}/libmpv-prefix/lib/x86_64-linux-gnu/pkgconfig
@@ -628,7 +629,7 @@ jobs:
run: flutter pub get
- name: Build Linux arm64
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }}
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }}
env:
PKG_CONFIG_PATH: ${{ github.workspace }}/libmpv-prefix/lib/pkgconfig:${{ github.workspace }}/libmpv-prefix/lib/aarch64-linux-gnu/pkgconfig
+2 -2
View File
@@ -1,6 +1,6 @@
cask "plezy" do
version "1.31.1"
sha256 "8f10cf123a1e3afdb8f386ce822170bc7eb1df6b9d50077d449d6891c1528505"
version "1.31.3"
sha256 "d57abe37df0f821bad3d9688f20ad858d01a5d23a582b4244fa9541ef49face1"
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
name "Plezy"
@@ -11,6 +11,7 @@ import android.app.AppOpsManager
import android.app.PictureInPictureParams
import android.content.Context
import android.content.res.Configuration
import android.util.Log
import android.util.Rational
import android.view.KeyEvent
import android.view.TextureView
@@ -34,6 +35,7 @@ import java.io.File
class MainActivity : FlutterActivity() {
companion object {
private const val TAG = "MainActivity"
var usingSkia = false
}
@@ -47,6 +49,10 @@ class MainActivity : FlutterActivity() {
private var autoPipWidth: Int = 16
private var autoPipHeight: Int = 9
private fun isAndroidTvDevice(): Boolean {
return packageManager.hasSystemFeature("android.software.leanback")
}
override fun onCreate(savedInstanceState: Bundle?) {
// Apply persisted theme color to the window background before anything
// else renders. This prevents a white flash between the native splash
@@ -278,7 +284,7 @@ class MainActivity : FlutterActivity() {
MethodChannel( flutterEngine.dartExecutor.binaryMessenger, PIP_CHANNEL ).setMethodCallHandler { call, result ->
when (call.method) {
"isSupported" -> {
result.success(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
result.success(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !isAndroidTvDevice())
}
"enter" -> {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
@@ -286,6 +292,11 @@ class MainActivity : FlutterActivity() {
return@setMethodCallHandler
}
if (isAndroidTvDevice()) {
result.success(mapOf("success" to false, "errorCode" to "not_supported"))
return@setMethodCallHandler
}
if (!isPipPermissionGranted()) {
result.success(mapOf("success" to false, "errorCode" to "permission_disabled"))
return@setMethodCallHandler
@@ -294,11 +305,7 @@ class MainActivity : FlutterActivity() {
try {
val width = call.argument<Int>("width") ?: 16
val height = call.argument<Int>("height") ?: 9
val clamped = clampAspectRatio(width, height)
val params = PictureInPictureParams.Builder()
.setAspectRatio(Rational(clamped.first, clamped.second))
.build()
val params = buildPipParams(width, height)
val success = enterPictureInPictureMode(params)
if (success) {
result.success(mapOf("success" to true))
@@ -312,19 +319,23 @@ class MainActivity : FlutterActivity() {
}
}
"setAutoPipReady" -> {
if (isAndroidTvDevice()) {
autoPipReady = false
result.success(true)
return@setMethodCallHandler
}
autoPipReady = call.argument<Boolean>("ready") ?: false
autoPipWidth = call.argument<Int>("width") ?: 16
autoPipHeight = call.argument<Int>("height") ?: 9
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
try {
val clamped = clampAspectRatio(autoPipWidth, autoPipHeight)
val params = PictureInPictureParams.Builder()
.setAspectRatio(Rational(clamped.first, clamped.second))
.setAutoEnterEnabled(autoPipReady)
.build()
val params = buildPipParams(autoPipWidth, autoPipHeight, autoEnterEnabled = autoPipReady)
setPictureInPictureParams(params)
} catch (_: Exception) {}
} catch (e: Exception) {
Log.w(TAG, "Failed to set auto-PiP params", e)
}
}
result.success(true)
}
@@ -346,7 +357,8 @@ class MainActivity : FlutterActivity() {
override fun onUserLeaveHint() {
super.onUserLeaveHint()
// Auto PiP for API 26-30 (API 31+ uses setAutoEnterEnabled)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
if (!isAndroidTvDevice() &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
Build.VERSION.SDK_INT < Build.VERSION_CODES.S &&
autoPipReady && isPipPermissionGranted()) {
try {
@@ -354,12 +366,11 @@ class MainActivity : FlutterActivity() {
flutterEngine?.dartExecutor?.binaryMessenger?.let { messenger ->
MethodChannel(messenger, PIP_CHANNEL).invokeMethod("onAutoPipEntering", null)
}
val clamped = clampAspectRatio(autoPipWidth, autoPipHeight)
val params = PictureInPictureParams.Builder()
.setAspectRatio(Rational(clamped.first, clamped.second))
.build()
val params = buildPipParams(autoPipWidth, autoPipHeight)
enterPictureInPictureMode(params)
} catch (_: Exception) {}
} catch (e: Exception) {
Log.w(TAG, "Failed to enter auto-PiP", e)
}
}
}
@@ -372,12 +383,22 @@ class MainActivity : FlutterActivity() {
) == AppOpsManager.MODE_ALLOWED
}
private fun clampAspectRatio(width: Int, height: Int): Pair<Int, Int> {
val ratio = width.toFloat() / height.toFloat()
return when {
ratio < 0.42f -> Pair(5, 12)
ratio > 2.39f -> Pair(12, 5)
else -> Pair(width, height)
private fun buildPipParams(width: Int, height: Int, autoEnterEnabled: Boolean? = null): PictureInPictureParams {
val (w, h) = if (width <= 0 || height <= 0) {
Pair(16, 9)
} else {
val ratio = width.toFloat() / height.toFloat()
when {
ratio < 1f / 2.39f -> Pair(100, 239)
ratio > 2.39f -> Pair(239, 100)
else -> Pair(width, height)
}
}
val builder = PictureInPictureParams.Builder()
.setAspectRatio(Rational(w, h))
if (autoEnterEnabled != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
builder.setAutoEnterEnabled(autoEnterEnabled)
}
return builder.build()
}
}
+2 -2
View File
@@ -23,7 +23,7 @@ platform :android do
git_commit = `git rev-parse --short HEAD`.strip
# Build the Flutter app
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --obfuscate --split-debug-info=#{debug_info_dir}/aab")
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=play-store --obfuscate --split-debug-info=#{debug_info_dir}/aab")
upload_to_play_store(
track: "production",
@@ -33,7 +33,7 @@ platform :android do
)
# Build universal APK for Amazon Appstore (doesn't accept AABs, excludes x86 via env var)
sh("cd #{ENV['PWD']}/.. && AMAZON=1 flutter build apk --release --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --obfuscate --split-debug-info=#{debug_info_dir}/apk")
sh("cd #{ENV['PWD']}/.. && AMAZON=1 flutter build apk --release --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=amazon --obfuscate --split-debug-info=#{debug_info_dir}/apk")
upload_to_amazon_appstore(
apk_paths: [
+7
View File
@@ -3,6 +3,9 @@ PODS:
- Flutter
- connectivity_plus (0.0.1):
- Flutter
- cupertino_http (0.0.1):
- Flutter
- FlutterMacOS
- device_info_plus (0.0.1):
- Flutter
- file_picker (0.0.1):
@@ -63,6 +66,7 @@ PODS:
DEPENDENCIES:
- background_downloader (from `.symlinks/plugins/background_downloader/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- cupertino_http (from `.symlinks/plugins/cupertino_http/darwin`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- file_picker (from `.symlinks/plugins/file_picker/ios`)
- Flutter (from `Flutter`)
@@ -88,6 +92,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/background_downloader/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
cupertino_http:
:path: ".symlinks/plugins/cupertino_http/darwin"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
file_picker:
@@ -120,6 +126,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
background_downloader: 50e91d979067b82081aba359d7d916b3ba5fadad
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
file_picker: 8fc6fe5e42585a217d44d22f79ec046cb8d81140
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
+1 -1
View File
@@ -9,7 +9,7 @@ platform :ios do
git_commit = `git rev-parse --short HEAD`.strip
# Build the Flutter app
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit}")
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=app-store")
# Upload to App Store
upload_to_app_store(
+2 -3
View File
@@ -152,9 +152,8 @@ mixin FocusableChipStateMixin<T extends StatefulWidget> on State<T> {
_isSelectKeyDown = false;
return KeyEventResult.handled;
}
} else if (event.isActionable && callbacks.onSelect != null) {
callbacks.onSelect!();
return KeyEventResult.handled;
} else if (callbacks.onSelect != null) {
return handleOneShotSelect(event, callbacks.onSelect!);
}
}
+1 -1
View File
@@ -43,7 +43,7 @@ class _FocusableSliderState extends State<FocusableSlider> {
return (widget.max - widget.min) * 0.05;
}
KeyEventResult _handleKeyEvent(FocusNode node, KeyEvent event) {
KeyEventResult _handleKeyEvent(FocusNode _, KeyEvent event) {
final key = event.logicalKey;
if (key.isLeftKey || key.isRightKey) {
if (event.isActionable && widget.onChanged != null) {
+2 -6
View File
@@ -366,12 +366,8 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
_isSelectKeyDown = false;
return KeyEventResult.handled;
}
} else {
// Simple select handling without long-press
if (event is KeyDownEvent) {
widget.onSelect?.call();
return KeyEventResult.handled;
}
} else if (widget.onSelect != null) {
return handleOneShotSelect(event, widget.onSelect!);
}
}
+26 -5
View File
@@ -82,11 +82,28 @@ KeyEventResult handleBackKeyNavigation<T>(BuildContext context, KeyEvent event,
if (!Navigator.canPop(context)) {
return KeyEventResult.ignored;
}
// Don't handle back when a dialog/overlay is on top of our route —
// the overlay handles its own dismissal via DismissAction.
if (ModalRoute.of(context)?.isCurrent != true) {
return KeyEventResult.ignored;
}
// Handle on KeyUpEvent to prevent double-pop when returning from child screens
// (KeyDownEvent can be received by both the popping screen and the returned-to screen)
return handleBackKeyAction(event, () => Navigator.pop(context, result));
}
/// Handles a select key as a one-shot button activation.
///
/// Fires [onActivate] on the initial [KeyDownEvent] only.
/// Consumes all select key events (down, repeat, up) to prevent
/// unhandled events from reaching platform-level handling.
/// Returns [KeyEventResult.ignored] for non-select keys.
KeyEventResult handleOneShotSelect(KeyEvent event, VoidCallback onActivate) {
if (!event.logicalKey.isSelectKey) return KeyEventResult.ignored;
if (event is KeyDownEvent) onActivate();
return KeyEventResult.handled;
}
/// Creates a [FocusOnKeyEventCallback] that dispatches d-pad / arrow keys to
/// the provided directional callbacks.
///
@@ -94,7 +111,8 @@ KeyEventResult handleBackKeyNavigation<T>(BuildContext context, KeyEvent event,
/// (passed through to the framework). Directions mapped to a callback
/// automatically return [KeyEventResult.handled].
///
/// Only [KeyDownEvent] and [KeyRepeatEvent] are handled (via [isActionable]).
/// Directional keys repeat on [KeyRepeatEvent] (via [isActionable]).
/// Select is one-shot: fires on [KeyDownEvent] only, consumes repeat and up.
///
/// ```dart
/// Focus(
@@ -115,6 +133,13 @@ FocusOnKeyEventCallback dpadKeyHandler({
VoidCallback? onSelect,
}) {
return (FocusNode _, KeyEvent event) {
// Select: one-shot activation (no repeat), must run before isActionable
// filter so KeyUpEvent is also consumed.
if (onSelect != null) {
final result = handleOneShotSelect(event, onSelect);
if (result != KeyEventResult.ignored) return result;
}
if (!event.isActionable) return KeyEventResult.ignored;
final key = event.logicalKey;
@@ -134,10 +159,6 @@ FocusOnKeyEventCallback dpadKeyHandler({
onRight();
return KeyEventResult.handled;
}
if (key.isSelectKey && onSelect != null) {
onSelect();
return KeyEventResult.handled;
}
return KeyEventResult.ignored;
};
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Vis profilvalg hver gang appen åbnes",
"confirmExitOnBack": "Bekræft før lukning",
"confirmExitOnBackDescription": "Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen",
"autoHidePerformanceOverlay": "Skjul ydelses-overlay automatisk",
"autoHidePerformanceOverlayDescription": "Fade ydelses-overlayet med afspilningskontrollerne",
"showNavBarLabels": "Vis navigationsbarlabels",
"showNavBarLabelsDescription": "Vis tekstlabels under navigationsbarikoner",
"liveTvDefaultFavorites": "Standard til favoritkanaler",
@@ -285,6 +287,8 @@
"colorPrimaries": "Farveprimærer",
"chromaSubsampling": "Chroma-subsampling",
"channels": "Kanaler",
"subtitles": "Undertekster",
"overallBitrate": "Samlet bitrate",
"path": "Sti",
"size": "Størrelse",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Kantfarve",
"backgroundOpacity": "Baggrundsgennemsigtighed",
"backgroundColor": "Baggrundsfarve",
"position": "Position"
"position": "Position",
"assOverride": "ASS-tilsidesættelse"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Pause alle",
"resumeAll": "Genoptag alle",
"deleteAll": "Slet alle",
"selectVersion": "Vælg version"
"selectVersion": "Vælg version",
"allEpisodes": "Alle episoder",
"unwatchedOnly": "Kun usete",
"nextNUnwatched": "Næste ${count} usete",
"customAmount": "Angiv antal...",
"howManyEpisodes": "Hvor mange episoder?",
"itemsQueued": "${count} elementer sat i kø til download"
},
"shaders": {
"title": "Shadere",
@@ -878,8 +889,12 @@
"summary": "Resumé",
"poster": "Plakat",
"background": "Baggrund",
"logo": "Logo",
"squareArt": "Kvadratisk billede",
"selectPoster": "Vælg plakat",
"selectBackground": "Vælg baggrund",
"selectLogo": "Vælg logo",
"selectSquareArt": "Vælg kvadratisk billede",
"fromUrl": "Fra URL",
"uploadFile": "Upload fil",
"enterImageUrl": "Indtast billed-URL",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Profilauswahl bei jedem Öffnen der App anzeigen",
"confirmExitOnBack": "Vor dem Beenden bestätigen",
"confirmExitOnBackDescription": "Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird",
"autoHidePerformanceOverlay": "Leistungsoverlay automatisch ausblenden",
"autoHidePerformanceOverlayDescription": "Leistungsoverlay mit den Wiedergabesteuerungen ein-/ausblenden",
"showNavBarLabels": "Navigationsleisten-Beschriftungen anzeigen",
"showNavBarLabelsDescription": "Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen",
"liveTvDefaultFavorites": "Standardmäßig Favoritenkanäle",
@@ -285,6 +287,8 @@
"colorPrimaries": "Primärfarben",
"chromaSubsampling": "Chroma-Subsampling",
"channels": "Kanäle",
"subtitles": "Untertitel",
"overallBitrate": "Gesamt-Bitrate",
"path": "Pfad",
"size": "Größe",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Rahmenfarbe",
"backgroundOpacity": "Hintergrunddeckkraft",
"backgroundColor": "Hintergrundfarbe",
"position": "Position"
"position": "Position",
"assOverride": "ASS-Überschreibung"
},
"mpvConfig": {
"title": "mpv-Konfiguration",
@@ -630,7 +635,13 @@
"pauseAll": "Alle pausieren",
"resumeAll": "Alle fortsetzen",
"deleteAll": "Alle löschen",
"selectVersion": "Version auswählen"
"selectVersion": "Version auswählen",
"allEpisodes": "Alle Episoden",
"unwatchedOnly": "Nur ungesehene",
"nextNUnwatched": "Nächste ${count} ungesehene",
"customAmount": "Eigene Anzahl...",
"howManyEpisodes": "Wie viele Episoden?",
"itemsQueued": "${count} Elemente zum Download eingereiht"
},
"playlists": {
"title": "Wiedergabelisten",
@@ -878,8 +889,12 @@
"summary": "Zusammenfassung",
"poster": "Poster",
"background": "Hintergrund",
"logo": "Logo",
"squareArt": "Quadratisches Bild",
"selectPoster": "Poster auswählen",
"selectBackground": "Hintergrund auswählen",
"selectLogo": "Logo auswählen",
"selectSquareArt": "Quadratisches Bild auswählen",
"fromUrl": "Von URL",
"uploadFile": "Datei hochladen",
"enterImageUrl": "Bild-URL eingeben",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Show profile selection every time the app is opened",
"confirmExitOnBack": "Confirm before exiting",
"confirmExitOnBackDescription": "Show a confirmation dialog when pressing back to exit the app",
"autoHidePerformanceOverlay": "Auto-Hide Performance Overlay",
"autoHidePerformanceOverlayDescription": "Fade the performance overlay with the playback controls",
"showNavBarLabels": "Show Navigation Bar Labels",
"showNavBarLabelsDescription": "Display text labels under navigation bar icons",
"liveTvDefaultFavorites": "Default to Favorite Channels",
@@ -285,6 +287,8 @@
"colorPrimaries": "Color Primaries",
"chromaSubsampling": "Chroma Subsampling",
"channels": "Channels",
"subtitles": "Subtitles",
"overallBitrate": "Overall Bitrate",
"path": "Path",
"size": "Size",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Border Color",
"backgroundOpacity": "Background Opacity",
"backgroundColor": "Background Color",
"position": "Position"
"position": "Position",
"assOverride": "ASS Override"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Pause all",
"resumeAll": "Resume all",
"deleteAll": "Delete all",
"selectVersion": "Select Version"
"selectVersion": "Select Version",
"allEpisodes": "All episodes",
"unwatchedOnly": "Unwatched only",
"nextNUnwatched": "Next ${count} unwatched",
"customAmount": "Custom amount...",
"howManyEpisodes": "How many episodes?",
"itemsQueued": "${count} items queued for download"
},
"shaders": {
"title": "Shaders",
@@ -878,8 +889,12 @@
"summary": "Summary",
"poster": "Poster",
"background": "Background",
"logo": "Logo",
"squareArt": "Square Art",
"selectPoster": "Select Poster",
"selectBackground": "Select Background",
"selectLogo": "Select Logo",
"selectSquareArt": "Select Square Art",
"fromUrl": "From URL",
"uploadFile": "Upload File",
"enterImageUrl": "Enter image URL",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Mostrar selección de perfil cada vez que se abre la aplicación",
"confirmExitOnBack": "Confirmar antes de salir",
"confirmExitOnBackDescription": "Mostrar un diálogo de confirmación al presionar atrás para salir de la app",
"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",
"showNavBarLabelsDescription": "Mostrar etiquetas de texto bajo los iconos de la barra de navegación",
"liveTvDefaultFavorites": "Canales favoritos por defecto",
@@ -285,6 +287,8 @@
"colorPrimaries": "Primarias de color",
"chromaSubsampling": "Submuestreo de croma",
"channels": "Canales",
"subtitles": "Subtítulos",
"overallBitrate": "Bitrate total",
"path": "Ruta",
"size": "Tamaño",
"container": "Contenedor",
@@ -448,7 +452,8 @@
"borderColor": "Color de Borde",
"backgroundOpacity": "Opacidad de Fondo",
"backgroundColor": "Color de Fondo",
"position": "Posición"
"position": "Posición",
"assOverride": "Sobreescritura ASS"
},
"mpvConfig": {
"title": "Configuración de mpv",
@@ -733,7 +738,13 @@
"pauseAll": "Pausar todo",
"resumeAll": "Reanudar todo",
"deleteAll": "Eliminar todo",
"selectVersion": "Seleccionar versión"
"selectVersion": "Seleccionar versión",
"allEpisodes": "Todos los episodios",
"unwatchedOnly": "Solo no vistos",
"nextNUnwatched": "Próximos ${count} no vistos",
"customAmount": "Cantidad personalizada...",
"howManyEpisodes": "¿Cuántos episodios?",
"itemsQueued": "${count} elementos en cola de descarga"
},
"shaders": {
"title": "Shaders",
@@ -878,8 +889,12 @@
"summary": "Resumen",
"poster": "Póster",
"background": "Fondo",
"logo": "Logo",
"squareArt": "Imagen cuadrada",
"selectPoster": "Seleccionar póster",
"selectBackground": "Seleccionar fondo",
"selectLogo": "Seleccionar logo",
"selectSquareArt": "Seleccionar imagen cuadrada",
"fromUrl": "Desde URL",
"uploadFile": "Subir archivo",
"enterImageUrl": "Introducir URL de imagen",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Afficher la sélection de profil à chaque ouverture de l'application",
"confirmExitOnBack": "Confirmer avant de quitter",
"confirmExitOnBackDescription": "Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter",
"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",
"showNavBarLabelsDescription": "Afficher les libellés sous les icônes de la barre de navigation",
"liveTvDefaultFavorites": "Chaînes favorites par défaut",
@@ -285,6 +287,8 @@
"colorPrimaries": "Couleurs primaires",
"chromaSubsampling": "Sous-échantillonnage chromatique",
"channels": "Canaux",
"subtitles": "Sous-titres",
"overallBitrate": "Débit global",
"path": "Chemin",
"size": "Taille",
"container": "Conteneur",
@@ -448,7 +452,8 @@
"borderColor": "Couleur de la bordure",
"backgroundOpacity": "Opacité d'arrière-plan",
"backgroundColor": "Couleur d'arrière-plan",
"position": "Position"
"position": "Position",
"assOverride": "Remplacement ASS"
},
"mpvConfig": {
"title": "Configuration mpv",
@@ -733,7 +738,13 @@
"pauseAll": "Tout mettre en pause",
"resumeAll": "Tout reprendre",
"deleteAll": "Tout supprimer",
"selectVersion": "Sélectionner la version"
"selectVersion": "Sélectionner la version",
"allEpisodes": "Tous les épisodes",
"unwatchedOnly": "Non vus uniquement",
"nextNUnwatched": "${count} prochains non vus",
"customAmount": "Quantité personnalisée...",
"howManyEpisodes": "Combien d'épisodes ?",
"itemsQueued": "${count} éléments mis en file d'attente"
},
"shaders": {
"title": "Shaders",
@@ -878,8 +889,12 @@
"summary": "Résumé",
"poster": "Affiche",
"background": "Arrière-plan",
"logo": "Logo",
"squareArt": "Image carrée",
"selectPoster": "Sélectionner l'affiche",
"selectBackground": "Sélectionner l'arrière-plan",
"selectLogo": "Sélectionner le logo",
"selectSquareArt": "Sélectionner l'image carrée",
"fromUrl": "Depuis une URL",
"uploadFile": "Importer un fichier",
"enterImageUrl": "Entrer l'URL de l'image",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Mostra la selezione del profilo ogni volta che l'app viene aperta",
"confirmExitOnBack": "Conferma prima di uscire",
"confirmExitOnBackDescription": "Mostra una finestra di conferma quando si preme indietro per uscire dall'app",
"autoHidePerformanceOverlay": "Nascondi automaticamente overlay prestazioni",
"autoHidePerformanceOverlayDescription": "Dissolvi l'overlay prestazioni con i controlli di riproduzione",
"showNavBarLabels": "Mostra etichette barra di navigazione",
"showNavBarLabelsDescription": "Mostra le etichette sotto le icone della barra di navigazione",
"liveTvDefaultFavorites": "Canali preferiti predefiniti",
@@ -285,6 +287,8 @@
"colorPrimaries": "Colori primari",
"chromaSubsampling": "Sottocampionamento cromatico",
"channels": "Canali",
"subtitles": "Sottotitoli",
"overallBitrate": "Bitrate complessivo",
"path": "Percorso",
"size": "Dimensione",
"container": "Contenitore",
@@ -448,7 +452,8 @@
"borderColor": "Colore bordo",
"backgroundOpacity": "Opacità sfondo",
"backgroundColor": "Colore sfondo",
"position": "Posizione"
"position": "Posizione",
"assOverride": "Sovrascrittura ASS"
},
"mpvConfig": {
"title": "Configurazione mpv",
@@ -630,7 +635,13 @@
"pauseAll": "Metti tutto in pausa",
"resumeAll": "Riprendi tutto",
"deleteAll": "Elimina tutto",
"selectVersion": "Seleziona versione"
"selectVersion": "Seleziona versione",
"allEpisodes": "Tutti gli episodi",
"unwatchedOnly": "Solo non visti",
"nextNUnwatched": "Prossimi ${count} non visti",
"customAmount": "Quantità personalizzata...",
"howManyEpisodes": "Quanti episodi?",
"itemsQueued": "${count} elementi in coda per il download"
},
"playlists": {
"title": "Playlist",
@@ -878,8 +889,12 @@
"summary": "Trama",
"poster": "Poster",
"background": "Sfondo",
"logo": "Logo",
"squareArt": "Immagine quadrata",
"selectPoster": "Seleziona poster",
"selectBackground": "Seleziona sfondo",
"selectLogo": "Seleziona logo",
"selectSquareArt": "Seleziona immagine quadrata",
"fromUrl": "Da URL",
"uploadFile": "Carica file",
"enterImageUrl": "Inserisci URL immagine",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "アプリを開くたびにプロフィール選択を表示",
"confirmExitOnBack": "終了前に確認",
"confirmExitOnBackDescription": "戻るボタンでアプリを終了する際に確認ダイアログを表示",
"autoHidePerformanceOverlay": "パフォーマンスオーバーレイを自動非表示",
"autoHidePerformanceOverlayDescription": "再生コントロールと一緒にパフォーマンスオーバーレイをフェードする",
"showNavBarLabels": "ナビゲーションバーラベルを表示",
"showNavBarLabelsDescription": "ナビゲーションバーアイコンの下にテキストラベルを表示",
"liveTvDefaultFavorites": "お気に入りチャンネルをデフォルトに",
@@ -285,6 +287,8 @@
"colorPrimaries": "色原色",
"chromaSubsampling": "クロマサブサンプリング",
"channels": "チャンネル",
"subtitles": "字幕",
"overallBitrate": "全体ビットレート",
"path": "パス",
"size": "サイズ",
"container": "コンテナ",
@@ -448,7 +452,8 @@
"borderColor": "枠線の色",
"backgroundOpacity": "背景の不透明度",
"backgroundColor": "背景色",
"position": "位置"
"position": "位置",
"assOverride": "ASSオーバーライド"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "すべて一時停止",
"resumeAll": "すべて再開",
"deleteAll": "すべて削除",
"selectVersion": "バージョンを選択"
"selectVersion": "バージョンを選択",
"allEpisodes": "すべてのエピソード",
"unwatchedOnly": "未視聴のみ",
"nextNUnwatched": "次の${count}件の未視聴",
"customAmount": "数を指定...",
"howManyEpisodes": "何エピソード?",
"itemsQueued": "${count}件をダウンロードキューに追加"
},
"shaders": {
"title": "シェーダー",
@@ -878,8 +889,12 @@
"summary": "あらすじ",
"poster": "ポスター",
"background": "背景",
"logo": "ロゴ",
"squareArt": "正方形アート",
"selectPoster": "ポスターを選択",
"selectBackground": "背景を選択",
"selectLogo": "ロゴを選択",
"selectSquareArt": "正方形アートを選択",
"fromUrl": "URLから",
"uploadFile": "ファイルをアップロード",
"enterImageUrl": "画像URLを入力",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "앱을 열 때마다 프로필 선택 화면을 표시합니다",
"confirmExitOnBack": "종료 전 확인",
"confirmExitOnBackDescription": "뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다",
"autoHidePerformanceOverlay": "성능 오버레이 자동 숨기기",
"autoHidePerformanceOverlayDescription": "재생 컨트롤과 함께 성능 오버레이를 페이드 처리",
"showNavBarLabels": "내비게이션 바 라벨 표시",
"showNavBarLabelsDescription": "내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다",
"liveTvDefaultFavorites": "즐겨찾기 채널 기본 설정",
@@ -285,6 +287,8 @@
"colorPrimaries": "색상 원색",
"chromaSubsampling": "채도 서브샘플링",
"channels": "채널",
"subtitles": "자막",
"overallBitrate": "전체 비트레이트",
"path": "경로",
"size": "크기",
"container": "컨테이너",
@@ -448,7 +452,8 @@
"borderColor": "테두리 색상",
"backgroundOpacity": "배경 불투명도",
"backgroundColor": "배경색",
"position": "위치"
"position": "위치",
"assOverride": "ASS 오버라이드"
},
"mpvConfig": {
"title": "mpv 설정",
@@ -733,7 +738,13 @@
"pauseAll": "모두 일시정지",
"resumeAll": "모두 재개",
"deleteAll": "모두 삭제",
"selectVersion": "버전 선택"
"selectVersion": "버전 선택",
"allEpisodes": "모든 에피소드",
"unwatchedOnly": "시청하지 않은 것만",
"nextNUnwatched": "다음 ${count}개 미시청",
"customAmount": "직접 입력...",
"howManyEpisodes": "몇 개의 에피소드?",
"itemsQueued": "${count}개 항목이 다운로드 대기열에 추가됨"
},
"shaders": {
"title": "셰이더",
@@ -878,8 +889,12 @@
"summary": "줄거리",
"poster": "포스터",
"background": "배경",
"logo": "로고",
"squareArt": "정사각형 아트",
"selectPoster": "포스터 선택",
"selectBackground": "배경 선택",
"selectLogo": "로고 선택",
"selectSquareArt": "정사각형 아트 선택",
"fromUrl": "URL에서",
"uploadFile": "파일 업로드",
"enterImageUrl": "이미지 URL 입력",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Vis profilvalg hver gang appen åpnes",
"confirmExitOnBack": "Bekreft før avslutning",
"confirmExitOnBackDescription": "Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen",
"autoHidePerformanceOverlay": "Skjul ytelsesoverlegg automatisk",
"autoHidePerformanceOverlayDescription": "Fade ytelsesoverlegget med avspillingskontrollene",
"showNavBarLabels": "Vis navigasjonsfeltlabeler",
"showNavBarLabelsDescription": "Vis tekstlabeler under navigasjonsfeltikoner",
"liveTvDefaultFavorites": "Standard til favorittkanaler",
@@ -285,6 +287,8 @@
"colorPrimaries": "Fargeprimærer",
"chromaSubsampling": "Krominansnedsampling",
"channels": "Kanaler",
"subtitles": "Undertekster",
"overallBitrate": "Total bitrate",
"path": "Sti",
"size": "Størrelse",
"container": "Beholder",
@@ -448,7 +452,8 @@
"borderColor": "Kantfarge",
"backgroundOpacity": "Bakgrunnsopasitet",
"backgroundColor": "Bakgrunnsfarge",
"position": "Posisjon"
"position": "Posisjon",
"assOverride": "ASS-overstyring"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Pause alle",
"resumeAll": "Gjenoppta alle",
"deleteAll": "Slett alle",
"selectVersion": "Velg versjon"
"selectVersion": "Velg versjon",
"allEpisodes": "Alle episoder",
"unwatchedOnly": "Kun usette",
"nextNUnwatched": "Neste ${count} usette",
"customAmount": "Egendefinert antall...",
"howManyEpisodes": "Hvor mange episoder?",
"itemsQueued": "${count} elementer i nedlastingskø"
},
"shaders": {
"title": "Shadere",
@@ -878,8 +889,12 @@
"summary": "Sammendrag",
"poster": "Plakat",
"background": "Bakgrunn",
"logo": "Logo",
"squareArt": "Kvadratisk bilde",
"selectPoster": "Velg plakat",
"selectBackground": "Velg bakgrunn",
"selectLogo": "Velg logo",
"selectSquareArt": "Velg kvadratisk bilde",
"fromUrl": "Fra URL",
"uploadFile": "Last opp fil",
"enterImageUrl": "Skriv inn bilde-URL",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Toon profielselectie telkens wanneer de app wordt geopend",
"confirmExitOnBack": "Bevestigen voor afsluiten",
"confirmExitOnBackDescription": "Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten",
"autoHidePerformanceOverlay": "Prestatie-overlay automatisch verbergen",
"autoHidePerformanceOverlayDescription": "Laat de prestatie-overlay meevervagen met de afspeelknoppen",
"showNavBarLabels": "Navigatiebalk labels tonen",
"showNavBarLabelsDescription": "Tekstlabels onder de pictogrammen van de navigatiebalk weergeven",
"liveTvDefaultFavorites": "Standaard favoriete zenders",
@@ -285,6 +287,8 @@
"colorPrimaries": "Kleurprimaires",
"chromaSubsampling": "Chroma subsampling",
"channels": "Kanalen",
"subtitles": "Ondertitels",
"overallBitrate": "Totale bitrate",
"path": "Pad",
"size": "Grootte",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Randkleur",
"backgroundOpacity": "Achtergrond transparantie",
"backgroundColor": "Achtergrondkleur",
"position": "Positie"
"position": "Positie",
"assOverride": "ASS-overschrijving"
},
"mpvConfig": {
"title": "mpv-configuratie",
@@ -630,7 +635,13 @@
"pauseAll": "Alles pauzeren",
"resumeAll": "Alles hervatten",
"deleteAll": "Alles verwijderen",
"selectVersion": "Versie selecteren"
"selectVersion": "Versie selecteren",
"allEpisodes": "Alle afleveringen",
"unwatchedOnly": "Alleen onbekeken",
"nextNUnwatched": "Volgende ${count} onbekeken",
"customAmount": "Aangepast aantal...",
"howManyEpisodes": "Hoeveel afleveringen?",
"itemsQueued": "${count} items in downloadwachtrij"
},
"playlists": {
"title": "Afspeellijsten",
@@ -878,8 +889,12 @@
"summary": "Samenvatting",
"poster": "Poster",
"background": "Achtergrond",
"logo": "Logo",
"squareArt": "Vierkante afbeelding",
"selectPoster": "Poster selecteren",
"selectBackground": "Achtergrond selecteren",
"selectLogo": "Logo selecteren",
"selectSquareArt": "Vierkante afbeelding selecteren",
"fromUrl": "Vanaf URL",
"uploadFile": "Bestand uploaden",
"enterImageUrl": "Voer afbeeldings-URL in",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Pokaż wybór profilu za każdym razem, gdy aplikacja jest otwierana",
"confirmExitOnBack": "Potwierdź przed wyjściem",
"confirmExitOnBackDescription": "Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji",
"autoHidePerformanceOverlay": "Automatycznie ukrywaj nakładkę wydajności",
"autoHidePerformanceOverlayDescription": "Wygaszaj nakładkę wydajności wraz z kontrolkami odtwarzania",
"showNavBarLabels": "Pokaż etykiety paska nawigacji",
"showNavBarLabelsDescription": "Wyświetl tekstowe etykiety pod ikonami paska nawigacji",
"liveTvDefaultFavorites": "Domyślnie ulubione kanały",
@@ -285,6 +287,8 @@
"colorPrimaries": "Kolory podstawowe",
"chromaSubsampling": "Subsampling chrominancji",
"channels": "Kanały",
"subtitles": "Napisy",
"overallBitrate": "Całkowity bitrate",
"path": "Ścieżka",
"size": "Rozmiar",
"container": "Kontener",
@@ -448,7 +452,8 @@
"borderColor": "Kolor obramowania",
"backgroundOpacity": "Przezroczystość tła",
"backgroundColor": "Kolor tła",
"position": "Pozycja"
"position": "Pozycja",
"assOverride": "Nadpisywanie ASS"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Wstrzymaj wszystko",
"resumeAll": "Wznów wszystko",
"deleteAll": "Usuń wszystko",
"selectVersion": "Wybierz wersję"
"selectVersion": "Wybierz wersję",
"allEpisodes": "Wszystkie odcinki",
"unwatchedOnly": "Tylko nieobejrzane",
"nextNUnwatched": "Następne ${count} nieobejrzanych",
"customAmount": "Własna ilość...",
"howManyEpisodes": "Ile odcinków?",
"itemsQueued": "${count} elementów dodanych do kolejki pobierania"
},
"shaders": {
"title": "Shadery",
@@ -878,8 +889,12 @@
"summary": "Opis",
"poster": "Plakat",
"background": "Tło",
"logo": "Logo",
"squareArt": "Kwadratowy obraz",
"selectPoster": "Wybierz plakat",
"selectBackground": "Wybierz tło",
"selectLogo": "Wybierz logo",
"selectSquareArt": "Wybierz kwadratowy obraz",
"fromUrl": "Z URL",
"uploadFile": "Prześlij plik",
"enterImageUrl": "Wprowadź URL obrazu",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Mostrar seleção de perfil toda vez que o app for aberto",
"confirmExitOnBack": "Confirmar antes de sair",
"confirmExitOnBackDescription": "Mostrar diálogo de confirmação ao pressionar voltar para sair do app",
"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",
"showNavBarLabelsDescription": "Exibir rótulos de texto sob os ícones da barra de navegação",
"liveTvDefaultFavorites": "Canais favoritos por padrão",
@@ -285,6 +287,8 @@
"colorPrimaries": "Primárias de Cor",
"chromaSubsampling": "Subamostragem de Croma",
"channels": "Canais",
"subtitles": "Legendas",
"overallBitrate": "Taxa de bits total",
"path": "Caminho",
"size": "Tamanho",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Cor da Borda",
"backgroundOpacity": "Opacidade do Fundo",
"backgroundColor": "Cor de Fundo",
"position": "Posição"
"position": "Posição",
"assOverride": "Substituição ASS"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Pausar todos",
"resumeAll": "Retomar todos",
"deleteAll": "Excluir todos",
"selectVersion": "Selecionar versão"
"selectVersion": "Selecionar versão",
"allEpisodes": "Todos os episódios",
"unwatchedOnly": "Apenas não assistidos",
"nextNUnwatched": "Próximos ${count} não assistidos",
"customAmount": "Quantidade personalizada...",
"howManyEpisodes": "Quantos episódios?",
"itemsQueued": "${count} itens na fila de download"
},
"shaders": {
"title": "Shaders",
@@ -878,8 +889,12 @@
"summary": "Sinopse",
"poster": "Poster",
"background": "Plano de Fundo",
"logo": "Logo",
"squareArt": "Imagem Quadrada",
"selectPoster": "Selecionar Poster",
"selectBackground": "Selecionar Plano de Fundo",
"selectLogo": "Selecionar Logo",
"selectSquareArt": "Selecionar Imagem Quadrada",
"fromUrl": "Da URL",
"uploadFile": "Enviar Arquivo",
"enterImageUrl": "Insira a URL da imagem",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Показывать выбор профиля при каждом открытии приложения",
"confirmExitOnBack": "Подтверждать выход",
"confirmExitOnBackDescription": "Показывать диалог подтверждения при нажатии «назад» для выхода из приложения",
"autoHidePerformanceOverlay": "Автоскрытие оверлея производительности",
"autoHidePerformanceOverlayDescription": "Скрывать оверлей производительности вместе с элементами управления воспроизведением",
"showNavBarLabels": "Показывать подписи панели навигации",
"showNavBarLabelsDescription": "Отображать текстовые подписи под иконками панели навигации",
"liveTvDefaultFavorites": "Избранные каналы по умолчанию",
@@ -285,6 +287,8 @@
"colorPrimaries": "Цветовые первичные",
"chromaSubsampling": "Субдискретизация цветности",
"channels": "Каналы",
"subtitles": "Субтитры",
"overallBitrate": "Общий битрейт",
"path": "Путь",
"size": "Размер",
"container": "Контейнер",
@@ -448,7 +452,8 @@
"borderColor": "Цвет обводки",
"backgroundOpacity": "Прозрачность фона",
"backgroundColor": "Цвет фона",
"position": "Позиция"
"position": "Позиция",
"assOverride": "Переопределение ASS"
},
"mpvConfig": {
"title": "mpv.conf",
@@ -733,7 +738,13 @@
"pauseAll": "Приостановить все",
"resumeAll": "Возобновить все",
"deleteAll": "Удалить все",
"selectVersion": "Выбрать версию"
"selectVersion": "Выбрать версию",
"allEpisodes": "Все эпизоды",
"unwatchedOnly": "Только непросмотренные",
"nextNUnwatched": "Следующие ${count} непросмотренных",
"customAmount": "Указать количество...",
"howManyEpisodes": "Сколько эпизодов?",
"itemsQueued": "${count} элементов добавлено в очередь загрузки"
},
"shaders": {
"title": "Шейдеры",
@@ -878,8 +889,12 @@
"summary": "Описание",
"poster": "Постер",
"background": "Фон",
"logo": "Логотип",
"squareArt": "Квадратное изображение",
"selectPoster": "Выбрать постер",
"selectBackground": "Выбрать фон",
"selectLogo": "Выбрать логотип",
"selectSquareArt": "Выбрать квадратное изображение",
"fromUrl": "По URL",
"uploadFile": "Загрузить файл",
"enterImageUrl": "Введите URL изображения",
+2 -2
View File
@@ -4,9 +4,9 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 15
/// Strings: 12750 (850 per locale)
/// Strings: 12975 (865 per locale)
///
/// Built on 2026-04-06 at 14:44 UTC
/// Built on 2026-04-11 at 05:59 UTC
// coverage:ignore-file
// ignore_for_file: type=lint, unused_import
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsDa implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Vis profilvalg hver gang appen åbnes';
@override String get confirmExitOnBack => 'Bekræft før lukning';
@override String get confirmExitOnBackDescription => 'Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen';
@override String get autoHidePerformanceOverlay => 'Skjul ydelses-overlay automatisk';
@override String get autoHidePerformanceOverlayDescription => 'Fade ydelses-overlayet med afspilningskontrollerne';
@override String get showNavBarLabels => 'Vis navigationsbarlabels';
@override String get showNavBarLabelsDescription => 'Vis tekstlabels under navigationsbarikoner';
@override String get liveTvDefaultFavorites => 'Standard til favoritkanaler';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoDa implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Farveprimærer';
@override String get chromaSubsampling => 'Chroma-subsampling';
@override String get channels => 'Kanaler';
@override String get subtitles => 'Undertekster';
@override String get overallBitrate => 'Samlet bitrate';
@override String get path => 'Sti';
@override String get size => 'Størrelse';
@override String get container => 'Container';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingDa implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Baggrundsgennemsigtighed';
@override String get backgroundColor => 'Baggrundsfarve';
@override String get position => 'Position';
@override String get assOverride => 'ASS-tilsidesættelse';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsDa implements TranslationsDownloadsEn {
@override String get resumeAll => 'Genoptag alle';
@override String get deleteAll => 'Slet alle';
@override String get selectVersion => 'Vælg version';
@override String get allEpisodes => 'Alle episoder';
@override String get unwatchedOnly => 'Kun usete';
@override String nextNUnwatched({required Object count}) => 'Næste ${count} usete';
@override String get customAmount => 'Angiv antal...';
@override String get howManyEpisodes => 'Hvor mange episoder?';
@override String itemsQueued({required Object count}) => '${count} elementer sat i kø til download';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditDa implements TranslationsMetadataEditEn {
@override String get summary => 'Resumé';
@override String get poster => 'Plakat';
@override String get background => 'Baggrund';
@override String get logo => 'Logo';
@override String get squareArt => 'Kvadratisk billede';
@override String get selectPoster => 'Vælg plakat';
@override String get selectBackground => 'Vælg baggrund';
@override String get selectLogo => 'Vælg logo';
@override String get selectSquareArt => 'Vælg kvadratisk billede';
@override String get fromUrl => 'Fra URL';
@override String get uploadFile => 'Upload fil';
@override String get enterImageUrl => 'Indtast billed-URL';
@@ -1560,6 +1575,8 @@ extension on TranslationsDa {
'settings.requireProfileSelectionOnOpenDescription' => 'Vis profilvalg hver gang appen åbnes',
'settings.confirmExitOnBack' => 'Bekræft før lukning',
'settings.confirmExitOnBackDescription' => 'Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen',
'settings.autoHidePerformanceOverlay' => 'Skjul ydelses-overlay automatisk',
'settings.autoHidePerformanceOverlayDescription' => 'Fade ydelses-overlayet med afspilningskontrollerne',
'settings.showNavBarLabels' => 'Vis navigationsbarlabels',
'settings.showNavBarLabelsDescription' => 'Vis tekstlabels under navigationsbarikoner',
'settings.liveTvDefaultFavorites' => 'Standard til favoritkanaler',
@@ -1614,6 +1631,8 @@ extension on TranslationsDa {
'fileInfo.colorPrimaries' => 'Farveprimærer',
'fileInfo.chromaSubsampling' => 'Chroma-subsampling',
'fileInfo.channels' => 'Kanaler',
'fileInfo.subtitles' => 'Undertekster',
'fileInfo.overallBitrate' => 'Samlet bitrate',
'fileInfo.path' => 'Sti',
'fileInfo.size' => 'Størrelse',
'fileInfo.container' => 'Container',
@@ -1762,6 +1781,7 @@ extension on TranslationsDa {
'subtitlingStyling.backgroundOpacity' => 'Baggrundsgennemsigtighed',
'subtitlingStyling.backgroundColor' => 'Baggrundsfarve',
'subtitlingStyling.position' => 'Position',
'subtitlingStyling.assOverride' => 'ASS-tilsidesættelse',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Avancerede videoafspillerindstillinger',
'mpvConfig.presets' => 'Forudindstillinger',
@@ -1854,13 +1874,13 @@ extension on TranslationsDa {
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
'about.appDescription' => 'En smuk Plex-klient til Flutter',
'about.viewLicensesDescription' => 'Se licenser for tredjepartsbiblioteker',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Kunne ikke forbinde til nogen servere. Tjek dit netværk og prøv igen.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Ingen servere fundet for ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Kunne ikke indlæse servere: ${error}',
'hubDetail.title' => 'Titel',
'hubDetail.releaseYear' => 'Udgivelsesår',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Tilføjelsesdato',
'hubDetail.rating' => 'Bedømmelse',
'hubDetail.noItemsFound' => 'Ingen elementer fundet',
@@ -2013,6 +2033,12 @@ extension on TranslationsDa {
'downloads.resumeAll' => 'Genoptag alle',
'downloads.deleteAll' => 'Slet alle',
'downloads.selectVersion' => 'Vælg version',
'downloads.allEpisodes' => 'Alle episoder',
'downloads.unwatchedOnly' => 'Kun usete',
'downloads.nextNUnwatched' => ({required Object count}) => 'Næste ${count} usete',
'downloads.customAmount' => 'Angiv antal...',
'downloads.howManyEpisodes' => 'Hvor mange episoder?',
'downloads.itemsQueued' => ({required Object count}) => '${count} elementer sat i kø til download',
'shaders.title' => 'Shadere',
'shaders.noShaderDescription' => 'Ingen videoforbedring',
'shaders.nvscalerDescription' => 'NVIDIA-billedskalering for skarpere video',
@@ -2141,8 +2167,12 @@ extension on TranslationsDa {
'metadataEdit.summary' => 'Resumé',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Baggrund',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kvadratisk billede',
'metadataEdit.selectPoster' => 'Vælg plakat',
'metadataEdit.selectBackground' => 'Vælg baggrund',
'metadataEdit.selectLogo' => 'Vælg logo',
'metadataEdit.selectSquareArt' => 'Vælg kvadratisk billede',
'metadataEdit.fromUrl' => 'Fra URL',
'metadataEdit.uploadFile' => 'Upload fil',
'metadataEdit.enterImageUrl' => 'Indtast billed-URL',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsDe implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Profilauswahl bei jedem Öffnen der App anzeigen';
@override String get confirmExitOnBack => 'Vor dem Beenden bestätigen';
@override String get confirmExitOnBackDescription => 'Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt 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';
@override String get showNavBarLabelsDescription => 'Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen';
@override String get liveTvDefaultFavorites => 'Standardmäßig Favoritenkanäle';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoDe implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Primärfarben';
@override String get chromaSubsampling => 'Chroma-Subsampling';
@override String get channels => 'Kanäle';
@override String get subtitles => 'Untertitel';
@override String get overallBitrate => 'Gesamt-Bitrate';
@override String get path => 'Pfad';
@override String get size => 'Größe';
@override String get container => 'Container';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingDe implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Hintergrunddeckkraft';
@override String get backgroundColor => 'Hintergrundfarbe';
@override String get position => 'Position';
@override String get assOverride => 'ASS-Überschreibung';
}
// Path: mpvConfig
@@ -870,6 +875,12 @@ class _TranslationsDownloadsDe implements TranslationsDownloadsEn {
@override String get resumeAll => 'Alle fortsetzen';
@override String get deleteAll => 'Alle löschen';
@override String get selectVersion => 'Version auswählen';
@override String get allEpisodes => 'Alle Episoden';
@override String get unwatchedOnly => 'Nur ungesehene';
@override String nextNUnwatched({required Object count}) => 'Nächste ${count} ungesehene';
@override String get customAmount => 'Eigene Anzahl...';
@override String get howManyEpisodes => 'Wie viele Episoden?';
@override String itemsQueued({required Object count}) => '${count} Elemente zum Download eingereiht';
}
// Path: playlists
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditDe implements TranslationsMetadataEditEn {
@override String get summary => 'Zusammenfassung';
@override String get poster => 'Poster';
@override String get background => 'Hintergrund';
@override String get logo => 'Logo';
@override String get squareArt => 'Quadratisches Bild';
@override String get selectPoster => 'Poster auswählen';
@override String get selectBackground => 'Hintergrund auswählen';
@override String get selectLogo => 'Logo auswählen';
@override String get selectSquareArt => 'Quadratisches Bild auswählen';
@override String get fromUrl => 'Von URL';
@override String get uploadFile => 'Datei hochladen';
@override String get enterImageUrl => 'Bild-URL eingeben';
@@ -1560,6 +1575,8 @@ extension on TranslationsDe {
'settings.requireProfileSelectionOnOpenDescription' => 'Profilauswahl bei jedem Öffnen der App anzeigen',
'settings.confirmExitOnBack' => 'Vor dem Beenden bestätigen',
'settings.confirmExitOnBackDescription' => 'Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird',
'settings.autoHidePerformanceOverlay' => 'Leistungsoverlay automatisch ausblenden',
'settings.autoHidePerformanceOverlayDescription' => 'Leistungsoverlay mit den Wiedergabesteuerungen ein-/ausblenden',
'settings.showNavBarLabels' => 'Navigationsleisten-Beschriftungen anzeigen',
'settings.showNavBarLabelsDescription' => 'Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen',
'settings.liveTvDefaultFavorites' => 'Standardmäßig Favoritenkanäle',
@@ -1614,6 +1631,8 @@ extension on TranslationsDe {
'fileInfo.colorPrimaries' => 'Primärfarben',
'fileInfo.chromaSubsampling' => 'Chroma-Subsampling',
'fileInfo.channels' => 'Kanäle',
'fileInfo.subtitles' => 'Untertitel',
'fileInfo.overallBitrate' => 'Gesamt-Bitrate',
'fileInfo.path' => 'Pfad',
'fileInfo.size' => 'Größe',
'fileInfo.container' => 'Container',
@@ -1762,6 +1781,7 @@ extension on TranslationsDe {
'subtitlingStyling.backgroundOpacity' => 'Hintergrunddeckkraft',
'subtitlingStyling.backgroundColor' => 'Hintergrundfarbe',
'subtitlingStyling.position' => 'Position',
'subtitlingStyling.assOverride' => 'ASS-Überschreibung',
'mpvConfig.title' => 'mpv-Konfiguration',
'mpvConfig.description' => 'Erweiterte Videoplayer-Einstellungen',
'mpvConfig.presets' => 'Voreinstellungen',
@@ -1854,13 +1874,13 @@ extension on TranslationsDe {
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
'about.appDescription' => 'Ein schöner Plex-Client für Flutter',
'about.viewLicensesDescription' => 'Lizenzen von Drittanbieter-Bibliotheken anzeigen',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Verbindung zu allen Servern fehlgeschlagen. Bitte Netzwerk prüfen und erneut versuchen.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Keine Server gefunden für ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Server konnten nicht geladen werden: ${error}',
'hubDetail.title' => 'Titel',
'hubDetail.releaseYear' => 'Erscheinungsjahr',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Hinzugefügt am',
'hubDetail.rating' => 'Bewertung',
'hubDetail.noItemsFound' => 'Keine Elemente gefunden',
@@ -1916,6 +1936,12 @@ extension on TranslationsDe {
'downloads.resumeAll' => 'Alle fortsetzen',
'downloads.deleteAll' => 'Alle löschen',
'downloads.selectVersion' => 'Version auswählen',
'downloads.allEpisodes' => 'Alle Episoden',
'downloads.unwatchedOnly' => 'Nur ungesehene',
'downloads.nextNUnwatched' => ({required Object count}) => 'Nächste ${count} ungesehene',
'downloads.customAmount' => 'Eigene Anzahl...',
'downloads.howManyEpisodes' => 'Wie viele Episoden?',
'downloads.itemsQueued' => ({required Object count}) => '${count} Elemente zum Download eingereiht',
'playlists.title' => 'Wiedergabelisten',
'playlists.noPlaylists' => 'Keine Wiedergabelisten gefunden',
'playlists.create' => 'Wiedergabeliste erstellen',
@@ -2141,8 +2167,12 @@ extension on TranslationsDe {
'metadataEdit.summary' => 'Zusammenfassung',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Hintergrund',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Quadratisches Bild',
'metadataEdit.selectPoster' => 'Poster auswählen',
'metadataEdit.selectBackground' => 'Hintergrund auswählen',
'metadataEdit.selectLogo' => 'Logo auswählen',
'metadataEdit.selectSquareArt' => 'Quadratisches Bild auswählen',
'metadataEdit.fromUrl' => 'Von URL',
'metadataEdit.uploadFile' => 'Datei hochladen',
'metadataEdit.enterImageUrl' => 'Bild-URL eingeben',
+62 -2
View File
@@ -772,6 +772,12 @@ class TranslationsSettingsEn {
/// en: 'Show a confirmation dialog when pressing back to exit the app'
String get confirmExitOnBackDescription => 'Show a confirmation dialog when pressing back to exit the app';
/// en: 'Auto-Hide Performance Overlay'
String get autoHidePerformanceOverlay => 'Auto-Hide Performance Overlay';
/// en: 'Fade the performance overlay with the playback controls'
String get autoHidePerformanceOverlayDescription => 'Fade the performance overlay with the playback controls';
/// en: 'Show Navigation Bar Labels'
String get showNavBarLabels => 'Show Navigation Bar Labels';
@@ -906,6 +912,12 @@ class TranslationsFileInfoEn {
/// en: 'Channels'
String get channels => 'Channels';
/// en: 'Subtitles'
String get subtitles => 'Subtitles';
/// en: 'Overall Bitrate'
String get overallBitrate => 'Overall Bitrate';
/// en: 'Path'
String get path => 'Path';
@@ -1393,6 +1405,9 @@ class TranslationsSubtitlingStylingEn {
/// en: 'Position'
String get position => 'Position';
/// en: 'ASS Override'
String get assOverride => 'ASS Override';
}
// Path: mpvConfig
@@ -2254,6 +2269,24 @@ class TranslationsDownloadsEn {
/// en: 'Select Version'
String get selectVersion => 'Select Version';
/// en: 'All episodes'
String get allEpisodes => 'All episodes';
/// en: 'Unwatched only'
String get unwatchedOnly => 'Unwatched only';
/// en: 'Next ${count} unwatched'
String nextNUnwatched({required Object count}) => 'Next ${count} unwatched';
/// en: 'Custom amount...'
String get customAmount => 'Custom amount...';
/// en: 'How many episodes?'
String get howManyEpisodes => 'How many episodes?';
/// en: '${count} items queued for download'
String itemsQueued({required Object count}) => '${count} items queued for download';
}
// Path: shaders
@@ -2481,12 +2514,24 @@ class TranslationsMetadataEditEn {
/// en: 'Background'
String get background => 'Background';
/// en: 'Logo'
String get logo => 'Logo';
/// en: 'Square Art'
String get squareArt => 'Square Art';
/// en: 'Select Poster'
String get selectPoster => 'Select Poster';
/// en: 'Select Background'
String get selectBackground => 'Select Background';
/// en: 'Select Logo'
String get selectLogo => 'Select Logo';
/// en: 'Select Square Art'
String get selectSquareArt => 'Select Square Art';
/// en: 'From URL'
String get fromUrl => 'From URL';
@@ -3267,6 +3312,8 @@ extension on Translations {
'settings.requireProfileSelectionOnOpenDescription' => 'Show profile selection every time the app is opened',
'settings.confirmExitOnBack' => 'Confirm before exiting',
'settings.confirmExitOnBackDescription' => 'Show a confirmation dialog when pressing back to exit the app',
'settings.autoHidePerformanceOverlay' => 'Auto-Hide Performance Overlay',
'settings.autoHidePerformanceOverlayDescription' => 'Fade the performance overlay with the playback controls',
'settings.showNavBarLabels' => 'Show Navigation Bar Labels',
'settings.showNavBarLabelsDescription' => 'Display text labels under navigation bar icons',
'settings.liveTvDefaultFavorites' => 'Default to Favorite Channels',
@@ -3321,6 +3368,8 @@ extension on Translations {
'fileInfo.colorPrimaries' => 'Color Primaries',
'fileInfo.chromaSubsampling' => 'Chroma Subsampling',
'fileInfo.channels' => 'Channels',
'fileInfo.subtitles' => 'Subtitles',
'fileInfo.overallBitrate' => 'Overall Bitrate',
'fileInfo.path' => 'Path',
'fileInfo.size' => 'Size',
'fileInfo.container' => 'Container',
@@ -3469,6 +3518,7 @@ extension on Translations {
'subtitlingStyling.backgroundOpacity' => 'Background Opacity',
'subtitlingStyling.backgroundColor' => 'Background Color',
'subtitlingStyling.position' => 'Position',
'subtitlingStyling.assOverride' => 'ASS Override',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Advanced video player settings',
'mpvConfig.presets' => 'Presets',
@@ -3561,13 +3611,13 @@ extension on Translations {
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
'about.appDescription' => 'A beautiful Plex client for Flutter',
'about.viewLicensesDescription' => 'View licenses of third-party libraries',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Failed to connect to any servers. Please check your network and try again.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'No servers found for ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Failed to load servers: ${error}',
'hubDetail.title' => 'Title',
'hubDetail.releaseYear' => 'Release Year',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Date Added',
'hubDetail.rating' => 'Rating',
'hubDetail.noItemsFound' => 'No items found',
@@ -3720,6 +3770,12 @@ extension on Translations {
'downloads.resumeAll' => 'Resume all',
'downloads.deleteAll' => 'Delete all',
'downloads.selectVersion' => 'Select Version',
'downloads.allEpisodes' => 'All episodes',
'downloads.unwatchedOnly' => 'Unwatched only',
'downloads.nextNUnwatched' => ({required Object count}) => 'Next ${count} unwatched',
'downloads.customAmount' => 'Custom amount...',
'downloads.howManyEpisodes' => 'How many episodes?',
'downloads.itemsQueued' => ({required Object count}) => '${count} items queued for download',
'shaders.title' => 'Shaders',
'shaders.noShaderDescription' => 'No video enhancement',
'shaders.nvscalerDescription' => 'NVIDIA image scaling for sharper video',
@@ -3848,8 +3904,12 @@ extension on Translations {
'metadataEdit.summary' => 'Summary',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Background',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Square Art',
'metadataEdit.selectPoster' => 'Select Poster',
'metadataEdit.selectBackground' => 'Select Background',
'metadataEdit.selectLogo' => 'Select Logo',
'metadataEdit.selectSquareArt' => 'Select Square Art',
'metadataEdit.fromUrl' => 'From URL',
'metadataEdit.uploadFile' => 'Upload File',
'metadataEdit.enterImageUrl' => 'Enter image URL',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsEs implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Mostrar selección de perfil cada vez que se abre la aplicación';
@override String get confirmExitOnBack => 'Confirmar antes de salir';
@override String get confirmExitOnBackDescription => 'Mostrar un diálogo de confirmación al presionar atrás para salir de la app';
@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';
@override String get showNavBarLabelsDescription => 'Mostrar etiquetas de texto bajo los iconos de la barra de navegación';
@override String get liveTvDefaultFavorites => 'Canales favoritos por defecto';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoEs implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Primarias de color';
@override String get chromaSubsampling => 'Submuestreo de croma';
@override String get channels => 'Canales';
@override String get subtitles => 'Subtítulos';
@override String get overallBitrate => 'Bitrate total';
@override String get path => 'Ruta';
@override String get size => 'Tamaño';
@override String get container => 'Contenedor';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingEs implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Opacidad de Fondo';
@override String get backgroundColor => 'Color de Fondo';
@override String get position => 'Posición';
@override String get assOverride => 'Sobreescritura ASS';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsEs implements TranslationsDownloadsEn {
@override String get resumeAll => 'Reanudar todo';
@override String get deleteAll => 'Eliminar todo';
@override String get selectVersion => 'Seleccionar versión';
@override String get allEpisodes => 'Todos los episodios';
@override String get unwatchedOnly => 'Solo no vistos';
@override String nextNUnwatched({required Object count}) => 'Próximos ${count} no vistos';
@override String get customAmount => 'Cantidad personalizada...';
@override String get howManyEpisodes => '¿Cuántos episodios?';
@override String itemsQueued({required Object count}) => '${count} elementos en cola de descarga';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditEs implements TranslationsMetadataEditEn {
@override String get summary => 'Resumen';
@override String get poster => 'Póster';
@override String get background => 'Fondo';
@override String get logo => 'Logo';
@override String get squareArt => 'Imagen cuadrada';
@override String get selectPoster => 'Seleccionar póster';
@override String get selectBackground => 'Seleccionar fondo';
@override String get selectLogo => 'Seleccionar logo';
@override String get selectSquareArt => 'Seleccionar imagen cuadrada';
@override String get fromUrl => 'Desde URL';
@override String get uploadFile => 'Subir archivo';
@override String get enterImageUrl => 'Introducir URL de imagen';
@@ -1560,6 +1575,8 @@ extension on TranslationsEs {
'settings.requireProfileSelectionOnOpenDescription' => 'Mostrar selección de perfil cada vez que se abre la aplicación',
'settings.confirmExitOnBack' => 'Confirmar antes de salir',
'settings.confirmExitOnBackDescription' => 'Mostrar un diálogo de confirmación al presionar atrás para salir de la app',
'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',
'settings.showNavBarLabelsDescription' => 'Mostrar etiquetas de texto bajo los iconos de la barra de navegación',
'settings.liveTvDefaultFavorites' => 'Canales favoritos por defecto',
@@ -1614,6 +1631,8 @@ extension on TranslationsEs {
'fileInfo.colorPrimaries' => 'Primarias de color',
'fileInfo.chromaSubsampling' => 'Submuestreo de croma',
'fileInfo.channels' => 'Canales',
'fileInfo.subtitles' => 'Subtítulos',
'fileInfo.overallBitrate' => 'Bitrate total',
'fileInfo.path' => 'Ruta',
'fileInfo.size' => 'Tamaño',
'fileInfo.container' => 'Contenedor',
@@ -1762,6 +1781,7 @@ extension on TranslationsEs {
'subtitlingStyling.backgroundOpacity' => 'Opacidad de Fondo',
'subtitlingStyling.backgroundColor' => 'Color de Fondo',
'subtitlingStyling.position' => 'Posición',
'subtitlingStyling.assOverride' => 'Sobreescritura ASS',
'mpvConfig.title' => 'Configuración de mpv',
'mpvConfig.description' => 'Ajustes avanzados del reproductor de video',
'mpvConfig.presets' => 'Ajustes preestablecidos',
@@ -1854,13 +1874,13 @@ extension on TranslationsEs {
'about.versionLabel' => ({required Object version}) => 'Versión ${version}',
'about.appDescription' => 'Un cliente de Plex para Flutter',
'about.viewLicensesDescription' => 'Ver licencias de librerías de terceros',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'No se pudo conectar con ningún servidor. Por favor, comprueba tu conexión e inténtalo de nuevo.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'No se encontraron servidores para ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Error al cargar servidores: ${error}',
'hubDetail.title' => 'Título',
'hubDetail.releaseYear' => 'Año de lanzamiento',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Añadido el',
'hubDetail.rating' => 'Calificación',
'hubDetail.noItemsFound' => 'No se encontraron elementos',
@@ -2013,6 +2033,12 @@ extension on TranslationsEs {
'downloads.resumeAll' => 'Reanudar todo',
'downloads.deleteAll' => 'Eliminar todo',
'downloads.selectVersion' => 'Seleccionar versión',
'downloads.allEpisodes' => 'Todos los episodios',
'downloads.unwatchedOnly' => 'Solo no vistos',
'downloads.nextNUnwatched' => ({required Object count}) => 'Próximos ${count} no vistos',
'downloads.customAmount' => 'Cantidad personalizada...',
'downloads.howManyEpisodes' => '¿Cuántos episodios?',
'downloads.itemsQueued' => ({required Object count}) => '${count} elementos en cola de descarga',
'shaders.title' => 'Shaders',
'shaders.noShaderDescription' => 'Sin mejora de video',
'shaders.nvscalerDescription' => 'Escalado de imagen NVIDIA para un video más nítido',
@@ -2141,8 +2167,12 @@ extension on TranslationsEs {
'metadataEdit.summary' => 'Resumen',
'metadataEdit.poster' => 'Póster',
'metadataEdit.background' => 'Fondo',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Imagen cuadrada',
'metadataEdit.selectPoster' => 'Seleccionar póster',
'metadataEdit.selectBackground' => 'Seleccionar fondo',
'metadataEdit.selectLogo' => 'Seleccionar logo',
'metadataEdit.selectSquareArt' => 'Seleccionar imagen cuadrada',
'metadataEdit.fromUrl' => 'Desde URL',
'metadataEdit.uploadFile' => 'Subir archivo',
'metadataEdit.enterImageUrl' => 'Introducir URL de imagen',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Afficher la sélection de profil à chaque ouverture de l\'application';
@override String get confirmExitOnBack => 'Confirmer avant de quitter';
@override String get confirmExitOnBackDescription => 'Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter';
@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';
@override String get showNavBarLabelsDescription => 'Afficher les libellés sous les icônes de la barre de navigation';
@override String get liveTvDefaultFavorites => 'Chaînes favorites par défaut';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoFr implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Couleurs primaires';
@override String get chromaSubsampling => 'Sous-échantillonnage chromatique';
@override String get channels => 'Canaux';
@override String get subtitles => 'Sous-titres';
@override String get overallBitrate => 'Débit global';
@override String get path => 'Chemin';
@override String get size => 'Taille';
@override String get container => 'Conteneur';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingFr implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Opacité d\'arrière-plan';
@override String get backgroundColor => 'Couleur d\'arrière-plan';
@override String get position => 'Position';
@override String get assOverride => 'Remplacement ASS';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsFr implements TranslationsDownloadsEn {
@override String get resumeAll => 'Tout reprendre';
@override String get deleteAll => 'Tout supprimer';
@override String get selectVersion => 'Sélectionner la version';
@override String get allEpisodes => 'Tous les épisodes';
@override String get unwatchedOnly => 'Non vus uniquement';
@override String nextNUnwatched({required Object count}) => '${count} prochains non vus';
@override String get customAmount => 'Quantité personnalisée...';
@override String get howManyEpisodes => 'Combien d\'épisodes ?';
@override String itemsQueued({required Object count}) => '${count} éléments mis en file d\'attente';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditFr implements TranslationsMetadataEditEn {
@override String get summary => 'Résumé';
@override String get poster => 'Affiche';
@override String get background => 'Arrière-plan';
@override String get logo => 'Logo';
@override String get squareArt => 'Image carrée';
@override String get selectPoster => 'Sélectionner l\'affiche';
@override String get selectBackground => 'Sélectionner l\'arrière-plan';
@override String get selectLogo => 'Sélectionner le logo';
@override String get selectSquareArt => 'Sélectionner l\'image carrée';
@override String get fromUrl => 'Depuis une URL';
@override String get uploadFile => 'Importer un fichier';
@override String get enterImageUrl => 'Entrer l\'URL de l\'image';
@@ -1560,6 +1575,8 @@ extension on TranslationsFr {
'settings.requireProfileSelectionOnOpenDescription' => 'Afficher la sélection de profil à chaque ouverture de l\'application',
'settings.confirmExitOnBack' => 'Confirmer avant de quitter',
'settings.confirmExitOnBackDescription' => 'Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter',
'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',
'settings.showNavBarLabelsDescription' => 'Afficher les libellés sous les icônes de la barre de navigation',
'settings.liveTvDefaultFavorites' => 'Chaînes favorites par défaut',
@@ -1614,6 +1631,8 @@ extension on TranslationsFr {
'fileInfo.colorPrimaries' => 'Couleurs primaires',
'fileInfo.chromaSubsampling' => 'Sous-échantillonnage chromatique',
'fileInfo.channels' => 'Canaux',
'fileInfo.subtitles' => 'Sous-titres',
'fileInfo.overallBitrate' => 'Débit global',
'fileInfo.path' => 'Chemin',
'fileInfo.size' => 'Taille',
'fileInfo.container' => 'Conteneur',
@@ -1762,6 +1781,7 @@ extension on TranslationsFr {
'subtitlingStyling.backgroundOpacity' => 'Opacité d\'arrière-plan',
'subtitlingStyling.backgroundColor' => 'Couleur d\'arrière-plan',
'subtitlingStyling.position' => 'Position',
'subtitlingStyling.assOverride' => 'Remplacement ASS',
'mpvConfig.title' => 'Configuration mpv',
'mpvConfig.description' => 'Paramètres avancés du lecteur vidéo',
'mpvConfig.presets' => 'Préréglages',
@@ -1854,13 +1874,13 @@ extension on TranslationsFr {
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
'about.appDescription' => 'Un magnifique client Plex pour Flutter',
'about.viewLicensesDescription' => 'Afficher les licences des bibliothèques tierces',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Impossible de se connecter à un serveur. Veuillez vérifier votre connexion réseau et réessayer.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Aucun serveur trouvé pour ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Échec du chargement des serveurs: ${error}',
'hubDetail.title' => 'Titre',
'hubDetail.releaseYear' => 'Année de sortie',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Date d\'ajout',
'hubDetail.rating' => 'Évaluation',
'hubDetail.noItemsFound' => 'Aucun élément trouvé',
@@ -2013,6 +2033,12 @@ extension on TranslationsFr {
'downloads.resumeAll' => 'Tout reprendre',
'downloads.deleteAll' => 'Tout supprimer',
'downloads.selectVersion' => 'Sélectionner la version',
'downloads.allEpisodes' => 'Tous les épisodes',
'downloads.unwatchedOnly' => 'Non vus uniquement',
'downloads.nextNUnwatched' => ({required Object count}) => '${count} prochains non vus',
'downloads.customAmount' => 'Quantité personnalisée...',
'downloads.howManyEpisodes' => 'Combien d\'épisodes ?',
'downloads.itemsQueued' => ({required Object count}) => '${count} éléments mis en file d\'attente',
'shaders.title' => 'Shaders',
'shaders.noShaderDescription' => 'Aucune amélioration vidéo',
'shaders.nvscalerDescription' => 'Mise à l\'échelle NVIDIA pour une vidéo plus nette',
@@ -2141,8 +2167,12 @@ extension on TranslationsFr {
'metadataEdit.summary' => 'Résumé',
'metadataEdit.poster' => 'Affiche',
'metadataEdit.background' => 'Arrière-plan',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Image carrée',
'metadataEdit.selectPoster' => 'Sélectionner l\'affiche',
'metadataEdit.selectBackground' => 'Sélectionner l\'arrière-plan',
'metadataEdit.selectLogo' => 'Sélectionner le logo',
'metadataEdit.selectSquareArt' => 'Sélectionner l\'image carrée',
'metadataEdit.fromUrl' => 'Depuis une URL',
'metadataEdit.uploadFile' => 'Importer un fichier',
'metadataEdit.enterImageUrl' => 'Entrer l\'URL de l\'image',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsIt implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Mostra la selezione del profilo ogni volta che l\'app viene aperta';
@override String get confirmExitOnBack => 'Conferma prima di uscire';
@override String get confirmExitOnBackDescription => 'Mostra una finestra di conferma quando si preme indietro per uscire dall\'app';
@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';
@override String get showNavBarLabelsDescription => 'Mostra le etichette sotto le icone della barra di navigazione';
@override String get liveTvDefaultFavorites => 'Canali preferiti predefiniti';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoIt implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Colori primari';
@override String get chromaSubsampling => 'Sottocampionamento cromatico';
@override String get channels => 'Canali';
@override String get subtitles => 'Sottotitoli';
@override String get overallBitrate => 'Bitrate complessivo';
@override String get path => 'Percorso';
@override String get size => 'Dimensione';
@override String get container => 'Contenitore';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingIt implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Opacità sfondo';
@override String get backgroundColor => 'Colore sfondo';
@override String get position => 'Posizione';
@override String get assOverride => 'Sovrascrittura ASS';
}
// Path: mpvConfig
@@ -870,6 +875,12 @@ class _TranslationsDownloadsIt implements TranslationsDownloadsEn {
@override String get resumeAll => 'Riprendi tutto';
@override String get deleteAll => 'Elimina tutto';
@override String get selectVersion => 'Seleziona versione';
@override String get allEpisodes => 'Tutti gli episodi';
@override String get unwatchedOnly => 'Solo non visti';
@override String nextNUnwatched({required Object count}) => 'Prossimi ${count} non visti';
@override String get customAmount => 'Quantità personalizzata...';
@override String get howManyEpisodes => 'Quanti episodi?';
@override String itemsQueued({required Object count}) => '${count} elementi in coda per il download';
}
// Path: playlists
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditIt implements TranslationsMetadataEditEn {
@override String get summary => 'Trama';
@override String get poster => 'Poster';
@override String get background => 'Sfondo';
@override String get logo => 'Logo';
@override String get squareArt => 'Immagine quadrata';
@override String get selectPoster => 'Seleziona poster';
@override String get selectBackground => 'Seleziona sfondo';
@override String get selectLogo => 'Seleziona logo';
@override String get selectSquareArt => 'Seleziona immagine quadrata';
@override String get fromUrl => 'Da URL';
@override String get uploadFile => 'Carica file';
@override String get enterImageUrl => 'Inserisci URL immagine';
@@ -1560,6 +1575,8 @@ extension on TranslationsIt {
'settings.requireProfileSelectionOnOpenDescription' => 'Mostra la selezione del profilo ogni volta che l\'app viene aperta',
'settings.confirmExitOnBack' => 'Conferma prima di uscire',
'settings.confirmExitOnBackDescription' => 'Mostra una finestra di conferma quando si preme indietro per uscire dall\'app',
'settings.autoHidePerformanceOverlay' => 'Nascondi automaticamente overlay prestazioni',
'settings.autoHidePerformanceOverlayDescription' => 'Dissolvi l\'overlay prestazioni con i controlli di riproduzione',
'settings.showNavBarLabels' => 'Mostra etichette barra di navigazione',
'settings.showNavBarLabelsDescription' => 'Mostra le etichette sotto le icone della barra di navigazione',
'settings.liveTvDefaultFavorites' => 'Canali preferiti predefiniti',
@@ -1614,6 +1631,8 @@ extension on TranslationsIt {
'fileInfo.colorPrimaries' => 'Colori primari',
'fileInfo.chromaSubsampling' => 'Sottocampionamento cromatico',
'fileInfo.channels' => 'Canali',
'fileInfo.subtitles' => 'Sottotitoli',
'fileInfo.overallBitrate' => 'Bitrate complessivo',
'fileInfo.path' => 'Percorso',
'fileInfo.size' => 'Dimensione',
'fileInfo.container' => 'Contenitore',
@@ -1762,6 +1781,7 @@ extension on TranslationsIt {
'subtitlingStyling.backgroundOpacity' => 'Opacità sfondo',
'subtitlingStyling.backgroundColor' => 'Colore sfondo',
'subtitlingStyling.position' => 'Posizione',
'subtitlingStyling.assOverride' => 'Sovrascrittura ASS',
'mpvConfig.title' => 'Configurazione mpv',
'mpvConfig.description' => 'Impostazioni avanzate del lettore video',
'mpvConfig.presets' => 'Preset',
@@ -1854,13 +1874,13 @@ extension on TranslationsIt {
'about.versionLabel' => ({required Object version}) => 'Versione ${version}',
'about.appDescription' => 'Un bellissimo client Plex per Flutter',
'about.viewLicensesDescription' => 'Visualizza le licenze delle librerie di terze parti',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Impossibile connettersi a nessun server. Controlla la tua rete e riprova.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Nessun server trovato per ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Impossibile caricare i server: ${error}',
'hubDetail.title' => 'Titolo',
'hubDetail.releaseYear' => 'Anno rilascio',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Data aggiunta',
'hubDetail.rating' => 'Valutazione',
'hubDetail.noItemsFound' => 'Nessun elemento trovato',
@@ -1916,6 +1936,12 @@ extension on TranslationsIt {
'downloads.resumeAll' => 'Riprendi tutto',
'downloads.deleteAll' => 'Elimina tutto',
'downloads.selectVersion' => 'Seleziona versione',
'downloads.allEpisodes' => 'Tutti gli episodi',
'downloads.unwatchedOnly' => 'Solo non visti',
'downloads.nextNUnwatched' => ({required Object count}) => 'Prossimi ${count} non visti',
'downloads.customAmount' => 'Quantità personalizzata...',
'downloads.howManyEpisodes' => 'Quanti episodi?',
'downloads.itemsQueued' => ({required Object count}) => '${count} elementi in coda per il download',
'playlists.title' => 'Playlist',
'playlists.noPlaylists' => 'Nessuna playlist trovata',
'playlists.create' => 'Crea playlist',
@@ -2141,8 +2167,12 @@ extension on TranslationsIt {
'metadataEdit.summary' => 'Trama',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Sfondo',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Immagine quadrata',
'metadataEdit.selectPoster' => 'Seleziona poster',
'metadataEdit.selectBackground' => 'Seleziona sfondo',
'metadataEdit.selectLogo' => 'Seleziona logo',
'metadataEdit.selectSquareArt' => 'Seleziona immagine quadrata',
'metadataEdit.fromUrl' => 'Da URL',
'metadataEdit.uploadFile' => 'Carica file',
'metadataEdit.enterImageUrl' => 'Inserisci URL immagine',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsJa implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'アプリを開くたびにプロフィール選択を表示';
@override String get confirmExitOnBack => '終了前に確認';
@override String get confirmExitOnBackDescription => '戻るボタンでアプリを終了する際に確認ダイアログを表示';
@override String get autoHidePerformanceOverlay => 'パフォーマンスオーバーレイを自動非表示';
@override String get autoHidePerformanceOverlayDescription => '再生コントロールと一緒にパフォーマンスオーバーレイをフェードする';
@override String get showNavBarLabels => 'ナビゲーションバーラベルを表示';
@override String get showNavBarLabelsDescription => 'ナビゲーションバーアイコンの下にテキストラベルを表示';
@override String get liveTvDefaultFavorites => 'お気に入りチャンネルをデフォルトに';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoJa implements TranslationsFileInfoEn {
@override String get colorPrimaries => '色原色';
@override String get chromaSubsampling => 'クロマサブサンプリング';
@override String get channels => 'チャンネル';
@override String get subtitles => '字幕';
@override String get overallBitrate => '全体ビットレート';
@override String get path => 'パス';
@override String get size => 'サイズ';
@override String get container => 'コンテナ';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingJa implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => '背景の不透明度';
@override String get backgroundColor => '背景色';
@override String get position => '位置';
@override String get assOverride => 'ASSオーバーライド';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsJa implements TranslationsDownloadsEn {
@override String get resumeAll => 'すべて再開';
@override String get deleteAll => 'すべて削除';
@override String get selectVersion => 'バージョンを選択';
@override String get allEpisodes => 'すべてのエピソード';
@override String get unwatchedOnly => '未視聴のみ';
@override String nextNUnwatched({required Object count}) => '次の${count}件の未視聴';
@override String get customAmount => '数を指定...';
@override String get howManyEpisodes => '何エピソード?';
@override String itemsQueued({required Object count}) => '${count}件をダウンロードキューに追加';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditJa implements TranslationsMetadataEditEn {
@override String get summary => 'あらすじ';
@override String get poster => 'ポスター';
@override String get background => '背景';
@override String get logo => 'ロゴ';
@override String get squareArt => '正方形アート';
@override String get selectPoster => 'ポスターを選択';
@override String get selectBackground => '背景を選択';
@override String get selectLogo => 'ロゴを選択';
@override String get selectSquareArt => '正方形アートを選択';
@override String get fromUrl => 'URLから';
@override String get uploadFile => 'ファイルをアップロード';
@override String get enterImageUrl => '画像URLを入力';
@@ -1560,6 +1575,8 @@ extension on TranslationsJa {
'settings.requireProfileSelectionOnOpenDescription' => 'アプリを開くたびにプロフィール選択を表示',
'settings.confirmExitOnBack' => '終了前に確認',
'settings.confirmExitOnBackDescription' => '戻るボタンでアプリを終了する際に確認ダイアログを表示',
'settings.autoHidePerformanceOverlay' => 'パフォーマンスオーバーレイを自動非表示',
'settings.autoHidePerformanceOverlayDescription' => '再生コントロールと一緒にパフォーマンスオーバーレイをフェードする',
'settings.showNavBarLabels' => 'ナビゲーションバーラベルを表示',
'settings.showNavBarLabelsDescription' => 'ナビゲーションバーアイコンの下にテキストラベルを表示',
'settings.liveTvDefaultFavorites' => 'お気に入りチャンネルをデフォルトに',
@@ -1614,6 +1631,8 @@ extension on TranslationsJa {
'fileInfo.colorPrimaries' => '色原色',
'fileInfo.chromaSubsampling' => 'クロマサブサンプリング',
'fileInfo.channels' => 'チャンネル',
'fileInfo.subtitles' => '字幕',
'fileInfo.overallBitrate' => '全体ビットレート',
'fileInfo.path' => 'パス',
'fileInfo.size' => 'サイズ',
'fileInfo.container' => 'コンテナ',
@@ -1762,6 +1781,7 @@ extension on TranslationsJa {
'subtitlingStyling.backgroundOpacity' => '背景の不透明度',
'subtitlingStyling.backgroundColor' => '背景色',
'subtitlingStyling.position' => '位置',
'subtitlingStyling.assOverride' => 'ASSオーバーライド',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => '高度な動画プレーヤー設定',
'mpvConfig.presets' => 'プリセット',
@@ -1854,13 +1874,13 @@ extension on TranslationsJa {
'about.versionLabel' => ({required Object version}) => 'バージョン ${version}',
'about.appDescription' => 'Flutter製の美しいPlexクライアント',
'about.viewLicensesDescription' => 'サードパーティライブラリのライセンスを表示',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'どのサーバーにも接続できませんでした。ネットワークを確認してもう一度お試しください。',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => '${username} (${email})のサーバーが見つかりません',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'サーバーの読み込みに失敗しました: ${error}',
'hubDetail.title' => 'タイトル',
'hubDetail.releaseYear' => '公開年',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => '追加日',
'hubDetail.rating' => '評価',
'hubDetail.noItemsFound' => 'アイテムが見つかりません',
@@ -2013,6 +2033,12 @@ extension on TranslationsJa {
'downloads.resumeAll' => 'すべて再開',
'downloads.deleteAll' => 'すべて削除',
'downloads.selectVersion' => 'バージョンを選択',
'downloads.allEpisodes' => 'すべてのエピソード',
'downloads.unwatchedOnly' => '未視聴のみ',
'downloads.nextNUnwatched' => ({required Object count}) => '次の${count}件の未視聴',
'downloads.customAmount' => '数を指定...',
'downloads.howManyEpisodes' => '何エピソード?',
'downloads.itemsQueued' => ({required Object count}) => '${count}件をダウンロードキューに追加',
'shaders.title' => 'シェーダー',
'shaders.noShaderDescription' => '映像補正なし',
'shaders.nvscalerDescription' => 'よりシャープな映像のためのNVIDIA画像スケーリング',
@@ -2141,8 +2167,12 @@ extension on TranslationsJa {
'metadataEdit.summary' => 'あらすじ',
'metadataEdit.poster' => 'ポスター',
'metadataEdit.background' => '背景',
'metadataEdit.logo' => 'ロゴ',
'metadataEdit.squareArt' => '正方形アート',
'metadataEdit.selectPoster' => 'ポスターを選択',
'metadataEdit.selectBackground' => '背景を選択',
'metadataEdit.selectLogo' => 'ロゴを選択',
'metadataEdit.selectSquareArt' => '正方形アートを選択',
'metadataEdit.fromUrl' => 'URLから',
'metadataEdit.uploadFile' => 'ファイルをアップロード',
'metadataEdit.enterImageUrl' => '画像URLを入力',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsKo implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => '앱을 열 때마다 프로필 선택 화면을 표시합니다';
@override String get confirmExitOnBack => '종료 전 확인';
@override String get confirmExitOnBackDescription => '뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다';
@override String get autoHidePerformanceOverlay => '성능 오버레이 자동 숨기기';
@override String get autoHidePerformanceOverlayDescription => '재생 컨트롤과 함께 성능 오버레이를 페이드 처리';
@override String get showNavBarLabels => '내비게이션 바 라벨 표시';
@override String get showNavBarLabelsDescription => '내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다';
@override String get liveTvDefaultFavorites => '즐겨찾기 채널 기본 설정';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoKo implements TranslationsFileInfoEn {
@override String get colorPrimaries => '색상 원색';
@override String get chromaSubsampling => '채도 서브샘플링';
@override String get channels => '채널';
@override String get subtitles => '자막';
@override String get overallBitrate => '전체 비트레이트';
@override String get path => '경로';
@override String get size => '크기';
@override String get container => '컨테이너';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingKo implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => '배경 불투명도';
@override String get backgroundColor => '배경색';
@override String get position => '위치';
@override String get assOverride => 'ASS 오버라이드';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsKo implements TranslationsDownloadsEn {
@override String get resumeAll => '모두 재개';
@override String get deleteAll => '모두 삭제';
@override String get selectVersion => '버전 선택';
@override String get allEpisodes => '모든 에피소드';
@override String get unwatchedOnly => '시청하지 않은 것만';
@override String nextNUnwatched({required Object count}) => '다음 ${count}개 미시청';
@override String get customAmount => '직접 입력...';
@override String get howManyEpisodes => '몇 개의 에피소드?';
@override String itemsQueued({required Object count}) => '${count}개 항목이 다운로드 대기열에 추가됨';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditKo implements TranslationsMetadataEditEn {
@override String get summary => '줄거리';
@override String get poster => '포스터';
@override String get background => '배경';
@override String get logo => '로고';
@override String get squareArt => '정사각형 아트';
@override String get selectPoster => '포스터 선택';
@override String get selectBackground => '배경 선택';
@override String get selectLogo => '로고 선택';
@override String get selectSquareArt => '정사각형 아트 선택';
@override String get fromUrl => 'URL에서';
@override String get uploadFile => '파일 업로드';
@override String get enterImageUrl => '이미지 URL 입력';
@@ -1560,6 +1575,8 @@ extension on TranslationsKo {
'settings.requireProfileSelectionOnOpenDescription' => '앱을 열 때마다 프로필 선택 화면을 표시합니다',
'settings.confirmExitOnBack' => '종료 전 확인',
'settings.confirmExitOnBackDescription' => '뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다',
'settings.autoHidePerformanceOverlay' => '성능 오버레이 자동 숨기기',
'settings.autoHidePerformanceOverlayDescription' => '재생 컨트롤과 함께 성능 오버레이를 페이드 처리',
'settings.showNavBarLabels' => '내비게이션 바 라벨 표시',
'settings.showNavBarLabelsDescription' => '내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다',
'settings.liveTvDefaultFavorites' => '즐겨찾기 채널 기본 설정',
@@ -1614,6 +1631,8 @@ extension on TranslationsKo {
'fileInfo.colorPrimaries' => '색상 원색',
'fileInfo.chromaSubsampling' => '채도 서브샘플링',
'fileInfo.channels' => '채널',
'fileInfo.subtitles' => '자막',
'fileInfo.overallBitrate' => '전체 비트레이트',
'fileInfo.path' => '경로',
'fileInfo.size' => '크기',
'fileInfo.container' => '컨테이너',
@@ -1762,6 +1781,7 @@ extension on TranslationsKo {
'subtitlingStyling.backgroundOpacity' => '배경 불투명도',
'subtitlingStyling.backgroundColor' => '배경색',
'subtitlingStyling.position' => '위치',
'subtitlingStyling.assOverride' => 'ASS 오버라이드',
'mpvConfig.title' => 'mpv 설정',
'mpvConfig.description' => '고급 비디오 플레이어 설정',
'mpvConfig.presets' => '사전 설정',
@@ -1854,13 +1874,13 @@ extension on TranslationsKo {
'about.versionLabel' => ({required Object version}) => '버전 ${version}',
'about.appDescription' => '아름다운 Flutter Plex 클라이언트',
'about.viewLicensesDescription' => '타사 라이브러리 라이선스 보기',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => '어떤 서버에도 연결할 수 없습니다. 네트워크를 확인하고 다시 시도하세요.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => '${username} (${email})의 서버를 찾을 수 없습니다.',
'serverSelection.failedToLoadServers' => ({required Object error}) => '서버를 로드할 수 없습니다: ${error}',
'hubDetail.title' => '제목',
'hubDetail.releaseYear' => '출시 연도',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => '추가 날짜',
'hubDetail.rating' => '평점',
'hubDetail.noItemsFound' => '항목이 없습니다',
@@ -2013,6 +2033,12 @@ extension on TranslationsKo {
'downloads.resumeAll' => '모두 재개',
'downloads.deleteAll' => '모두 삭제',
'downloads.selectVersion' => '버전 선택',
'downloads.allEpisodes' => '모든 에피소드',
'downloads.unwatchedOnly' => '시청하지 않은 것만',
'downloads.nextNUnwatched' => ({required Object count}) => '다음 ${count}개 미시청',
'downloads.customAmount' => '직접 입력...',
'downloads.howManyEpisodes' => '몇 개의 에피소드?',
'downloads.itemsQueued' => ({required Object count}) => '${count}개 항목이 다운로드 대기열에 추가됨',
'shaders.title' => '셰이더',
'shaders.noShaderDescription' => '비디오 향상 없음',
'shaders.nvscalerDescription' => '더 선명한 비디오를 위한 NVIDIA 이미지 스케일링',
@@ -2141,8 +2167,12 @@ extension on TranslationsKo {
'metadataEdit.summary' => '줄거리',
'metadataEdit.poster' => '포스터',
'metadataEdit.background' => '배경',
'metadataEdit.logo' => '로고',
'metadataEdit.squareArt' => '정사각형 아트',
'metadataEdit.selectPoster' => '포스터 선택',
'metadataEdit.selectBackground' => '배경 선택',
'metadataEdit.selectLogo' => '로고 선택',
'metadataEdit.selectSquareArt' => '정사각형 아트 선택',
'metadataEdit.fromUrl' => 'URL에서',
'metadataEdit.uploadFile' => '파일 업로드',
'metadataEdit.enterImageUrl' => '이미지 URL 입력',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsNb implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Vis profilvalg hver gang appen åpnes';
@override String get confirmExitOnBack => 'Bekreft før avslutning';
@override String get confirmExitOnBackDescription => 'Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen';
@override String get autoHidePerformanceOverlay => 'Skjul ytelsesoverlegg automatisk';
@override String get autoHidePerformanceOverlayDescription => 'Fade ytelsesoverlegget med avspillingskontrollene';
@override String get showNavBarLabels => 'Vis navigasjonsfeltlabeler';
@override String get showNavBarLabelsDescription => 'Vis tekstlabeler under navigasjonsfeltikoner';
@override String get liveTvDefaultFavorites => 'Standard til favorittkanaler';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoNb implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Fargeprimærer';
@override String get chromaSubsampling => 'Krominansnedsampling';
@override String get channels => 'Kanaler';
@override String get subtitles => 'Undertekster';
@override String get overallBitrate => 'Total bitrate';
@override String get path => 'Sti';
@override String get size => 'Størrelse';
@override String get container => 'Beholder';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingNb implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Bakgrunnsopasitet';
@override String get backgroundColor => 'Bakgrunnsfarge';
@override String get position => 'Posisjon';
@override String get assOverride => 'ASS-overstyring';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsNb implements TranslationsDownloadsEn {
@override String get resumeAll => 'Gjenoppta alle';
@override String get deleteAll => 'Slett alle';
@override String get selectVersion => 'Velg versjon';
@override String get allEpisodes => 'Alle episoder';
@override String get unwatchedOnly => 'Kun usette';
@override String nextNUnwatched({required Object count}) => 'Neste ${count} usette';
@override String get customAmount => 'Egendefinert antall...';
@override String get howManyEpisodes => 'Hvor mange episoder?';
@override String itemsQueued({required Object count}) => '${count} elementer i nedlastingskø';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditNb implements TranslationsMetadataEditEn {
@override String get summary => 'Sammendrag';
@override String get poster => 'Plakat';
@override String get background => 'Bakgrunn';
@override String get logo => 'Logo';
@override String get squareArt => 'Kvadratisk bilde';
@override String get selectPoster => 'Velg plakat';
@override String get selectBackground => 'Velg bakgrunn';
@override String get selectLogo => 'Velg logo';
@override String get selectSquareArt => 'Velg kvadratisk bilde';
@override String get fromUrl => 'Fra URL';
@override String get uploadFile => 'Last opp fil';
@override String get enterImageUrl => 'Skriv inn bilde-URL';
@@ -1560,6 +1575,8 @@ extension on TranslationsNb {
'settings.requireProfileSelectionOnOpenDescription' => 'Vis profilvalg hver gang appen åpnes',
'settings.confirmExitOnBack' => 'Bekreft før avslutning',
'settings.confirmExitOnBackDescription' => 'Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen',
'settings.autoHidePerformanceOverlay' => 'Skjul ytelsesoverlegg automatisk',
'settings.autoHidePerformanceOverlayDescription' => 'Fade ytelsesoverlegget med avspillingskontrollene',
'settings.showNavBarLabels' => 'Vis navigasjonsfeltlabeler',
'settings.showNavBarLabelsDescription' => 'Vis tekstlabeler under navigasjonsfeltikoner',
'settings.liveTvDefaultFavorites' => 'Standard til favorittkanaler',
@@ -1614,6 +1631,8 @@ extension on TranslationsNb {
'fileInfo.colorPrimaries' => 'Fargeprimærer',
'fileInfo.chromaSubsampling' => 'Krominansnedsampling',
'fileInfo.channels' => 'Kanaler',
'fileInfo.subtitles' => 'Undertekster',
'fileInfo.overallBitrate' => 'Total bitrate',
'fileInfo.path' => 'Sti',
'fileInfo.size' => 'Størrelse',
'fileInfo.container' => 'Beholder',
@@ -1762,6 +1781,7 @@ extension on TranslationsNb {
'subtitlingStyling.backgroundOpacity' => 'Bakgrunnsopasitet',
'subtitlingStyling.backgroundColor' => 'Bakgrunnsfarge',
'subtitlingStyling.position' => 'Posisjon',
'subtitlingStyling.assOverride' => 'ASS-overstyring',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Avanserte videospillerinnstillinger',
'mpvConfig.presets' => 'Forhåndsinnstillinger',
@@ -1854,13 +1874,13 @@ extension on TranslationsNb {
'about.versionLabel' => ({required Object version}) => 'Versjon ${version}',
'about.appDescription' => 'En vakker Plex-klient for Flutter',
'about.viewLicensesDescription' => 'Vis lisenser for tredjepartsbiblioteker',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Kunne ikke koble til noen servere. Sjekk nettverket ditt og prøv igjen.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Ingen servere funnet for ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Kunne ikke laste servere: ${error}',
'hubDetail.title' => 'Tittel',
'hubDetail.releaseYear' => 'Utgivelsesår',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Dato lagt til',
'hubDetail.rating' => 'Vurdering',
'hubDetail.noItemsFound' => 'Ingen elementer funnet',
@@ -2013,6 +2033,12 @@ extension on TranslationsNb {
'downloads.resumeAll' => 'Gjenoppta alle',
'downloads.deleteAll' => 'Slett alle',
'downloads.selectVersion' => 'Velg versjon',
'downloads.allEpisodes' => 'Alle episoder',
'downloads.unwatchedOnly' => 'Kun usette',
'downloads.nextNUnwatched' => ({required Object count}) => 'Neste ${count} usette',
'downloads.customAmount' => 'Egendefinert antall...',
'downloads.howManyEpisodes' => 'Hvor mange episoder?',
'downloads.itemsQueued' => ({required Object count}) => '${count} elementer i nedlastingskø',
'shaders.title' => 'Shadere',
'shaders.noShaderDescription' => 'Ingen videoforbedring',
'shaders.nvscalerDescription' => 'NVIDIA bildeskalering for skarpere video',
@@ -2141,8 +2167,12 @@ extension on TranslationsNb {
'metadataEdit.summary' => 'Sammendrag',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Bakgrunn',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kvadratisk bilde',
'metadataEdit.selectPoster' => 'Velg plakat',
'metadataEdit.selectBackground' => 'Velg bakgrunn',
'metadataEdit.selectLogo' => 'Velg logo',
'metadataEdit.selectSquareArt' => 'Velg kvadratisk bilde',
'metadataEdit.fromUrl' => 'Fra URL',
'metadataEdit.uploadFile' => 'Last opp fil',
'metadataEdit.enterImageUrl' => 'Skriv inn bilde-URL',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsNl implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Toon profielselectie telkens wanneer de app wordt geopend';
@override String get confirmExitOnBack => 'Bevestigen voor afsluiten';
@override String get confirmExitOnBackDescription => 'Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten';
@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';
@override String get showNavBarLabelsDescription => 'Tekstlabels onder de pictogrammen van de navigatiebalk weergeven';
@override String get liveTvDefaultFavorites => 'Standaard favoriete zenders';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoNl implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Kleurprimaires';
@override String get chromaSubsampling => 'Chroma subsampling';
@override String get channels => 'Kanalen';
@override String get subtitles => 'Ondertitels';
@override String get overallBitrate => 'Totale bitrate';
@override String get path => 'Pad';
@override String get size => 'Grootte';
@override String get container => 'Container';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingNl implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Achtergrond transparantie';
@override String get backgroundColor => 'Achtergrondkleur';
@override String get position => 'Positie';
@override String get assOverride => 'ASS-overschrijving';
}
// Path: mpvConfig
@@ -870,6 +875,12 @@ class _TranslationsDownloadsNl implements TranslationsDownloadsEn {
@override String get resumeAll => 'Alles hervatten';
@override String get deleteAll => 'Alles verwijderen';
@override String get selectVersion => 'Versie selecteren';
@override String get allEpisodes => 'Alle afleveringen';
@override String get unwatchedOnly => 'Alleen onbekeken';
@override String nextNUnwatched({required Object count}) => 'Volgende ${count} onbekeken';
@override String get customAmount => 'Aangepast aantal...';
@override String get howManyEpisodes => 'Hoeveel afleveringen?';
@override String itemsQueued({required Object count}) => '${count} items in downloadwachtrij';
}
// Path: playlists
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditNl implements TranslationsMetadataEditEn {
@override String get summary => 'Samenvatting';
@override String get poster => 'Poster';
@override String get background => 'Achtergrond';
@override String get logo => 'Logo';
@override String get squareArt => 'Vierkante afbeelding';
@override String get selectPoster => 'Poster selecteren';
@override String get selectBackground => 'Achtergrond selecteren';
@override String get selectLogo => 'Logo selecteren';
@override String get selectSquareArt => 'Vierkante afbeelding selecteren';
@override String get fromUrl => 'Vanaf URL';
@override String get uploadFile => 'Bestand uploaden';
@override String get enterImageUrl => 'Voer afbeeldings-URL in';
@@ -1560,6 +1575,8 @@ extension on TranslationsNl {
'settings.requireProfileSelectionOnOpenDescription' => 'Toon profielselectie telkens wanneer de app wordt geopend',
'settings.confirmExitOnBack' => 'Bevestigen voor afsluiten',
'settings.confirmExitOnBackDescription' => 'Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten',
'settings.autoHidePerformanceOverlay' => 'Prestatie-overlay automatisch verbergen',
'settings.autoHidePerformanceOverlayDescription' => 'Laat de prestatie-overlay meevervagen met de afspeelknoppen',
'settings.showNavBarLabels' => 'Navigatiebalk labels tonen',
'settings.showNavBarLabelsDescription' => 'Tekstlabels onder de pictogrammen van de navigatiebalk weergeven',
'settings.liveTvDefaultFavorites' => 'Standaard favoriete zenders',
@@ -1614,6 +1631,8 @@ extension on TranslationsNl {
'fileInfo.colorPrimaries' => 'Kleurprimaires',
'fileInfo.chromaSubsampling' => 'Chroma subsampling',
'fileInfo.channels' => 'Kanalen',
'fileInfo.subtitles' => 'Ondertitels',
'fileInfo.overallBitrate' => 'Totale bitrate',
'fileInfo.path' => 'Pad',
'fileInfo.size' => 'Grootte',
'fileInfo.container' => 'Container',
@@ -1762,6 +1781,7 @@ extension on TranslationsNl {
'subtitlingStyling.backgroundOpacity' => 'Achtergrond transparantie',
'subtitlingStyling.backgroundColor' => 'Achtergrondkleur',
'subtitlingStyling.position' => 'Positie',
'subtitlingStyling.assOverride' => 'ASS-overschrijving',
'mpvConfig.title' => 'mpv-configuratie',
'mpvConfig.description' => 'Geavanceerde videospeler-instellingen',
'mpvConfig.presets' => 'Voorinstellingen',
@@ -1854,13 +1874,13 @@ extension on TranslationsNl {
'about.versionLabel' => ({required Object version}) => 'Versie ${version}',
'about.appDescription' => 'Een mooie Plex client voor Flutter',
'about.viewLicensesDescription' => 'Bekijk licenties van third-party bibliotheken',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Kon niet verbinden met servers. Controleer je netwerk en probeer opnieuw.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Geen servers gevonden voor ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Kon servers niet laden: ${error}',
'hubDetail.title' => 'Titel',
'hubDetail.releaseYear' => 'Uitgavejaar',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Datum toegevoegd',
'hubDetail.rating' => 'Beoordeling',
'hubDetail.noItemsFound' => 'Geen items gevonden',
@@ -1916,6 +1936,12 @@ extension on TranslationsNl {
'downloads.resumeAll' => 'Alles hervatten',
'downloads.deleteAll' => 'Alles verwijderen',
'downloads.selectVersion' => 'Versie selecteren',
'downloads.allEpisodes' => 'Alle afleveringen',
'downloads.unwatchedOnly' => 'Alleen onbekeken',
'downloads.nextNUnwatched' => ({required Object count}) => 'Volgende ${count} onbekeken',
'downloads.customAmount' => 'Aangepast aantal...',
'downloads.howManyEpisodes' => 'Hoeveel afleveringen?',
'downloads.itemsQueued' => ({required Object count}) => '${count} items in downloadwachtrij',
'playlists.title' => 'Afspeellijsten',
'playlists.noPlaylists' => 'Geen afspeellijsten gevonden',
'playlists.create' => 'Afspeellijst maken',
@@ -2141,8 +2167,12 @@ extension on TranslationsNl {
'metadataEdit.summary' => 'Samenvatting',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Achtergrond',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Vierkante afbeelding',
'metadataEdit.selectPoster' => 'Poster selecteren',
'metadataEdit.selectBackground' => 'Achtergrond selecteren',
'metadataEdit.selectLogo' => 'Logo selecteren',
'metadataEdit.selectSquareArt' => 'Vierkante afbeelding selecteren',
'metadataEdit.fromUrl' => 'Vanaf URL',
'metadataEdit.uploadFile' => 'Bestand uploaden',
'metadataEdit.enterImageUrl' => 'Voer afbeeldings-URL in',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsPl implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Pokaż wybór profilu za każdym razem, gdy aplikacja jest otwierana';
@override String get confirmExitOnBack => 'Potwierdź przed wyjściem';
@override String get confirmExitOnBackDescription => 'Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji';
@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';
@override String get showNavBarLabelsDescription => 'Wyświetl tekstowe etykiety pod ikonami paska nawigacji';
@override String get liveTvDefaultFavorites => 'Domyślnie ulubione kanały';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoPl implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Kolory podstawowe';
@override String get chromaSubsampling => 'Subsampling chrominancji';
@override String get channels => 'Kanały';
@override String get subtitles => 'Napisy';
@override String get overallBitrate => 'Całkowity bitrate';
@override String get path => 'Ścieżka';
@override String get size => 'Rozmiar';
@override String get container => 'Kontener';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingPl implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Przezroczystość tła';
@override String get backgroundColor => 'Kolor tła';
@override String get position => 'Pozycja';
@override String get assOverride => 'Nadpisywanie ASS';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsPl implements TranslationsDownloadsEn {
@override String get resumeAll => 'Wznów wszystko';
@override String get deleteAll => 'Usuń wszystko';
@override String get selectVersion => 'Wybierz wersję';
@override String get allEpisodes => 'Wszystkie odcinki';
@override String get unwatchedOnly => 'Tylko nieobejrzane';
@override String nextNUnwatched({required Object count}) => 'Następne ${count} nieobejrzanych';
@override String get customAmount => 'Własna ilość...';
@override String get howManyEpisodes => 'Ile odcinków?';
@override String itemsQueued({required Object count}) => '${count} elementów dodanych do kolejki pobierania';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditPl implements TranslationsMetadataEditEn {
@override String get summary => 'Opis';
@override String get poster => 'Plakat';
@override String get background => 'Tło';
@override String get logo => 'Logo';
@override String get squareArt => 'Kwadratowy obraz';
@override String get selectPoster => 'Wybierz plakat';
@override String get selectBackground => 'Wybierz tło';
@override String get selectLogo => 'Wybierz logo';
@override String get selectSquareArt => 'Wybierz kwadratowy obraz';
@override String get fromUrl => 'Z URL';
@override String get uploadFile => 'Prześlij plik';
@override String get enterImageUrl => 'Wprowadź URL obrazu';
@@ -1560,6 +1575,8 @@ extension on TranslationsPl {
'settings.requireProfileSelectionOnOpenDescription' => 'Pokaż wybór profilu za każdym razem, gdy aplikacja jest otwierana',
'settings.confirmExitOnBack' => 'Potwierdź przed wyjściem',
'settings.confirmExitOnBackDescription' => 'Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji',
'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',
'settings.showNavBarLabelsDescription' => 'Wyświetl tekstowe etykiety pod ikonami paska nawigacji',
'settings.liveTvDefaultFavorites' => 'Domyślnie ulubione kanały',
@@ -1614,6 +1631,8 @@ extension on TranslationsPl {
'fileInfo.colorPrimaries' => 'Kolory podstawowe',
'fileInfo.chromaSubsampling' => 'Subsampling chrominancji',
'fileInfo.channels' => 'Kanały',
'fileInfo.subtitles' => 'Napisy',
'fileInfo.overallBitrate' => 'Całkowity bitrate',
'fileInfo.path' => 'Ścieżka',
'fileInfo.size' => 'Rozmiar',
'fileInfo.container' => 'Kontener',
@@ -1762,6 +1781,7 @@ extension on TranslationsPl {
'subtitlingStyling.backgroundOpacity' => 'Przezroczystość tła',
'subtitlingStyling.backgroundColor' => 'Kolor tła',
'subtitlingStyling.position' => 'Pozycja',
'subtitlingStyling.assOverride' => 'Nadpisywanie ASS',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Zaawansowane ustawienia odtwarzacza wideo',
'mpvConfig.presets' => 'Presety',
@@ -1854,13 +1874,13 @@ extension on TranslationsPl {
'about.versionLabel' => ({required Object version}) => 'Wersja ${version}',
'about.appDescription' => 'Piękny klient Plex na Flutter',
'about.viewLicensesDescription' => 'Zobacz licencje bibliotek zewnętrznych',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Nie udało się połączyć z żadnym serwerem. Sprawdź sieć i spróbuj ponownie.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Nie znaleziono serwerów dla ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Nie udało się załadować serwerów: ${error}',
'hubDetail.title' => 'Tytuł',
'hubDetail.releaseYear' => 'Rok premiery',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Data dodania',
'hubDetail.rating' => 'Ocena',
'hubDetail.noItemsFound' => 'Nie znaleziono elementów',
@@ -2013,6 +2033,12 @@ extension on TranslationsPl {
'downloads.resumeAll' => 'Wznów wszystko',
'downloads.deleteAll' => 'Usuń wszystko',
'downloads.selectVersion' => 'Wybierz wersję',
'downloads.allEpisodes' => 'Wszystkie odcinki',
'downloads.unwatchedOnly' => 'Tylko nieobejrzane',
'downloads.nextNUnwatched' => ({required Object count}) => 'Następne ${count} nieobejrzanych',
'downloads.customAmount' => 'Własna ilość...',
'downloads.howManyEpisodes' => 'Ile odcinków?',
'downloads.itemsQueued' => ({required Object count}) => '${count} elementów dodanych do kolejki pobierania',
'shaders.title' => 'Shadery',
'shaders.noShaderDescription' => 'Bez ulepszenia wideo',
'shaders.nvscalerDescription' => 'Skalowanie obrazu NVIDIA dla ostrzejszego wideo',
@@ -2141,8 +2167,12 @@ extension on TranslationsPl {
'metadataEdit.summary' => 'Opis',
'metadataEdit.poster' => 'Plakat',
'metadataEdit.background' => 'Tło',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Kwadratowy obraz',
'metadataEdit.selectPoster' => 'Wybierz plakat',
'metadataEdit.selectBackground' => 'Wybierz tło',
'metadataEdit.selectLogo' => 'Wybierz logo',
'metadataEdit.selectSquareArt' => 'Wybierz kwadratowy obraz',
'metadataEdit.fromUrl' => 'Z URL',
'metadataEdit.uploadFile' => 'Prześlij plik',
'metadataEdit.enterImageUrl' => 'Wprowadź URL obrazu',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsPt implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Mostrar seleção de perfil toda vez que o app for aberto';
@override String get confirmExitOnBack => 'Confirmar antes de sair';
@override String get confirmExitOnBackDescription => 'Mostrar diálogo de confirmação ao pressionar voltar para sair do app';
@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';
@override String get showNavBarLabelsDescription => 'Exibir rótulos de texto sob os ícones da barra de navegação';
@override String get liveTvDefaultFavorites => 'Canais favoritos por padrão';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoPt implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Primárias de Cor';
@override String get chromaSubsampling => 'Subamostragem de Croma';
@override String get channels => 'Canais';
@override String get subtitles => 'Legendas';
@override String get overallBitrate => 'Taxa de bits total';
@override String get path => 'Caminho';
@override String get size => 'Tamanho';
@override String get container => 'Container';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingPt implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Opacidade do Fundo';
@override String get backgroundColor => 'Cor de Fundo';
@override String get position => 'Posição';
@override String get assOverride => 'Substituição ASS';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsPt implements TranslationsDownloadsEn {
@override String get resumeAll => 'Retomar todos';
@override String get deleteAll => 'Excluir todos';
@override String get selectVersion => 'Selecionar versão';
@override String get allEpisodes => 'Todos os episódios';
@override String get unwatchedOnly => 'Apenas não assistidos';
@override String nextNUnwatched({required Object count}) => 'Próximos ${count} não assistidos';
@override String get customAmount => 'Quantidade personalizada...';
@override String get howManyEpisodes => 'Quantos episódios?';
@override String itemsQueued({required Object count}) => '${count} itens na fila de download';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditPt implements TranslationsMetadataEditEn {
@override String get summary => 'Sinopse';
@override String get poster => 'Poster';
@override String get background => 'Plano de Fundo';
@override String get logo => 'Logo';
@override String get squareArt => 'Imagem Quadrada';
@override String get selectPoster => 'Selecionar Poster';
@override String get selectBackground => 'Selecionar Plano de Fundo';
@override String get selectLogo => 'Selecionar Logo';
@override String get selectSquareArt => 'Selecionar Imagem Quadrada';
@override String get fromUrl => 'Da URL';
@override String get uploadFile => 'Enviar Arquivo';
@override String get enterImageUrl => 'Insira a URL da imagem';
@@ -1560,6 +1575,8 @@ extension on TranslationsPt {
'settings.requireProfileSelectionOnOpenDescription' => 'Mostrar seleção de perfil toda vez que o app for aberto',
'settings.confirmExitOnBack' => 'Confirmar antes de sair',
'settings.confirmExitOnBackDescription' => 'Mostrar diálogo de confirmação ao pressionar voltar para sair do app',
'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',
'settings.showNavBarLabelsDescription' => 'Exibir rótulos de texto sob os ícones da barra de navegação',
'settings.liveTvDefaultFavorites' => 'Canais favoritos por padrão',
@@ -1614,6 +1631,8 @@ extension on TranslationsPt {
'fileInfo.colorPrimaries' => 'Primárias de Cor',
'fileInfo.chromaSubsampling' => 'Subamostragem de Croma',
'fileInfo.channels' => 'Canais',
'fileInfo.subtitles' => 'Legendas',
'fileInfo.overallBitrate' => 'Taxa de bits total',
'fileInfo.path' => 'Caminho',
'fileInfo.size' => 'Tamanho',
'fileInfo.container' => 'Container',
@@ -1762,6 +1781,7 @@ extension on TranslationsPt {
'subtitlingStyling.backgroundOpacity' => 'Opacidade do Fundo',
'subtitlingStyling.backgroundColor' => 'Cor de Fundo',
'subtitlingStyling.position' => 'Posição',
'subtitlingStyling.assOverride' => 'Substituição ASS',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Configurações avançadas do player de vídeo',
'mpvConfig.presets' => 'Predefinições',
@@ -1854,13 +1874,13 @@ extension on TranslationsPt {
'about.versionLabel' => ({required Object version}) => 'Versão ${version}',
'about.appDescription' => 'Um belo cliente Plex para Flutter',
'about.viewLicensesDescription' => 'Ver licenças de bibliotecas de terceiros',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Falha ao conectar a qualquer servidor. Verifique sua rede e tente novamente.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Nenhum servidor encontrado para ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Falha ao carregar servidores: ${error}',
'hubDetail.title' => 'Título',
'hubDetail.releaseYear' => 'Ano de Lançamento',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Data de Adição',
'hubDetail.rating' => 'Avaliação',
'hubDetail.noItemsFound' => 'Nenhum item encontrado',
@@ -2013,6 +2033,12 @@ extension on TranslationsPt {
'downloads.resumeAll' => 'Retomar todos',
'downloads.deleteAll' => 'Excluir todos',
'downloads.selectVersion' => 'Selecionar versão',
'downloads.allEpisodes' => 'Todos os episódios',
'downloads.unwatchedOnly' => 'Apenas não assistidos',
'downloads.nextNUnwatched' => ({required Object count}) => 'Próximos ${count} não assistidos',
'downloads.customAmount' => 'Quantidade personalizada...',
'downloads.howManyEpisodes' => 'Quantos episódios?',
'downloads.itemsQueued' => ({required Object count}) => '${count} itens na fila de download',
'shaders.title' => 'Shaders',
'shaders.noShaderDescription' => 'Sem aprimoramento de vídeo',
'shaders.nvscalerDescription' => 'Escalonamento de imagem NVIDIA para vídeo mais nítido',
@@ -2141,8 +2167,12 @@ extension on TranslationsPt {
'metadataEdit.summary' => 'Sinopse',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Plano de Fundo',
'metadataEdit.logo' => 'Logo',
'metadataEdit.squareArt' => 'Imagem Quadrada',
'metadataEdit.selectPoster' => 'Selecionar Poster',
'metadataEdit.selectBackground' => 'Selecionar Plano de Fundo',
'metadataEdit.selectLogo' => 'Selecionar Logo',
'metadataEdit.selectSquareArt' => 'Selecionar Imagem Quadrada',
'metadataEdit.fromUrl' => 'Da URL',
'metadataEdit.uploadFile' => 'Enviar Arquivo',
'metadataEdit.enterImageUrl' => 'Insira a URL da imagem',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsRu implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Показывать выбор профиля при каждом открытии приложения';
@override String get confirmExitOnBack => 'Подтверждать выход';
@override String get confirmExitOnBackDescription => 'Показывать диалог подтверждения при нажатии «назад» для выхода из приложения';
@override String get autoHidePerformanceOverlay => 'Автоскрытие оверлея производительности';
@override String get autoHidePerformanceOverlayDescription => 'Скрывать оверлей производительности вместе с элементами управления воспроизведением';
@override String get showNavBarLabels => 'Показывать подписи панели навигации';
@override String get showNavBarLabelsDescription => 'Отображать текстовые подписи под иконками панели навигации';
@override String get liveTvDefaultFavorites => 'Избранные каналы по умолчанию';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoRu implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Цветовые первичные';
@override String get chromaSubsampling => 'Субдискретизация цветности';
@override String get channels => 'Каналы';
@override String get subtitles => 'Субтитры';
@override String get overallBitrate => 'Общий битрейт';
@override String get path => 'Путь';
@override String get size => 'Размер';
@override String get container => 'Контейнер';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingRu implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Прозрачность фона';
@override String get backgroundColor => 'Цвет фона';
@override String get position => 'Позиция';
@override String get assOverride => 'Переопределение ASS';
}
// Path: mpvConfig
@@ -994,6 +999,12 @@ class _TranslationsDownloadsRu implements TranslationsDownloadsEn {
@override String get resumeAll => 'Возобновить все';
@override String get deleteAll => 'Удалить все';
@override String get selectVersion => 'Выбрать версию';
@override String get allEpisodes => 'Все эпизоды';
@override String get unwatchedOnly => 'Только непросмотренные';
@override String nextNUnwatched({required Object count}) => 'Следующие ${count} непросмотренных';
@override String get customAmount => 'Указать количество...';
@override String get howManyEpisodes => 'Сколько эпизодов?';
@override String itemsQueued({required Object count}) => '${count} элементов добавлено в очередь загрузки';
}
// Path: shaders
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditRu implements TranslationsMetadataEditEn {
@override String get summary => 'Описание';
@override String get poster => 'Постер';
@override String get background => 'Фон';
@override String get logo => 'Логотип';
@override String get squareArt => 'Квадратное изображение';
@override String get selectPoster => 'Выбрать постер';
@override String get selectBackground => 'Выбрать фон';
@override String get selectLogo => 'Выбрать логотип';
@override String get selectSquareArt => 'Выбрать квадратное изображение';
@override String get fromUrl => 'По URL';
@override String get uploadFile => 'Загрузить файл';
@override String get enterImageUrl => 'Введите URL изображения';
@@ -1560,6 +1575,8 @@ extension on TranslationsRu {
'settings.requireProfileSelectionOnOpenDescription' => 'Показывать выбор профиля при каждом открытии приложения',
'settings.confirmExitOnBack' => 'Подтверждать выход',
'settings.confirmExitOnBackDescription' => 'Показывать диалог подтверждения при нажатии «назад» для выхода из приложения',
'settings.autoHidePerformanceOverlay' => 'Автоскрытие оверлея производительности',
'settings.autoHidePerformanceOverlayDescription' => 'Скрывать оверлей производительности вместе с элементами управления воспроизведением',
'settings.showNavBarLabels' => 'Показывать подписи панели навигации',
'settings.showNavBarLabelsDescription' => 'Отображать текстовые подписи под иконками панели навигации',
'settings.liveTvDefaultFavorites' => 'Избранные каналы по умолчанию',
@@ -1614,6 +1631,8 @@ extension on TranslationsRu {
'fileInfo.colorPrimaries' => 'Цветовые первичные',
'fileInfo.chromaSubsampling' => 'Субдискретизация цветности',
'fileInfo.channels' => 'Каналы',
'fileInfo.subtitles' => 'Субтитры',
'fileInfo.overallBitrate' => 'Общий битрейт',
'fileInfo.path' => 'Путь',
'fileInfo.size' => 'Размер',
'fileInfo.container' => 'Контейнер',
@@ -1762,6 +1781,7 @@ extension on TranslationsRu {
'subtitlingStyling.backgroundOpacity' => 'Прозрачность фона',
'subtitlingStyling.backgroundColor' => 'Цвет фона',
'subtitlingStyling.position' => 'Позиция',
'subtitlingStyling.assOverride' => 'Переопределение ASS',
'mpvConfig.title' => 'mpv.conf',
'mpvConfig.description' => 'Расширенные настройки видеоплеера',
'mpvConfig.presets' => 'Пресеты',
@@ -1854,13 +1874,13 @@ extension on TranslationsRu {
'about.versionLabel' => ({required Object version}) => 'Версия ${version}',
'about.appDescription' => 'Красивый клиент Plex на Flutter',
'about.viewLicensesDescription' => 'Просмотр лицензий сторонних библиотек',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Не удалось подключиться ни к одному серверу. Проверьте сеть и попробуйте снова.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Серверы не найдены для ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Не удалось загрузить серверы: ${error}',
'hubDetail.title' => 'Название',
'hubDetail.releaseYear' => 'Год выпуска',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Дата добавления',
'hubDetail.rating' => 'Рейтинг',
'hubDetail.noItemsFound' => 'Элементы не найдены',
@@ -2013,6 +2033,12 @@ extension on TranslationsRu {
'downloads.resumeAll' => 'Возобновить все',
'downloads.deleteAll' => 'Удалить все',
'downloads.selectVersion' => 'Выбрать версию',
'downloads.allEpisodes' => 'Все эпизоды',
'downloads.unwatchedOnly' => 'Только непросмотренные',
'downloads.nextNUnwatched' => ({required Object count}) => 'Следующие ${count} непросмотренных',
'downloads.customAmount' => 'Указать количество...',
'downloads.howManyEpisodes' => 'Сколько эпизодов?',
'downloads.itemsQueued' => ({required Object count}) => '${count} элементов добавлено в очередь загрузки',
'shaders.title' => 'Шейдеры',
'shaders.noShaderDescription' => 'Без улучшения видео',
'shaders.nvscalerDescription' => 'Масштабирование NVIDIA для более чёткого видео',
@@ -2141,8 +2167,12 @@ extension on TranslationsRu {
'metadataEdit.summary' => 'Описание',
'metadataEdit.poster' => 'Постер',
'metadataEdit.background' => 'Фон',
'metadataEdit.logo' => 'Логотип',
'metadataEdit.squareArt' => 'Квадратное изображение',
'metadataEdit.selectPoster' => 'Выбрать постер',
'metadataEdit.selectBackground' => 'Выбрать фон',
'metadataEdit.selectLogo' => 'Выбрать логотип',
'metadataEdit.selectSquareArt' => 'Выбрать квадратное изображение',
'metadataEdit.fromUrl' => 'По URL',
'metadataEdit.uploadFile' => 'Загрузить файл',
'metadataEdit.enterImageUrl' => 'Введите URL изображения',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsSv implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => 'Visa profilval varje gång appen öppnas';
@override String get confirmExitOnBack => 'Bekräfta innan avslut';
@override String get confirmExitOnBackDescription => 'Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen';
@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';
@override String get showNavBarLabelsDescription => 'Visa textetiketter under navigeringsfältets ikoner';
@override String get liveTvDefaultFavorites => 'Standard till favoritkanaler';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoSv implements TranslationsFileInfoEn {
@override String get colorPrimaries => 'Färggrunder';
@override String get chromaSubsampling => 'Kroma-undersampling';
@override String get channels => 'Kanaler';
@override String get subtitles => 'Undertexter';
@override String get overallBitrate => 'Total bithastighet';
@override String get path => 'Sökväg';
@override String get size => 'Storlek';
@override String get container => 'Container';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingSv implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => 'Bakgrundsopacitet';
@override String get backgroundColor => 'Bakgrundsfärg';
@override String get position => 'Position';
@override String get assOverride => 'ASS-åsidosättning';
}
// Path: mpvConfig
@@ -870,6 +875,12 @@ class _TranslationsDownloadsSv implements TranslationsDownloadsEn {
@override String get resumeAll => 'Återuppta alla';
@override String get deleteAll => 'Ta bort alla';
@override String get selectVersion => 'Välj version';
@override String get allEpisodes => 'Alla avsnitt';
@override String get unwatchedOnly => 'Endast osedda';
@override String nextNUnwatched({required Object count}) => 'Nästa ${count} osedda';
@override String get customAmount => 'Ange antal...';
@override String get howManyEpisodes => 'Hur många avsnitt?';
@override String itemsQueued({required Object count}) => '${count} objekt köade för nedladdning';
}
// Path: playlists
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditSv implements TranslationsMetadataEditEn {
@override String get summary => 'Sammanfattning';
@override String get poster => 'Poster';
@override String get background => 'Bakgrund';
@override String get logo => 'Logotyp';
@override String get squareArt => 'Kvadratisk bild';
@override String get selectPoster => 'Välj poster';
@override String get selectBackground => 'Välj bakgrund';
@override String get selectLogo => 'Välj logotyp';
@override String get selectSquareArt => 'Välj kvadratisk bild';
@override String get fromUrl => 'Från URL';
@override String get uploadFile => 'Ladda upp fil';
@override String get enterImageUrl => 'Ange bild-URL';
@@ -1560,6 +1575,8 @@ extension on TranslationsSv {
'settings.requireProfileSelectionOnOpenDescription' => 'Visa profilval varje gång appen öppnas',
'settings.confirmExitOnBack' => 'Bekräfta innan avslut',
'settings.confirmExitOnBackDescription' => 'Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen',
'settings.autoHidePerformanceOverlay' => 'Dölj prestandaöverlagring automatiskt',
'settings.autoHidePerformanceOverlayDescription' => 'Tona prestandaöverlagringen med uppspelningskontrollerna',
'settings.showNavBarLabels' => 'Visa navigeringsfältets etiketter',
'settings.showNavBarLabelsDescription' => 'Visa textetiketter under navigeringsfältets ikoner',
'settings.liveTvDefaultFavorites' => 'Standard till favoritkanaler',
@@ -1614,6 +1631,8 @@ extension on TranslationsSv {
'fileInfo.colorPrimaries' => 'Färggrunder',
'fileInfo.chromaSubsampling' => 'Kroma-undersampling',
'fileInfo.channels' => 'Kanaler',
'fileInfo.subtitles' => 'Undertexter',
'fileInfo.overallBitrate' => 'Total bithastighet',
'fileInfo.path' => 'Sökväg',
'fileInfo.size' => 'Storlek',
'fileInfo.container' => 'Container',
@@ -1762,6 +1781,7 @@ extension on TranslationsSv {
'subtitlingStyling.backgroundOpacity' => 'Bakgrundsopacitet',
'subtitlingStyling.backgroundColor' => 'Bakgrundsfärg',
'subtitlingStyling.position' => 'Position',
'subtitlingStyling.assOverride' => 'ASS-åsidosättning',
'mpvConfig.title' => 'mpv-konfiguration',
'mpvConfig.description' => 'Avancerade videospelares inställningar',
'mpvConfig.presets' => 'Förval',
@@ -1854,13 +1874,13 @@ extension on TranslationsSv {
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
'about.appDescription' => 'En vacker Plex-klient för Flutter',
'about.viewLicensesDescription' => 'Visa licenser för tredjepartsbibliotek',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => 'Misslyckades att ansluta till servrar. Kontrollera ditt nätverk och försök igen.',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => 'Inga servrar hittades för ${username} (${email})',
'serverSelection.failedToLoadServers' => ({required Object error}) => 'Misslyckades att ladda servrar: ${error}',
'hubDetail.title' => 'Titel',
'hubDetail.releaseYear' => 'Utgivningsår',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => 'Datum tillagd',
'hubDetail.rating' => 'Betyg',
'hubDetail.noItemsFound' => 'Inga objekt hittades',
@@ -1916,6 +1936,12 @@ extension on TranslationsSv {
'downloads.resumeAll' => 'Återuppta alla',
'downloads.deleteAll' => 'Ta bort alla',
'downloads.selectVersion' => 'Välj version',
'downloads.allEpisodes' => 'Alla avsnitt',
'downloads.unwatchedOnly' => 'Endast osedda',
'downloads.nextNUnwatched' => ({required Object count}) => 'Nästa ${count} osedda',
'downloads.customAmount' => 'Ange antal...',
'downloads.howManyEpisodes' => 'Hur många avsnitt?',
'downloads.itemsQueued' => ({required Object count}) => '${count} objekt köade för nedladdning',
'playlists.title' => 'Spellistor',
'playlists.noPlaylists' => 'Inga spellistor hittades',
'playlists.create' => 'Skapa spellista',
@@ -2141,8 +2167,12 @@ extension on TranslationsSv {
'metadataEdit.summary' => 'Sammanfattning',
'metadataEdit.poster' => 'Poster',
'metadataEdit.background' => 'Bakgrund',
'metadataEdit.logo' => 'Logotyp',
'metadataEdit.squareArt' => 'Kvadratisk bild',
'metadataEdit.selectPoster' => 'Välj poster',
'metadataEdit.selectBackground' => 'Välj bakgrund',
'metadataEdit.selectLogo' => 'Välj logotyp',
'metadataEdit.selectSquareArt' => 'Välj kvadratisk bild',
'metadataEdit.fromUrl' => 'Från URL',
'metadataEdit.uploadFile' => 'Ladda upp fil',
'metadataEdit.enterImageUrl' => 'Ange bild-URL',
+32 -2
View File
@@ -342,6 +342,8 @@ class _TranslationsSettingsZh implements TranslationsSettingsEn {
@override String get requireProfileSelectionOnOpenDescription => '每次打开应用时显示配置文件选择';
@override String get confirmExitOnBack => '退出前确认';
@override String get confirmExitOnBackDescription => '按返回键退出应用时显示确认对话框';
@override String get autoHidePerformanceOverlay => '自动隐藏性能叠加层';
@override String get autoHidePerformanceOverlayDescription => '性能叠加层随播放控件一起淡入淡出';
@override String get showNavBarLabels => '显示导航栏标签';
@override String get showNavBarLabelsDescription => '在导航栏图标下方显示文字标签';
@override String get liveTvDefaultFavorites => '默认显示收藏频道';
@@ -405,6 +407,8 @@ class _TranslationsFileInfoZh implements TranslationsFileInfoEn {
@override String get colorPrimaries => '颜色原色';
@override String get chromaSubsampling => '色度子采样';
@override String get channels => '声道';
@override String get subtitles => '字幕';
@override String get overallBitrate => '总比特率';
@override String get path => '路径';
@override String get size => '大小';
@override String get container => '容器';
@@ -610,6 +614,7 @@ class _TranslationsSubtitlingStylingZh implements TranslationsSubtitlingStylingE
@override String get backgroundOpacity => '背景不透明度';
@override String get backgroundColor => '背景颜色';
@override String get position => '位置';
@override String get assOverride => 'ASS 样式覆盖';
}
// Path: mpvConfig
@@ -870,6 +875,12 @@ class _TranslationsDownloadsZh implements TranslationsDownloadsEn {
@override String get resumeAll => '全部继续';
@override String get deleteAll => '全部删除';
@override String get selectVersion => '选择版本';
@override String get allEpisodes => '所有剧集';
@override String get unwatchedOnly => '仅未观看';
@override String nextNUnwatched({required Object count}) => '接下来 ${count} 集未观看';
@override String get customAmount => '自定义数量...';
@override String get howManyEpisodes => '下载几集?';
@override String itemsQueued({required Object count}) => '${count} 个项目已加入下载队列';
}
// Path: playlists
@@ -1101,8 +1112,12 @@ class _TranslationsMetadataEditZh implements TranslationsMetadataEditEn {
@override String get summary => '简介';
@override String get poster => '海报';
@override String get background => '背景';
@override String get logo => '标志';
@override String get squareArt => '方形图片';
@override String get selectPoster => '选择海报';
@override String get selectBackground => '选择背景';
@override String get selectLogo => '选择标志';
@override String get selectSquareArt => '选择方形图片';
@override String get fromUrl => '从 URL';
@override String get uploadFile => '上传文件';
@override String get enterImageUrl => '输入图片 URL';
@@ -1560,6 +1575,8 @@ extension on TranslationsZh {
'settings.requireProfileSelectionOnOpenDescription' => '每次打开应用时显示配置文件选择',
'settings.confirmExitOnBack' => '退出前确认',
'settings.confirmExitOnBackDescription' => '按返回键退出应用时显示确认对话框',
'settings.autoHidePerformanceOverlay' => '自动隐藏性能叠加层',
'settings.autoHidePerformanceOverlayDescription' => '性能叠加层随播放控件一起淡入淡出',
'settings.showNavBarLabels' => '显示导航栏标签',
'settings.showNavBarLabelsDescription' => '在导航栏图标下方显示文字标签',
'settings.liveTvDefaultFavorites' => '默认显示收藏频道',
@@ -1614,6 +1631,8 @@ extension on TranslationsZh {
'fileInfo.colorPrimaries' => '颜色原色',
'fileInfo.chromaSubsampling' => '色度子采样',
'fileInfo.channels' => '声道',
'fileInfo.subtitles' => '字幕',
'fileInfo.overallBitrate' => '总比特率',
'fileInfo.path' => '路径',
'fileInfo.size' => '大小',
'fileInfo.container' => '容器',
@@ -1762,6 +1781,7 @@ extension on TranslationsZh {
'subtitlingStyling.backgroundOpacity' => '背景不透明度',
'subtitlingStyling.backgroundColor' => '背景颜色',
'subtitlingStyling.position' => '位置',
'subtitlingStyling.assOverride' => 'ASS 样式覆盖',
'mpvConfig.title' => 'mpv 配置',
'mpvConfig.description' => '高级视频播放器设置',
'mpvConfig.presets' => '预设',
@@ -1854,13 +1874,13 @@ extension on TranslationsZh {
'about.versionLabel' => ({required Object version}) => '版本 ${version}',
'about.appDescription' => '一款精美的 Flutter Plex 客户端',
'about.viewLicensesDescription' => '查看第三方库的许可证',
_ => null,
} ?? switch (path) {
'serverSelection.allServerConnectionsFailed' => '无法连接到任何服务器。请检查你的网络并重试。',
'serverSelection.noServersFoundForAccount' => ({required Object username, required Object email}) => '未找到 ${username} (${email}) 的服务器',
'serverSelection.failedToLoadServers' => ({required Object error}) => '无法加载服务器: ${error}',
'hubDetail.title' => '标题',
'hubDetail.releaseYear' => '发行年份',
_ => null,
} ?? switch (path) {
'hubDetail.dateAdded' => '添加日期',
'hubDetail.rating' => '评分',
'hubDetail.noItemsFound' => '未找到项目',
@@ -1916,6 +1936,12 @@ extension on TranslationsZh {
'downloads.resumeAll' => '全部继续',
'downloads.deleteAll' => '全部删除',
'downloads.selectVersion' => '选择版本',
'downloads.allEpisodes' => '所有剧集',
'downloads.unwatchedOnly' => '仅未观看',
'downloads.nextNUnwatched' => ({required Object count}) => '接下来 ${count} 集未观看',
'downloads.customAmount' => '自定义数量...',
'downloads.howManyEpisodes' => '下载几集?',
'downloads.itemsQueued' => ({required Object count}) => '${count} 个项目已加入下载队列',
'playlists.title' => '播放列表',
'playlists.noPlaylists' => '未找到播放列表',
'playlists.create' => '创建播放列表',
@@ -2141,8 +2167,12 @@ extension on TranslationsZh {
'metadataEdit.summary' => '简介',
'metadataEdit.poster' => '海报',
'metadataEdit.background' => '背景',
'metadataEdit.logo' => '标志',
'metadataEdit.squareArt' => '方形图片',
'metadataEdit.selectPoster' => '选择海报',
'metadataEdit.selectBackground' => '选择背景',
'metadataEdit.selectLogo' => '选择标志',
'metadataEdit.selectSquareArt' => '选择方形图片',
'metadataEdit.fromUrl' => '从 URL',
'metadataEdit.uploadFile' => '上传文件',
'metadataEdit.enterImageUrl' => '输入图片 URL',
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "Visa profilval varje gång appen öppnas",
"confirmExitOnBack": "Bekräfta innan avslut",
"confirmExitOnBackDescription": "Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen",
"autoHidePerformanceOverlay": "Dölj prestandaöverlagring automatiskt",
"autoHidePerformanceOverlayDescription": "Tona prestandaöverlagringen med uppspelningskontrollerna",
"showNavBarLabels": "Visa navigeringsfältets etiketter",
"showNavBarLabelsDescription": "Visa textetiketter under navigeringsfältets ikoner",
"liveTvDefaultFavorites": "Standard till favoritkanaler",
@@ -285,6 +287,8 @@
"colorPrimaries": "Färggrunder",
"chromaSubsampling": "Kroma-undersampling",
"channels": "Kanaler",
"subtitles": "Undertexter",
"overallBitrate": "Total bithastighet",
"path": "Sökväg",
"size": "Storlek",
"container": "Container",
@@ -448,7 +452,8 @@
"borderColor": "Kantfärg",
"backgroundOpacity": "Bakgrundsopacitet",
"backgroundColor": "Bakgrundsfärg",
"position": "Position"
"position": "Position",
"assOverride": "ASS-åsidosättning"
},
"mpvConfig": {
"title": "mpv-konfiguration",
@@ -630,7 +635,13 @@
"pauseAll": "Pausa alla",
"resumeAll": "Återuppta alla",
"deleteAll": "Ta bort alla",
"selectVersion": "Välj version"
"selectVersion": "Välj version",
"allEpisodes": "Alla avsnitt",
"unwatchedOnly": "Endast osedda",
"nextNUnwatched": "Nästa ${count} osedda",
"customAmount": "Ange antal...",
"howManyEpisodes": "Hur många avsnitt?",
"itemsQueued": "${count} objekt köade för nedladdning"
},
"playlists": {
"title": "Spellistor",
@@ -878,8 +889,12 @@
"summary": "Sammanfattning",
"poster": "Poster",
"background": "Bakgrund",
"logo": "Logotyp",
"squareArt": "Kvadratisk bild",
"selectPoster": "Välj poster",
"selectBackground": "Välj bakgrund",
"selectLogo": "Välj logotyp",
"selectSquareArt": "Välj kvadratisk bild",
"fromUrl": "Från URL",
"uploadFile": "Ladda upp fil",
"enterImageUrl": "Ange bild-URL",
+17 -2
View File
@@ -223,6 +223,8 @@
"requireProfileSelectionOnOpenDescription": "每次打开应用时显示配置文件选择",
"confirmExitOnBack": "退出前确认",
"confirmExitOnBackDescription": "按返回键退出应用时显示确认对话框",
"autoHidePerformanceOverlay": "自动隐藏性能叠加层",
"autoHidePerformanceOverlayDescription": "性能叠加层随播放控件一起淡入淡出",
"showNavBarLabels": "显示导航栏标签",
"showNavBarLabelsDescription": "在导航栏图标下方显示文字标签",
"liveTvDefaultFavorites": "默认显示收藏频道",
@@ -285,6 +287,8 @@
"colorPrimaries": "颜色原色",
"chromaSubsampling": "色度子采样",
"channels": "声道",
"subtitles": "字幕",
"overallBitrate": "总比特率",
"path": "路径",
"size": "大小",
"container": "容器",
@@ -448,7 +452,8 @@
"borderColor": "边框颜色",
"backgroundOpacity": "背景不透明度",
"backgroundColor": "背景颜色",
"position": "位置"
"position": "位置",
"assOverride": "ASS 样式覆盖"
},
"mpvConfig": {
"title": "mpv 配置",
@@ -630,7 +635,13 @@
"pauseAll": "全部暂停",
"resumeAll": "全部继续",
"deleteAll": "全部删除",
"selectVersion": "选择版本"
"selectVersion": "选择版本",
"allEpisodes": "所有剧集",
"unwatchedOnly": "仅未观看",
"nextNUnwatched": "接下来 ${count} 集未观看",
"customAmount": "自定义数量...",
"howManyEpisodes": "下载几集?",
"itemsQueued": "${count} 个项目已加入下载队列"
},
"playlists": {
"title": "播放列表",
@@ -878,8 +889,12 @@
"summary": "简介",
"poster": "海报",
"background": "背景",
"logo": "标志",
"squareArt": "方形图片",
"selectPoster": "选择海报",
"selectBackground": "选择背景",
"selectLogo": "选择标志",
"selectSquareArt": "选择方形图片",
"fromUrl": "从 URL",
"uploadFile": "上传文件",
"enterImageUrl": "输入图片 URL",
+35 -18
View File
@@ -56,6 +56,8 @@ import 'package:package_info_plus/package_info_plus.dart';
const bool _enableSentry = bool.fromEnvironment('ENABLE_SENTRY', defaultValue: false);
const String gitCommit = String.fromEnvironment('GIT_COMMIT');
const String _sentryEnvironment = String.fromEnvironment('SENTRY_ENVIRONMENT');
const String _plexTokenDefine = String.fromEnvironment('PLEX_TOKEN');
// Workaround for Flutter bug #177992: iPadOS 26.1+ misinterprets fake touch events
// at (0,0) as barrier taps, causing modals to dismiss immediately.
@@ -86,6 +88,7 @@ Future<void> main() async {
options.release = gitCommit.isNotEmpty
? 'plezy@${gitCommit.substring(0, 7)}'
: 'plezy@${packageInfo.version}+${packageInfo.buildNumber}';
if (_sentryEnvironment.isNotEmpty) options.environment = _sentryEnvironment;
options.tracesSampleRate = 0;
options.attachStacktrace = true;
options.enableAutoSessionTracking = false;
@@ -143,6 +146,12 @@ Future<void> _bootstrapApp() async {
// Wait for all parallel services to complete
await Future.wait(futures);
// Seed Plex token from dart-define (used by screenshot automation)
if (_plexTokenDefine.isNotEmpty) {
final storage = await StorageService.getInstance();
await storage.savePlexToken(_plexTokenDefine);
}
// Initialize logger level based on debug setting
final debugEnabled = settings.getEnableDebugLogging();
setLoggerLevel(debugEnabled);
@@ -196,26 +205,33 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
final instance = SettingsService.instanceOrNull;
if (instance != null && !instance.getCrashReporting()) return null;
// Drop harmless Windows file-lock errors from cache manager cleanup
// Drop unactionable errors
var exceptions = event.exceptions;
if (exceptions != null &&
exceptions.any(
(e) =>
e.type == 'FileSystemException' &&
e.value != null &&
e.value!.contains('plexImageCache') &&
e.value!.contains('errno = 32'),
)) {
return null;
}
// Drop DBusServiceUnknownException from Linux without NetworkManager
if (exceptions != null && exceptions.any((e) => e.type == 'DBusServiceUnknownException')) {
return null;
}
// Scrub Plex tokens and server URLs from exception messages
if (exceptions != null) {
bool shouldDrop(SentryException e) {
final v = e.value;
// Windows file-lock errors from cache manager cleanup
if (e.type == 'FileSystemException' &&
v != null &&
v.contains('plexImageCache') &&
v.contains('errno = 32')) {
return true;
}
// Linux without DBus/NetworkManager
if (e.type == 'DBusServiceUnknownException' ||
(v != null && v.contains('system_bus_socket'))) {
return true;
}
// Device out of disk space
if (v != null && (v.contains('SQLITE_FULL') || v.contains('No space left on device'))) {
return true;
}
return false;
}
if (exceptions.any(shouldDrop)) return null;
// Scrub Plex tokens and server URLs from exception messages
for (final e in exceptions) {
final value = e.value;
if (value != null) {
@@ -340,6 +356,7 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
PlexApiCache.initialize(_appDatabase);
_downloadManager = DownloadManagerService(database: _appDatabase, storageService: DownloadStorageService.instance);
_downloadManager.setClientResolver(_serverManager.getClient);
_downloadManager.recoveryFuture = _downloadManager.recoverInterruptedDownloads();
_offlineWatchSyncService = OfflineWatchSyncService(database: _appDatabase, serverManager: _serverManager);
+4 -2
View File
@@ -1,3 +1,5 @@
import '../utils/json_utils.dart';
/// Represents a Live TV channel from the EPG
class LiveTvChannel {
final String key;
@@ -41,10 +43,10 @@ class LiveTvChannel {
thumb: json['thumb'] as String?,
art: json['art'] as String?,
number: json['number'] as String? ?? json['channelNumber'] as String? ?? json['channelVcn']?.toString() ?? json['vcn']?.toString(),
hd: json['hd'] == true || json['hd'] == 1,
hd: flexibleBool(json['hd']),
lineup: json['lineup'] as String?,
slug: json['slug'] as String?,
drm: json['drm'] == true || json['drm'] == 1,
drm: flexibleBool(json['drm']),
);
}
+3 -1
View File
@@ -1,3 +1,5 @@
import '../utils/json_utils.dart';
/// Represents a Plex Live TV DVR device (e.g., HDHomeRun tuner, IPTV provider)
class LiveTvDvr {
final String key;
@@ -74,7 +76,7 @@ class ChannelMapping {
return ChannelMapping(
channelKey: json['channelKey'] as String?,
deviceIdentifier: json['deviceIdentifier'] as String?,
enabled: json['enabled'] == true || json['enabled'] == 1 || json['enabled'] == '1',
enabled: flexibleBool(json['enabled']),
lineupIdentifier: json['lineupIdentifier'] as String?,
);
}
+4 -2
View File
@@ -1,3 +1,5 @@
import '../utils/json_utils.dart';
/// Represents an EPG program entry (what's on a channel at a given time)
class LiveTvProgram {
final String? key;
@@ -66,8 +68,8 @@ class LiveTvProgram {
channelIdentifier:
json['channelIdentifier'] as String? ?? media?['channelIdentifier']?.toString() ?? channel?['id']?.toString(),
channelCallSign: json['channelCallSign'] as String? ?? media?['channelCallSign'] as String?,
live: json['live'] == true || json['live'] == 1 || json['live'] == '1',
premiere: json['premiere'] == true || json['premiere'] == 1 || json['premiere'] == '1',
live: flexibleBool(json['live']),
premiere: flexibleBool(json['premiere']),
);
}
+17 -2
View File
@@ -1,4 +1,5 @@
import '../utils/formatters.dart';
import 'plex_media_info.dart';
class PlexFileInfo {
// Media level properties
@@ -30,8 +31,13 @@ class PlexFileInfo {
final String? chromaSubsampling;
final double? frameRate;
final int? bitDepth;
final int? videoBitrate;
final String? audioChannelLayout;
// Multi-track support
final List<PlexAudioTrack> audioTracks;
final List<PlexSubtitleTrack> subtitleTracks;
PlexFileInfo({
this.container,
this.videoCodec,
@@ -57,7 +63,10 @@ class PlexFileInfo {
this.chromaSubsampling,
this.frameRate,
this.bitDepth,
this.videoBitrate,
this.audioChannelLayout,
this.audioTracks = const [],
this.subtitleTracks = const [],
});
/// Format file size in human-readable format (GB, MB, KB, bytes)
@@ -78,10 +87,16 @@ class PlexFileInfo {
return hours > 0 ? '${hours}h ${minutes}m ${secs}s' : '${minutes}m ${secs}s';
}
/// Format bitrate in Mbps or Kbps
/// Format overall bitrate in Mbps or kbps (Plex API returns kbps)
String get bitrateFormatted {
if (bitrate == null) return 'Unknown';
return ByteFormatter.formatBitrateBps(bitrate!);
return ByteFormatter.formatBitrate(bitrate!);
}
/// Format video stream bitrate in Mbps or kbps
String get videoBitrateFormatted {
if (videoBitrate == null) return 'Unknown';
return ByteFormatter.formatBitrate(videoBitrate!);
}
/// Format resolution as widthxheight
+2 -1
View File
@@ -1,3 +1,4 @@
import '../utils/json_utils.dart';
import '../widgets/plex_optimized_image.dart' show kBlurArtwork, obfuscateText;
import 'plex_metadata.dart';
@@ -64,7 +65,7 @@ class PlexHub {
type: json['type'] as String? ?? 'hub',
hubIdentifier: json['hubIdentifier'] as String?,
size: (json['size'] as num?)?.toInt() ?? metadataList.length,
more: json['more'] == true || json['more'] == 1,
more: flexibleBool(json['more']),
items: metadataList,
);
}
+5 -4
View File
@@ -1,4 +1,5 @@
import '../utils/app_logger.dart';
import '../utils/json_utils.dart';
import '../utils/codec_utils.dart';
import '../utils/track_label_builder.dart' show buildTrackLabel;
@@ -45,7 +46,7 @@ class PlexMediaInfo {
title: s['title'] as String?,
displayTitle: s['displayTitle'] as String?,
channels: s['channels'] as int?,
selected: s['selected'] == 1 || s['selected'] == true,
selected: flexibleBool(s['selected']),
));
} else if (streamType == 3) {
subtitleTracks.add(PlexSubtitleTrack(
@@ -56,8 +57,8 @@ class PlexMediaInfo {
languageCode: s['languageCode'] as String?,
title: s['title'] as String?,
displayTitle: s['displayTitle'] as String?,
selected: s['selected'] == 1 || s['selected'] == true,
forced: s['forced'] == 1 || s['forced'] == true,
selected: flexibleBool(s['selected']),
forced: flexibleBool(s['forced']),
key: s['key'] as String?,
));
}
@@ -180,7 +181,7 @@ class PlexSubtitleTrack with _TrackLabelMixin {
final ext = CodecUtils.getSubtitleExtension(codec);
// Construct URL with authentication token
return '$baseUrl$key.$ext?X-Plex-Token=$token';
return '$baseUrl$key.$ext?encoding=utf-8&X-Plex-Token=$token';
}
}
+6 -4
View File
@@ -1,3 +1,5 @@
import '../utils/json_utils.dart';
class PlexSubtitleSearchResult {
final int id;
final String key;
@@ -40,10 +42,10 @@ class PlexSubtitleSearchResult {
providerTitle: json['providerTitle']?.toString(),
title: json['title']?.toString(),
displayTitle: json['displayTitle']?.toString(),
hearingImpaired: json['hearingImpaired'] == 1 || json['hearingImpaired'] == true,
perfectMatch: json['perfectMatch'] == 1 || json['perfectMatch'] == true,
downloaded: json['downloaded'] == 1 || json['downloaded'] == true,
forced: json['forced'] == 1 || json['forced'] == true,
hearingImpaired: flexibleBool(json['hearingImpaired']),
perfectMatch: flexibleBool(json['perfectMatch']),
downloaded: flexibleBool(json['downloaded']),
forced: flexibleBool(json['forced']),
);
}
+6
View File
@@ -117,6 +117,12 @@ class PlayerState {
);
}
/// Whether media is actively playing (not paused, not at EOF).
///
/// mpv keeps [playing] true at EOF, so raw [playing] alone is unreliable
/// for gating wakelock, media controls, progress tracking, etc.
bool get isActive => playing && !completed;
@override
String toString() => 'PlayerState(playing: $playing, position: $position, duration: $duration, seekable: $seekable)';
}
+43 -5
View File
@@ -15,6 +15,10 @@ import '../services/plex_client.dart';
import '../utils/app_logger.dart';
import '../utils/global_key_utils.dart';
/// Filter mode for batch downloads (shows/seasons).
/// Use [all] to download everything, or [unwatched] with an optional maxCount.
enum DownloadFilter { all, unwatched }
/// Holds Plex thumb path reference for downloaded artwork.
/// The actual file path is computed from the hash of serverId + thumb path.
class DownloadedArtwork {
@@ -599,6 +603,8 @@ class DownloadProvider extends ChangeNotifier {
PlexMetadata metadata,
PlexClient client, {
DownloadVersionConfig? versionConfig,
DownloadFilter filter = DownloadFilter.all,
int? maxCount,
}) async {
final globalKey = metadata.globalKey;
final config = versionConfig ?? DownloadVersionConfig();
@@ -620,10 +626,10 @@ class DownloadProvider extends ChangeNotifier {
return queued ? 1 : 0;
} else if (mt == PlexMediaType.show) {
_metadata[globalKey] = metadata;
return await _queueShowDownload(metadata, client, versionConfig: config);
return await _queueShowDownload(metadata, client, versionConfig: config, filter: filter, maxCount: maxCount);
} else if (mt == PlexMediaType.season) {
_metadata[globalKey] = metadata;
return await _queueSeasonDownload(metadata, client, versionConfig: config);
return await _queueSeasonDownload(metadata, client, versionConfig: config, filter: filter, maxCount: maxCount);
} else {
throw Exception('Cannot download ${metadata.type}');
}
@@ -633,6 +639,29 @@ class DownloadProvider extends ChangeNotifier {
}
}
/// Queue all video items from a playlist for download.
/// Returns the number of items queued.
Future<int> queuePlaylistDownload(
List<PlexMetadata> items,
PlexClient client, {
DownloadFilter filter = DownloadFilter.all,
}) async {
if (await DownloadManagerService.shouldBlockDownloadOnCellular()) {
throw CellularDownloadBlockedException();
}
int count = 0;
for (final item in items) {
final mt = item.mediaType;
if (mt != PlexMediaType.movie && mt != PlexMediaType.episode) continue;
if (filter == DownloadFilter.unwatched && item.isWatched && !item.hasActiveProgress) continue;
final queued = await _queueSingleDownload(item, client);
if (queued) count++;
}
return count;
}
/// Queue a single movie or episode for download.
/// Returns true if the item was actually queued, false if skipped.
Future<bool> _queueSingleDownload(
@@ -750,16 +779,22 @@ class DownloadProvider extends ChangeNotifier {
}
/// Queue all episodes from a TV show for download
Future<int> _queueShowDownload(PlexMetadata show, PlexClient client, {DownloadVersionConfig? versionConfig}) async {
Future<int> _queueShowDownload(PlexMetadata show, PlexClient client,
{DownloadVersionConfig? versionConfig, DownloadFilter filter = DownloadFilter.all, int? maxCount}) async {
int count = 0;
final seasons = await client.getChildren(show.ratingKey);
await _storeLeafCount(show.globalKey, show);
int? remaining = maxCount;
for (final season in seasons) {
if (season.type == 'season') {
if (remaining != null && remaining <= 0) break;
final seasonWithServer = _ensureServerId(season, show.serverId);
count += await _queueSeasonDownload(seasonWithServer, client, versionConfig: versionConfig);
final queued = await _queueSeasonDownload(seasonWithServer, client,
versionConfig: versionConfig, filter: filter, maxCount: remaining);
count += queued;
if (remaining != null) remaining -= queued;
}
}
@@ -768,7 +803,7 @@ class DownloadProvider extends ChangeNotifier {
/// Queue all episodes from a season for download
Future<int> _queueSeasonDownload(PlexMetadata season, PlexClient client,
{DownloadVersionConfig? versionConfig}) async {
{DownloadVersionConfig? versionConfig, DownloadFilter filter = DownloadFilter.all, int? maxCount}) async {
int count = 0;
final episodes = await client.getChildren(season.ratingKey);
@@ -776,6 +811,9 @@ class DownloadProvider extends ChangeNotifier {
for (final episode in episodes) {
if (episode.type == 'episode') {
if (filter == DownloadFilter.unwatched && episode.isWatched && !episode.hasActiveProgress) continue;
if (maxCount != null && count >= maxCount) break;
final episodeWithServer = _ensureServerId(episode, season.serverId);
final queued = await _queueSingleDownload(episodeWithServer, client, versionConfig: versionConfig);
if (queued) count++;
+10
View File
@@ -15,6 +15,7 @@ class SettingsProvider extends ChangeNotifier {
bool _hideSpoilers = false;
bool _showNavBarLabels = true;
bool _liveTvDefaultFavorites = false;
bool _autoHidePerformanceOverlay = true;
bool _isInitialized = false;
Future<void>? _initFuture;
@@ -42,6 +43,7 @@ class SettingsProvider extends ChangeNotifier {
_hideSpoilers = _settingsService!.getHideSpoilers();
_showNavBarLabels = _settingsService!.getShowNavBarLabels();
_liveTvDefaultFavorites = _settingsService!.getLiveTvDefaultFavorites();
_autoHidePerformanceOverlay = _settingsService!.getAutoHidePerformanceOverlay();
_isInitialized = true;
notifyListeners();
}
@@ -71,6 +73,8 @@ class SettingsProvider extends ChangeNotifier {
bool get liveTvDefaultFavorites => _liveTvDefaultFavorites;
bool get autoHidePerformanceOverlay => _autoHidePerformanceOverlay;
/// Helper to update a setting: ensures init, deduplicates, persists, notifies.
Future<void> _updateSetting<T>({
required T current,
@@ -152,6 +156,12 @@ class SettingsProvider extends ChangeNotifier {
persist: _settingsService!.setLiveTvDefaultFavorites,
);
Future<void> setAutoHidePerformanceOverlay(bool value) => _updateSetting(
current: _autoHidePerformanceOverlay, value: value,
setLocal: (v) => _autoHidePerformanceOverlay = v,
persist: _settingsService!.setAutoHidePerformanceOverlay,
);
String get episodePosterModeDisplayName {
switch (_episodePosterMode) {
case EpisodePosterMode.seriesPoster:
+3 -3
View File
@@ -1,5 +1,5 @@
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import '../utils/plex_http_exception.dart';
import '../models/plex_home.dart';
import '../models/plex_home_user.dart';
import '../models/plex_user_profile.dart';
@@ -302,8 +302,8 @@ class UserProfileProvider extends ChangeNotifier {
return true;
} catch (e) {
// Check if it's a PIN validation error
if (e is DioException && e.response?.statusCode == 403) {
final errors = e.response?.data['errors'] as List?;
if (e is PlexHttpException && e.statusCode == 403) {
final errors = (e.responseData is Map) ? (e.responseData as Map)['errors'] as List? : null;
if (errors != null && errors.isNotEmpty) {
final errorCode = errors.first['code'] as int?;
final errorMessage = errors.first['message'] as String?;
+168
View File
@@ -0,0 +1,168 @@
import 'package:flutter/material.dart';
import 'package:material_symbols_icons/symbols.dart';
import '../models/plex_metadata.dart';
import '../widgets/desktop_app_bar.dart';
import '../widgets/plex_optimized_image.dart';
import '../utils/plex_image_helper.dart';
import '../i18n/strings.g.dart';
import 'base_media_list_detail_screen.dart';
import 'focusable_detail_screen_mixin.dart';
import '../mixins/grid_focus_node_mixin.dart';
import '../focus/key_event_utils.dart';
import '../focus/focusable_action_bar.dart';
/// Screen to browse all media featuring a specific actor
class ActorMediaScreen extends StatefulWidget {
final String actorName;
final String personId;
final String? actorThumb;
final String? characterName;
final String serverId;
final String? serverName;
const ActorMediaScreen({
super.key,
required this.actorName,
required this.personId,
this.actorThumb,
this.characterName,
required this.serverId,
this.serverName,
});
@override
State<ActorMediaScreen> createState() => _ActorMediaScreenState();
}
class _ActorMediaScreenState extends BaseMediaListDetailScreen<ActorMediaScreen>
with
StandardItemLoader<ActorMediaScreen>,
GridFocusNodeMixin<ActorMediaScreen>,
FocusableDetailScreenMixin<ActorMediaScreen> {
@override
PlexMetadata get mediaItem => PlexMetadata(
ratingKey: '',
serverId: widget.serverId,
serverName: widget.serverName,
);
@override
String get title => widget.actorName;
@override
String get emptyMessage => t.discover.noContentAvailable;
@override
bool get hasItems => items.isNotEmpty;
@override
void dispose() {
disposeFocusResources();
super.dispose();
}
@override
Future<List<PlexMetadata>> fetchItems() async {
return await client.getPersonMedia(widget.personId);
}
@override
Future<void> loadItems() async {
await super.loadItems();
autoFocusFirstItemAfterLoad();
}
@override
List<FocusableAction> getAppBarActions() {
return [];
}
Widget _buildActorHeader() {
final theme = Theme.of(context);
return SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
child: Row(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(40),
child: PlexOptimizedImage(
client: client,
imagePath: widget.actorThumb,
width: 80,
height: 80,
fit: BoxFit.cover,
imageType: ImageType.avatar,
fallbackIcon: Symbols.person_rounded,
),
),
const SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
widget.actorName,
style: theme.textTheme.headlineSmall?.copyWith(fontWeight: FontWeight.bold),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
if (widget.characterName != null) ...[
const SizedBox(height: 4),
Text(
widget.characterName!,
style: theme.textTheme.bodyMedium?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
],
if (items.isNotEmpty) ...[
const SizedBox(height: 4),
Text(
'${items.length} ${items.length == 1 ? 'title' : 'titles'}',
style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurfaceVariant,
),
),
],
],
),
),
],
),
),
);
}
@override
Widget build(BuildContext context) {
return PopScope(
canPop: false,
onPopInvokedWithResult: (didPop, result) {
if (BackKeyCoordinator.consumeIfHandled()) return;
if (didPop) return;
final shouldPop = handleBackNavigation();
if (shouldPop && mounted) {
Navigator.pop(context);
}
},
child: Scaffold(
body: CustomScrollView(
controller: scrollController,
slivers: [
CustomAppBar(title: Text(widget.actorName), pinned: true, actions: buildFocusableAppBarActions()),
_buildActorHeader(),
...buildStateSlivers(),
if (items.isNotEmpty)
buildFocusableGrid(
items: items,
onRefresh: updateItem,
),
],
),
),
);
}
}
+5 -1
View File
@@ -638,7 +638,11 @@ class _DiscoverScreenState extends State<DiscoverScreen>
/// Sync On Deck items to Android TV Watch Next row
Future<void> _syncWatchNext(List<PlexMetadata> onDeck) async {
try {
await WatchNextService().syncFromOnDeck(onDeck, (serverId) => context.getClientForServer(serverId));
await WatchNextService().syncFromOnDeck(
onDeck,
(serverId) => context.getClientForServer(serverId),
hideSpoilers: context.read<SettingsProvider>().hideSpoilers,
);
} catch (e) {
appLogger.w('Failed to sync Watch Next', error: e);
}
+5 -4
View File
@@ -833,10 +833,11 @@ class _LibrariesScreenState extends State<LibrariesScreen>
}
Widget _buildLibraryDropdownTitle(List<PlexLibrary> visibleLibraries) {
final selectedLibrary = visibleLibraries.firstWhere(
(lib) => lib.globalKey == _selectedLibraryGlobalKey,
orElse: () => visibleLibraries.first,
);
final selectedLibrary = visibleLibraries
.where((lib) => lib.globalKey == _selectedLibraryGlobalKey)
.firstOrNull ??
visibleLibraries.firstOrNull;
if (selectedLibrary == null) return Text(t.libraries.title);
return PopupMenuButton<String>(
key: _libraryDropdownKey,
@@ -4,7 +4,8 @@ import 'package:flutter/material.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:provider/provider.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:dio/dio.dart';
import '../../../utils/plex_http_client.dart';
import '../../../utils/plex_http_exception.dart';
import '../../../focus/dpad_navigator.dart';
import '../../../focus/input_mode_tracker.dart';
import '../../../../services/plex_client.dart';
@@ -203,7 +204,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
int _totalSize = 0;
final Map<int, PlexMetadata> _loadedItems = {};
final Set<int> _loadingRanges = {};
CancelToken? _cancelToken;
AbortController? _cancelToken;
int _requestId = 0;
int _firstCharactersRequestId = 0;
static const int _fetchSize = 200;
@@ -229,7 +230,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
@override
void dispose() {
_cancelToken?.cancel();
_cancelToken?.abort();
_retryTimer?.cancel();
_scrollActivityTimer?.cancel();
_scrollIdleTimer?.cancel();
@@ -353,9 +354,9 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
Future<void> _loadContent() async {
// Cancel any pending request
_cancelToken?.cancel();
_cancelToken?.abort();
_retryTimer?.cancel();
_cancelToken = CancelToken();
_cancelToken = AbortController();
// Use a generation counter for the filter/sort loading phase
final generation = ++_requestId;
final firstCharactersGeneration = ++_firstCharactersRequestId;
@@ -458,9 +459,9 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
Future<void> _loadItems() async {
final currentRequestId = ++_requestId;
_cancelToken?.cancel();
_cancelToken?.abort();
_retryTimer?.cancel();
_cancelToken = CancelToken();
_cancelToken = AbortController();
setState(() {
isLoading = true;
@@ -485,7 +486,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
start: 0,
size: _calculateInitialFetchSize(),
filters: filterParams,
cancelToken: _cancelToken,
abort: _cancelToken,
);
if (currentRequestId != _requestId) return;
@@ -537,7 +538,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
start: start,
size: clampedSize,
filters: filterParams,
cancelToken: _cancelToken,
abort: _cancelToken,
);
if (currentRequestId != _requestId || !mounted) return false;
@@ -555,7 +556,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
_prefetchImages(start, result.items);
return true;
} catch (e) {
if (e is DioException && e.type == DioExceptionType.cancel) return false;
if (e is PlexHttpException && e.type == PlexHttpErrorType.cancelled) return false;
_retryCount++;
final delay = Duration(milliseconds: 500 * (1 << _retryCount.clamp(0, 4)));
_retryTimer?.cancel();
@@ -632,8 +633,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
}
String _getErrorMessage(dynamic error) {
if (error is DioException) {
return mapDioErrorToMessage(error, context: t.libraries.content);
if (error is PlexHttpException) {
return mapHttpErrorToMessage(error, context: t.libraries.content);
}
return mapUnexpectedErrorToMessage(error, context: t.libraries.content);
}
+162 -44
View File
@@ -24,12 +24,14 @@ import '../utils/plex_image_helper.dart';
import '../../services/plex_client.dart';
import '../services/plex_api_cache.dart';
import '../models/plex_metadata.dart';
import '../models/plex_role.dart';
import '../models/plex_video_playback_data.dart';
import '../utils/content_utils.dart';
import '../utils/rating_utils.dart';
import '../models/download_models.dart';
import '../services/download_storage_service.dart';
import '../utils/download_version_utils.dart';
import '../utils/download_utils.dart';
import '../providers/playback_state_provider.dart';
import '../providers/settings_provider.dart';
import '../utils/grid_size_calculator.dart';
@@ -55,7 +57,10 @@ import '../mixins/server_bound_media_mixin.dart';
import '../utils/watch_state_notifier.dart';
import '../utils/deletion_notifier.dart';
import '../widgets/episode_card.dart';
import 'actor_media_screen.dart';
import '../widgets/focusable_tab_chip.dart';
import '../widgets/hub_section.dart';
import '../models/plex_hub.dart';
class MediaDetailScreen extends StatefulWidget {
final PlexMetadata metadata;
@@ -84,6 +89,8 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
PlexVideoPlaybackData? _playbackData;
bool _isLoadingMetadata = true;
List<PlexMetadata>? _extras;
List<PlexHub> _relatedHubs = [];
List<GlobalKey<HubSectionState>> _relatedHubKeys = [];
late final ScrollController _scrollController;
final ScrollController _extrasScrollController = ScrollController();
bool _watchStateChanged = false;
@@ -777,17 +784,19 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
final client = _getClientForMetadata(context);
if (client == null) return;
final versionConfig = await _resolveDownloadVersion(context, metadata, client);
if (versionConfig == null || !context.mounted) return;
try {
final count = await downloadProvider.queueDownload(metadata, client, versionConfig: versionConfig);
if (context.mounted) {
final message = count > 1
? t.downloads.episodesQueued(count: count)
: t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
}
final count = await showDownloadOptionsAndQueue(
context,
metadata: metadata,
client: client,
downloadProvider: downloadProvider,
);
if (count == null || !context.mounted) return;
final message = count > 1
? t.downloads.episodesQueued(count: count)
: t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
} on CellularDownloadBlockedException {
if (context.mounted) {
showErrorSnackBar(context, t.settings.cellularDownloadBlocked);
@@ -1077,6 +1086,25 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
return getServerBoundClient(context);
}
void _navigateToActorMedia(PlexRole actor) {
final personId = actor.id?.toString() ?? actor.tagKey;
if (personId == null || widget.metadata.serverId == null) return;
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => ActorMediaScreen(
actorName: actor.tag,
personId: personId,
actorThumb: actor.thumb,
characterName: actor.role,
serverId: widget.metadata.serverId!,
serverName: widget.metadata.serverName,
),
),
);
}
/// Resolve version selection for download using shared utility.
Future<DownloadVersionConfig?> _resolveDownloadVersion(
BuildContext context,
@@ -1169,6 +1197,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
// Load extras (trailers, behind-the-scenes, etc.)
_loadExtras();
_loadRelatedHubs();
return;
}
@@ -1456,6 +1485,58 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
}
}
/// Load related hubs (collections, similar, "more from" director/actor)
Future<void> _loadRelatedHubs() async {
if (!widget.metadata.isMovie && !widget.metadata.isShow) {
return;
}
if (widget.isOffline) {
return;
}
try {
final client = _getClientForMetadata(context);
if (client == null) return;
final hubs = await client.getRelatedHubs(widget.metadata.ratingKey);
setStateIfMounted(() {
_relatedHubs = hubs;
_relatedHubKeys = List.generate(hubs.length, (_) => GlobalKey<HubSectionState>());
});
} catch (e) {
// Silently fail - related sections won't appear if fetch fails
}
}
/// Focus the first visible section above cast: season tabs → overview → play button.
/// Shared by cast UP, extras UP, and related hub UP handlers.
void _focusSectionAboveCast() {
final metadata = _fullMetadata ?? widget.metadata;
if (metadata.isShow && !_showEpisodesDirectly && _seasons.isNotEmpty && _seasonTabFocusNodes.isNotEmpty) {
_seasonTabFocusNodes[_selectedSeasonIndex].requestFocus();
_scrollSectionIntoView(_seasonsSectionKey);
} else if (metadata.summary != null && metadata.summary!.isNotEmpty) {
_overviewFocusNode.requestFocus();
_scrollSectionIntoView(_overviewSectionKey);
} else {
_scrollController.animateTo(0, duration: const Duration(milliseconds: 200), curve: Curves.easeOut);
_playButtonFocusNode.requestFocus();
}
}
/// Focus the first visible section above extras: cast → season tabs → overview → play button.
void _focusSectionAboveExtras() {
final metadata = _fullMetadata ?? widget.metadata;
if (metadata.role != null && metadata.role!.isNotEmpty) {
_castFocusNode.requestFocus();
_scrollSectionIntoView(_castSectionKey);
} else {
_focusSectionAboveCast();
}
}
/// Scroll the main scroll view so the section with the given key is centered
void _scrollSectionIntoView(GlobalKey key) {
scrollContextToCenter(key.currentContext);
@@ -1511,6 +1592,11 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
return KeyEventResult.handled;
}
if (_relatedHubs.isNotEmpty) {
_relatedHubKeys.first.currentState?.requestFocusFromMemory();
return KeyEventResult.handled;
}
return KeyEventResult.handled; // consume to prevent unwanted traversal
}
@@ -1537,7 +1623,6 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
return KeyEventResult.handled;
}
// DOWN: season tabs → cast → extras
if (key.isDownKey) {
if (metadata.isShow && !_showEpisodesDirectly && _seasons.isNotEmpty && _seasonTabFocusNodes.isNotEmpty) {
_seasonTabFocusNodes[_selectedSeasonIndex].requestFocus();
@@ -1551,6 +1636,8 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
} else if (_extras != null && _extras!.isNotEmpty) {
_extrasFocusNode.requestFocus();
_scrollSectionIntoView(_extrasSectionKey);
} else if (_relatedHubs.isNotEmpty) {
_relatedHubKeys.first.currentState?.requestFocusFromMemory();
}
return KeyEventResult.handled;
}
@@ -1720,27 +1807,16 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
return KeyEventResult.handled;
}
// UP: cast → season tabs → overview → play button
if (key.isUpKey) {
final metadata = _fullMetadata ?? widget.metadata;
if (metadata.role != null && metadata.role!.isNotEmpty) {
_castFocusNode.requestFocus();
_scrollSectionIntoView(_castSectionKey);
} else if (metadata.isShow && !_showEpisodesDirectly && _seasons.isNotEmpty && _seasonTabFocusNodes.isNotEmpty) {
_seasonTabFocusNodes[_selectedSeasonIndex].requestFocus();
_scrollSectionIntoView(_seasonsSectionKey);
} else if (metadata.summary != null && metadata.summary!.isNotEmpty) {
_overviewFocusNode.requestFocus();
_scrollSectionIntoView(_overviewSectionKey);
} else {
_scrollController.animateTo(0, duration: const Duration(milliseconds: 200), curve: Curves.easeOut);
_playButtonFocusNode.requestFocus();
}
_focusSectionAboveExtras();
return KeyEventResult.handled;
}
// DOWN: consume (nothing below extras to focus)
// DOWN: related hubs → consume
if (key.isDownKey) {
if (_relatedHubs.isNotEmpty) {
_relatedHubKeys.first.currentState?.requestFocusFromMemory();
}
return KeyEventResult.handled;
}
@@ -1760,7 +1836,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
if (key.isLeftKey) {
if (_focusedCastIndex > 0) {
setState(() => _focusedCastIndex--);
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: _getResponsiveCardWidth() + 8 + 4, leadingPadding: 0);
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: _getResponsiveCardWidth() + 6 + 4, leadingPadding: 0);
}
return KeyEventResult.handled;
}
@@ -1769,50 +1845,77 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
if (key.isRightKey) {
if (_focusedCastIndex < roleCount - 1) {
setState(() => _focusedCastIndex++);
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: _getResponsiveCardWidth() + 8 + 4, leadingPadding: 0);
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: _getResponsiveCardWidth() + 6 + 4, leadingPadding: 0);
}
return KeyEventResult.handled;
}
// UP: season tabs → overview → play button
if (key.isUpKey) {
// If episodes are visible, focus the last episode (cast is right below episodes)
if (_episodes.isNotEmpty) {
// For single episode, _lastEpisodeFocusNode isn't attached — use first
final target = _episodes.length == 1 ? _firstEpisodeFocusNode : _lastEpisodeFocusNode;
target.requestFocus();
return KeyEventResult.handled;
}
if (metadata.isShow && !_showEpisodesDirectly && _seasons.isNotEmpty && _seasonTabFocusNodes.isNotEmpty) {
_seasonTabFocusNodes[_selectedSeasonIndex].requestFocus();
_scrollSectionIntoView(_seasonsSectionKey);
} else if (metadata.summary != null && metadata.summary!.isNotEmpty) {
_overviewFocusNode.requestFocus();
_scrollSectionIntoView(_overviewSectionKey);
} else {
_scrollController.animateTo(0, duration: const Duration(milliseconds: 200), curve: Curves.easeOut);
_playButtonFocusNode.requestFocus();
_focusSectionAboveCast();
}
return KeyEventResult.handled;
}
// DOWN: extras (if available) → consume
// DOWN: extras → related hubs → consume
if (key.isDownKey) {
if (_extras != null && _extras!.isNotEmpty) {
_extrasFocusNode.requestFocus();
_scrollSectionIntoView(_extrasSectionKey);
} else if (_relatedHubs.isNotEmpty) {
_relatedHubKeys.first.currentState?.requestFocusFromMemory();
}
return KeyEventResult.handled;
}
// SELECT: consume (cast is informational)
// SELECT: navigate to actor media
if (key.isSelectKey) {
final metadata = _fullMetadata ?? widget.metadata;
if (_focusedCastIndex < (metadata.role?.length ?? 0)) {
_navigateToActorMedia(metadata.role![_focusedCastIndex]);
}
return KeyEventResult.handled;
}
return KeyEventResult.ignored;
}
/// Handle vertical navigation between related hub sections
bool _handleRelatedHubNavigation(int hubIndex, bool isUp) {
if (_relatedHubKeys.isEmpty) return false;
if (isUp && hubIndex == 0) {
if (_extras != null && _extras!.isNotEmpty) {
_extrasFocusNode.requestFocus();
_scrollSectionIntoView(_extrasSectionKey);
} else {
_focusSectionAboveExtras();
}
return true;
}
final targetIndex = isUp ? hubIndex - 1 : hubIndex + 1;
if (targetIndex < 0 || targetIndex >= _relatedHubKeys.length) {
return true; // at boundary, consume
}
_relatedHubKeys[targetIndex].currentState?.requestFocusFromMemory();
return true;
}
IconData _getRelatedHubIcon(PlexHub hub) {
final lower = hub.title.toLowerCase();
if (lower.contains('collection')) return Symbols.video_library_rounded;
if (lower.contains('similar')) return Symbols.auto_awesome_rounded;
if (lower.contains('more from') || lower.contains('more with')) return Symbols.person_rounded;
if (lower.contains('genre') || lower.contains('director')) return Symbols.movie_rounded;
return Symbols.recommend_rounded;
}
/// Build episode list directly when the library hides seasons for single-season shows
Widget _buildEpisodesList() {
final client = _getClientForMetadata(context);
@@ -2542,6 +2645,18 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
const SizedBox(height: 24),
],
// Related Hubs (Collections, Similar, More From...)
for (int i = 0; i < _relatedHubs.length; i++) ...[
HubSection(
key: _relatedHubKeys[i],
hub: _relatedHubs[i],
icon: _getRelatedHubIcon(_relatedHubs[i]),
inset: true,
onVerticalNavigation: (isUp) => _handleRelatedHubNavigation(i, isUp),
),
const SizedBox(height: 8),
],
// Additional info
if (metadata.studio != null) ...[
_buildInfoRow(t.discover.studio, metadata.studio!),
@@ -2650,7 +2765,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
/// Uses same layout pattern as seasons/extras (ListView.builder + Padding(horizontal: 2))
Widget _buildCastSection(PlexMetadata metadata) {
final cardWidth = _getResponsiveCardWidth();
const innerPadding = 4.0;
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;
@@ -2668,6 +2783,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
builder: (scrollController) => ListView.builder(
controller: scrollController,
scrollDirection: Axis.horizontal,
clipBehavior: Clip.none,
padding: const EdgeInsets.symmetric(vertical: 5),
itemCount: metadata.role!.length,
itemBuilder: (context, index) {
@@ -2680,6 +2796,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
context: context,
isFocused: isFocused,
borderRadius: tokens(context).radiusSm,
onTap: () => _navigateToActorMedia(actor),
child: Padding(
padding: const EdgeInsets.all(innerPadding),
child: SizedBox(
@@ -2755,6 +2872,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
builder: (scrollController) => ListView.builder(
controller: scrollController,
scrollDirection: Axis.horizontal,
clipBehavior: Clip.none,
padding: const EdgeInsets.symmetric(vertical: 5),
itemCount: _extras!.length,
itemBuilder: (context, index) {
+37 -38
View File
@@ -367,6 +367,8 @@ class _MetadataEditScreenState extends State<MetadataEditScreen> {
bool get _showTagline => _mediaType == PlexMediaType.movie || _mediaType == PlexMediaType.show;
bool get _showBackground =>
_mediaType == PlexMediaType.movie || _mediaType == PlexMediaType.show || _mediaType == PlexMediaType.episode;
bool get _showExtendedArtwork =>
_mediaType == PlexMediaType.movie || _mediaType == PlexMediaType.show || _mediaType == PlexMediaType.collection;
bool get _showAdvanced => _mediaType != PlexMediaType.episode;
List<({String key, String label})> get _tagFields {
@@ -606,6 +608,35 @@ class _MetadataEditScreenState extends State<MetadataEditScreen> {
);
}
Widget _buildArtworkTile({
required double width,
required double height,
required String? imagePath,
required String label,
required String element,
BoxFit fit = BoxFit.cover,
}) {
return ListTile(
leading: SizedBox(
width: width,
height: height,
child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(4)),
child: PlexOptimizedImage(
client: _client,
imagePath: imagePath,
width: width,
height: height,
fit: fit,
),
),
),
title: Text(label),
trailing: const AppIcon(Symbols.chevron_right_rounded),
onTap: () => _openArtworkPicker(element),
);
}
Widget _buildArtworkCard() {
final meta = _fullMetadata ?? widget.metadata;
@@ -620,45 +651,13 @@ class _MetadataEditScreenState extends State<MetadataEditScreen> {
style: Theme.of(context).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold),
),
),
ListTile(
leading: SizedBox(
width: 40,
height: 60,
child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(4)),
child: PlexOptimizedImage(
client: _client,
imagePath: meta.thumb,
width: 40,
height: 60,
fit: BoxFit.cover,
),
),
),
title: Text(t.metadataEdit.poster),
trailing: const AppIcon(Symbols.chevron_right_rounded),
onTap: () => _openArtworkPicker('posters'),
),
_buildArtworkTile(width: 40, height: 60, imagePath: meta.thumb, label: t.metadataEdit.poster, element: 'posters'),
if (_showBackground)
ListTile(
leading: SizedBox(
width: 80,
height: 45,
child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(4)),
child: PlexOptimizedImage(
client: _client,
imagePath: meta.art,
width: 80,
height: 45,
fit: BoxFit.cover,
),
),
),
title: Text(t.metadataEdit.background),
trailing: const AppIcon(Symbols.chevron_right_rounded),
onTap: () => _openArtworkPicker('arts'),
),
_buildArtworkTile(width: 80, height: 45, imagePath: meta.art, label: t.metadataEdit.background, element: 'arts'),
if (_showExtendedArtwork)
_buildArtworkTile(width: 80, height: 32, imagePath: meta.clearLogo, label: t.metadataEdit.logo, element: 'clearLogos', fit: BoxFit.contain),
if (_showExtendedArtwork)
_buildArtworkTile(width: 50, height: 50, imagePath: meta.backgroundSquare, label: t.metadataEdit.squareArt, element: 'squareArts'),
],
),
);
@@ -13,9 +13,12 @@ import '../../widgets/desktop_app_bar.dart';
import '../../focus/dpad_navigator.dart';
import '../../focus/input_mode_tracker.dart';
import '../../focus/key_event_utils.dart';
import 'package:provider/provider.dart';
import 'playlist_item_card.dart';
import '../../i18n/strings.g.dart';
import '../../providers/download_provider.dart';
import '../../utils/dialogs.dart';
import '../../utils/download_utils.dart';
import '../../utils/snackbar_helper.dart';
import '../base_media_list_detail_screen.dart';
import '../focusable_detail_screen_mixin.dart';
@@ -58,6 +61,8 @@ class _PlaylistDetailScreenState extends BaseMediaListDetailScreen<PlaylistDetai
FocusableAction(icon: Symbols.play_arrow_rounded, tooltip: t.common.play, onPressed: playItems),
FocusableAction(icon: Symbols.shuffle_rounded, tooltip: t.common.shuffle, onPressed: shufflePlayItems),
],
if (items.isNotEmpty && widget.playlist.playlistType == 'video')
FocusableAction(icon: Symbols.download_rounded, tooltip: t.downloads.downloadNow, onPressed: _downloadPlaylist),
if (!widget.playlist.smart)
FocusableAction(icon: Symbols.delete_rounded, tooltip: t.playlists.delete, onPressed: _deletePlaylist, iconColor: Colors.red),
];
@@ -139,6 +144,31 @@ class _PlaylistDetailScreenState extends BaseMediaListDetailScreen<PlaylistDetai
return context.getClientForServer(widget.playlist.serverId!);
}
Future<void> _downloadPlaylist() async {
final downloadProvider = Provider.of<DownloadProvider>(context, listen: false);
try {
final count = await showPlaylistDownloadOptionsAndQueue(
context,
items: items,
client: client,
downloadProvider: downloadProvider,
);
if (count == null || !mounted) return;
final message = count > 1 ? t.downloads.itemsQueued(count: count) : t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
} on CellularDownloadBlockedException {
if (mounted) {
showErrorSnackBar(context, t.settings.cellularDownloadBlocked);
}
} catch (e) {
if (mounted) {
showErrorSnackBar(context, t.messages.errorLoading(error: e.toString()));
}
}
}
Future<void> _deletePlaylist() async {
final confirmed = await showDeleteConfirmation(
context,
@@ -83,6 +83,7 @@ class _AppearanceSettingsScreenState extends State<AppearanceSettingsScreen> {
_buildHideSpoilers(),
_buildRequireProfileSelection(),
if (PlatformDetector.isTV()) _buildConfirmExitOnBack(),
_buildAutoHidePerformanceOverlay(),
const SizedBox(height: 24),
]),
),
@@ -367,6 +368,22 @@ class _AppearanceSettingsScreenState extends State<AppearanceSettingsScreen> {
);
}
Widget _buildAutoHidePerformanceOverlay() {
return Consumer<SettingsProvider>(
builder: (context, settingsProvider, child) {
return SwitchListTile(
secondary: const AppIcon(Symbols.speed_rounded, fill: 1),
title: Text(t.settings.autoHidePerformanceOverlay),
subtitle: Text(t.settings.autoHidePerformanceOverlayDescription),
value: settingsProvider.autoHidePerformanceOverlay,
onChanged: (value) async {
await settingsProvider.setAutoHidePerformanceOverlay(value);
},
);
},
);
}
// --- Helpers ---
String _getLanguageDisplayName(AppLocale locale) {
+5 -8
View File
@@ -2,9 +2,8 @@ import 'dart:convert';
import 'dart:io';
import 'package:device_info_plus/device_info_plus.dart';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:plezy/utils/http_client.dart';
import 'package:plezy/utils/plex_http_client.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:flutter/services.dart';
import 'package:logger/logger.dart';
@@ -135,17 +134,15 @@ class _LogsScreenState extends State<LogsScreen> {
try {
final response = await httpClient.post(
'https://ice.plezy.app/logs',
data: logText,
options: Options(contentType: 'text/plain'),
body: logText,
headers: {'Content-Type': 'text/plain'},
);
if (!mounted) return;
Navigator.of(context).pop(); // dismiss loading
final id =
(jsonDecode(response.data is String ? response.data : jsonEncode(response.data))
as Map<String, dynamic>)['id']
as String;
final data = response.data is String ? jsonDecode(response.data) : response.data;
final id = (data as Map<String, dynamic>)['id'] as String;
showDialog(
context: context,
@@ -29,6 +29,7 @@ class _SubtitleStylingScreenState extends State<SubtitleStylingScreen> {
String _backgroundColor = '#000000';
int _backgroundOpacity = 0;
int _subtitlePosition = 100;
SubAssOverride _assOverride = SubAssOverride.no;
@override
void initState() {
@@ -48,6 +49,7 @@ class _SubtitleStylingScreenState extends State<SubtitleStylingScreen> {
_backgroundColor = _settingsService.getSubtitleBackgroundColor();
_backgroundOpacity = _settingsService.getSubtitleBackgroundOpacity();
_subtitlePosition = _settingsService.getSubtitlePosition();
_assOverride = _settingsService.getSubAssOverride();
_isLoading = false;
});
}
@@ -146,6 +148,16 @@ class _SubtitleStylingScreenState extends State<SubtitleStylingScreen> {
}
}
String _assOverrideLabel(SubAssOverride value) {
return switch (value) {
SubAssOverride.no => 'No',
SubAssOverride.yes => 'Yes',
SubAssOverride.scale => 'Scale',
SubAssOverride.force => 'Force',
SubAssOverride.strip => 'Strip',
};
}
String _formatPosition(int value) {
if (value == 0) return 'Top';
if (value == 100) return 'Bottom';
@@ -168,6 +180,26 @@ class _SubtitleStylingScreenState extends State<SubtitleStylingScreen> {
delegate: SliverChildListDelegate([
// --- Text ---
SettingsSectionHeader(t.subtitlingStyling.text),
ListTile(
leading: const AppIcon(Symbols.subtitles_rounded, fill: 1),
title: Text(t.subtitlingStyling.assOverride),
subtitle: Text(_assOverrideLabel(_assOverride)),
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
onTap: () async {
final value = await showSelectionDialog<SubAssOverride>(
context: context,
title: t.subtitlingStyling.assOverride,
options: SubAssOverride.values
.map((v) => DialogOption(value: v, title: _assOverrideLabel(v)))
.toList(),
currentValue: _assOverride,
);
if (value != null) {
setState(() => _assOverride = value);
await _settingsService.setSubAssOverride(value);
}
},
),
ListTile(
leading: const AppIcon(Symbols.format_size_rounded, fill: 1),
title: Text(t.subtitlingStyling.fontSize),
+235 -62
View File
@@ -72,7 +72,11 @@ import '../i18n/strings.g.dart';
import '../watch_together/providers/watch_together_provider.dart';
import '../watch_together/widgets/watch_together_overlay.dart';
bool? _wakelockEnabled;
Future<void> _setWakelock(bool enabled) async {
if (_wakelockEnabled == enabled) return;
_wakelockEnabled = enabled;
try {
if (enabled) {
await WakelockPlus.enable();
@@ -80,6 +84,7 @@ Future<void> _setWakelock(bool enabled) async {
await WakelockPlus.disable();
}
} catch (e) {
_wakelockEnabled = null;
appLogger.w('Wakelock ${enabled ? 'enable' : 'disable'} failed: $e');
}
}
@@ -185,6 +190,11 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
bool _isAtLiveEdge = true;
String? _transcodeSessionId;
/// Fallback level for live TV stream errors (mirrors Plex web client behavior).
/// 0 = directStream+directStreamAudio, 1 = no directStream, 2 = no DS + no DS audio.
int _liveStreamFallbackLevel = 0;
bool _isRetryingLiveStream = false;
// Auto-play next episode
Timer? _autoPlayTimer;
int _autoPlayCountdown = 5;
@@ -213,14 +223,20 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
bool _wasPlayingBeforeInactive = false;
bool _hiddenForBackground = false;
bool _autoPipEnabled = false;
bool _androidAutoPipTransitionInFlight = false;
bool _resumeLiveTimelineOnResume = false;
int _rewindOnResume = 0;
Future<void> _lifecycleTransition = Future<void>.value();
String _playerBackendLabel = 'unknown';
/// Whether to skip lifecycle actions because PiP is active or about to start.
/// iOS auto-PiP is system-initiated during the background transition, so
/// isPipActive may not be true yet — we also check the auto-PiP setting.
/// Apple auto-PiP is system-initiated during the background transition, and
/// Android auto-PiP on API 26-30 has a brief native transition window before
/// onPipChanged fires.
bool get _shouldSkipForPip =>
PipService().isPipActive.value || ((Platform.isIOS || Platform.isMacOS) && _autoPipEnabled);
PipService().isPipActive.value ||
((Platform.isIOS || Platform.isMacOS) && _autoPipEnabled) ||
(Platform.isAndroid && _androidAutoPipTransitionInFlight);
// Services
MediaControlsManager? _mediaControlsManager;
@@ -350,25 +366,32 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
switch (state) {
case AppLifecycleState.inactive:
_recordLifecycleState('inactive');
// App is inactive (notification shade, split-screen, etc.)
// Don't pause - user may still be watching
break;
case AppLifecycleState.hidden:
_recordLifecycleState('hidden');
_enqueueLifecycleTransition('hidden', _handleAppHidden);
break;
case AppLifecycleState.paused:
if (_shouldSkipForPip) break;
if (_shouldSkipForPip) {
_recordLifecycleState('paused', action: 'skipped_for_pip');
break;
}
// Clear media controls when app truly goes to background
// (we don't support background playback)
_mediaControlsManager?.clear();
// Disable wakelock when app goes to background
_setWakelock(false);
appLogger.d('Media controls cleared and wakelock disabled due to app being paused/backgrounded');
_recordLifecycleState('paused', action: 'backgrounded');
break;
case AppLifecycleState.resumed:
_recordLifecycleState('resumed');
_enqueueLifecycleTransition('resumed', _handleAppResumed);
break;
case AppLifecycleState.detached:
_recordLifecycleState('detached');
// No action needed for this state
break;
}
@@ -389,35 +412,107 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
});
}
void _recordLifecycleState(String state, {String? action}) {
final isTv = PlatformDetector.isTV();
final pipActive = PipService().isPipActive.value;
final breadcrumbData = <String, dynamic>{
'state': state,
'isTv': isTv,
'autoPipEnabled': _autoPipEnabled,
'pipActive': pipActive,
'pipTransitionInFlight': _androidAutoPipTransitionInFlight,
'hiddenForBackground': _hiddenForBackground,
'backend': _playerBackendLabel,
};
if (action != null) {
breadcrumbData['action'] = action;
}
Sentry.addBreadcrumb(
Breadcrumb(message: 'Player lifecycle $state', category: 'player.lifecycle', data: breadcrumbData),
);
appLogger.d(
'Player lifecycle: state=$state'
'${action != null ? ' action=$action' : ''}'
' isTv=$isTv'
' autoPipEnabled=$_autoPipEnabled'
' pipActive=$pipActive'
' pipTransitionInFlight=$_androidAutoPipTransitionInFlight'
' hiddenForBackground=$_hiddenForBackground'
' backend=$_playerBackendLabel',
);
}
void _setAndroidAutoPipTransitionInFlight(bool value, {required String reason}) {
if (!Platform.isAndroid || _androidAutoPipTransitionInFlight == value) return;
_androidAutoPipTransitionInFlight = value;
_recordLifecycleState('pip_transition', action: '${value ? 'started' : 'cleared'}:$reason');
}
void _suspendLiveTimelineForBackground() {
_resumeLiveTimelineOnResume = _liveTimelineTimer != null;
_stopLiveTimelineUpdates();
}
void _resumeLiveTimelineAfterBackgroundIfNeeded() {
final shouldResume = _resumeLiveTimelineOnResume;
_resumeLiveTimelineOnResume = false;
if (shouldResume && _liveSessionIdentifier != null) {
_startLiveTimelineUpdates();
}
}
Future<void> _handleAppHidden() async {
if (_shouldSkipForPip) return;
if (_shouldSkipForPip) {
_recordLifecycleState('hidden', action: 'skipped_for_pip');
return;
}
final currentPlayer = player;
if (currentPlayer == null || !_isPlayerInitialized) return;
if (currentPlayer == null || !_isPlayerInitialized) {
_recordLifecycleState('hidden', action: 'skipped_no_player');
return;
}
final isTv = PlatformDetector.isTV();
final shouldPauseForBackground = PlatformDetector.isHandheld(context) || isTv;
// Pause first so Android MPV does not keep decoding against a transient
// background surface while the app is locking or hiding.
if (PlatformDetector.isMobile(context)) {
_wasPlayingBeforeInactive = currentPlayer.state.playing;
if (shouldPauseForBackground) {
_wasPlayingBeforeInactive = currentPlayer.state.isActive;
if (_wasPlayingBeforeInactive) {
try {
await currentPlayer.pause();
appLogger.d('Video paused due to app being hidden (mobile)');
appLogger.d('Video paused due to app being hidden (${isTv ? 'tv' : 'handheld'})');
} catch (e) {
appLogger.w('Failed to pause video before hiding render layer', error: e);
appLogger.w('Failed to pause video before background transition', error: e);
}
}
}
if (!mounted || currentPlayer != player) return;
_suspendLiveTimelineForBackground();
if (isTv) {
_recordLifecycleState('hidden', action: 'tv_background_pause_only');
return;
}
_hiddenForBackground = true;
_liveTimelineTimer?.cancel();
await currentPlayer.setVisible(false);
appLogger.d('Render layer hidden due to app being hidden');
_recordLifecycleState('hidden', action: 'render_hidden');
}
Future<void> _handleAppResumed() async {
_recordLifecycleState('resumed', action: 'begin');
if (Platform.isAndroid && _androidAutoPipTransitionInFlight && !PipService().isPipActive.value) {
_setAndroidAutoPipTransitionInFlight(false, reason: 'resume_without_pip');
}
final currentPlayer = player;
// Restore render layer if it was hidden for background, then force a
@@ -429,16 +524,16 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
if (!mounted || currentPlayer != player) return;
_hiddenForBackground = false;
if (_liveSessionIdentifier != null) {
_startLiveTimelineUpdates();
}
appLogger.d('Render layer restored after app resumed');
_recordLifecycleState('resumed', action: 'render_restored');
}
// Restore media controls and wakelock when app is resumed.
if (_isPlayerInitialized && mounted) {
await _restoreMediaControlsAfterResume();
}
_resumeLiveTimelineAfterBackgroundIfNeeded();
_recordLifecycleState('resumed', action: 'complete');
}
Future<void> _initializePlayer() async {
@@ -461,6 +556,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
// Create player (on Android, uses ExoPlayer by default, MPV as fallback)
player = Player(useExoPlayer: useExoPlayer);
_playerBackendLabel = player!.playerType;
await player!.configureSubtitleFonts();
await player!.setProperty('sub-ass', 'yes'); // Enable libass
@@ -524,7 +620,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
'sub-back-color',
'#${bgOpacity.toRadixString(16).padLeft(2, '0').toUpperCase()}$bgColor',
);
await player!.setProperty('sub-ass-override', 'no');
await player!.setProperty('sub-ass-override', settingsService.getSubAssOverride().name);
await player!.setProperty('sub-ass-video-aspect-override', '1');
await player!.setProperty('sub-pos', settingsService.getSubtitlePosition().toString());
@@ -671,6 +767,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
// Listen to playback restart to detect first frame ready
_playbackRestartSubscription = player!.streams.playbackRestart.listen((_) async {
_lastLogError = null;
_liveStreamFallbackLevel = 0;
if (!_hasFirstFrame.value) {
_hasFirstFrame.value = true;
Sentry.addBreadcrumb(Breadcrumb(message: 'First frame ready', category: 'player'));
@@ -794,10 +891,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
final sigPeakStr = await player!.getProperty('video-params/sig-peak');
final sigPeak = double.tryParse(sigPeakStr ?? '');
final delay = await _displayModeService!.applyDisplayMatching(
fps: fps,
sigPeak: sigPeak,
);
final delay = await _displayModeService!.applyDisplayMatching(fps: fps, sigPeak: sigPeak);
if (delay > Duration.zero) {
await Future.delayed(delay);
@@ -884,7 +978,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
_updateMediaControlsPlaybackState();
} else if (event is TogglePlayPauseEvent) {
appLogger.d('Media control: Toggle play/pause event received');
if (currentPlayer!.state.playing) {
if (currentPlayer!.state.isActive) {
currentPlayer.pause();
} else {
_seekBackForRewind(currentPlayer);
@@ -923,7 +1017,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
// Listen to position updates for media controls and Discord
_mediaControlsPositionSubscription = player!.streams.position.listen((position) {
_mediaControlsManager?.updatePlaybackState(
isPlaying: player!.state.playing,
isPlaying: player!.state.isActive,
position: position,
speed: player!.state.rate,
);
@@ -1119,16 +1213,22 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
int? offsetSeconds;
if (_captureBuffer != null && _programBeginsAt != null) {
final nowEpoch = DateTime.now().millisecondsSinceEpoch ~/ 1000;
final effectiveStart = max(_captureBuffer!.seekableStartEpoch, _programBeginsAt!);
final offsetProgramStart = _programBeginsAt! - _captureBuffer!.startedAt.round();
// If a session recording started after current program start, offset of program start at will be negative.
// If a session recording started before current program start, offset of program start will be positive.
// If guide data is not available, program start will be equal to current time.
final useProgramStart = offsetProgramStart > 0 && nowEpoch - _programBeginsAt! > 60;
final effectiveStart = useProgramStart ? _programBeginsAt! : _captureBuffer!.seekableStartEpoch;
final elapsed = nowEpoch - effectiveStart;
appLogger.d('Time-shift: buffer=${_captureBuffer!.seekableDurationSeconds}s, '
'beginsAt=$_programBeginsAt, elapsed=${elapsed}s (need >60 for dialog)');
appLogger.d(
'Time-shift: buffer=${_captureBuffer!.seekableDurationSeconds}s, '
'beginsAt=$_programBeginsAt, elapsed=${elapsed}s (need >60 for dialog)',
);
if (elapsed > 60) {
final watchFromStart = await _showWatchFromStartDialog(effectiveStart, nowEpoch);
if (!mounted) return;
if (watchFromStart == true) {
final programBeginsAtOffset = _programBeginsAt! - _captureBuffer!.startedAt.round();
offsetSeconds = max(programBeginsAtOffset, _captureBuffer!.seekStartSeconds.round());
offsetSeconds = useProgramStart ? offsetProgramStart : _captureBuffer!.seekStartSeconds.round();
}
}
}
@@ -1301,6 +1401,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
// Auto-PiP: set up callback for API 26-30 path and initial state
if (_autoPipEnabled) {
PipService.onAutoPipEntering = () {
_setAndroidAutoPipTransitionInFlight(true, reason: 'native_auto_pip_entering');
_videoFilterManager?.enterPipMode();
};
if (player!.state.playing) {
@@ -1481,9 +1582,12 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
/// Handle PiP state changes to restore video scaling when exiting PiP
void _onPipStateChanged() {
final isInPip = _videoPIPManager?.isPipActive.value ?? PipService().isPipActive.value;
_setAndroidAutoPipTransitionInFlight(false, reason: 'pip_state_changed');
_recordLifecycleState('pip_state_changed', action: isInPip ? 'entered' : 'exited');
if (_videoPIPManager == null || _videoFilterManager == null) return;
final isInPip = _videoPIPManager!.isPipActive.value;
// Only handle exit - entry is handled by onBeforeEnterPip callback
if (!isInPip) {
final restoreAmbient = _videoFilterManager!.hadAmbientLightingBeforePip;
@@ -2060,12 +2164,19 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
// Live TV streams are continuous — ignore spurious EOF events caused by
// inter-segment gaps in the chunked MKV transcode stream.
if (widget.isLive) return;
if (!completed) return;
if (completed &&
_nextEpisode != null &&
!_showPlayNextDialog &&
!_showStillWatchingPrompt &&
!_completionTriggered) {
// mpv does not flip the `pause` property on EOF, so _onPlayingStateChanged
// never fires false. Normalize all playback-dependent state.
_setWakelock(false);
_progressTracker?.sendProgress('paused');
_updateMediaControlsPlaybackState();
DiscordRPCService.instance.pausePlayback();
if (_autoPipEnabled) {
_videoPIPManager?.updateAutoPipState(isPlaying: false);
}
if (_nextEpisode != null && !_showPlayNextDialog && !_showStillWatchingPrompt && !_completionTriggered) {
_completionTriggered = true;
// Capture keyboard mode before async gap
@@ -2092,7 +2203,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
if (autoPlayEnabled) {
_startAutoPlayTimer();
}
} else if (completed && _nextEpisode == null && !_completionTriggered) {
} else if (_nextEpisode == null && !_completionTriggered) {
_completionTriggered = true;
_handleBackButton();
}
@@ -2101,6 +2212,17 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
void _onPlayerError(String error) {
appLogger.e('[Player ERROR] $error');
if (!mounted || _isExiting.value) return;
// Live TV: retry with progressively degraded stream settings
// (mirrors Plex web client fallback chain).
if (widget.isLive && _liveStreamFallbackLevel < 2 && !_isRetryingLiveStream) {
_liveStreamFallbackLevel++;
_isRetryingLiveStream = true;
appLogger.w('Live stream failed, retrying with fallback level $_liveStreamFallbackLevel');
_retryLiveStream().whenComplete(() => _isRetryingLiveStream = false);
return;
}
showGlobalErrorSnackBar(_lastLogError ?? error);
_handleBackButton();
}
@@ -2114,6 +2236,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
/// Handle notification when native player switched from ExoPlayer to MPV
Future<void> _onBackendSwitched() async {
_playerBackendLabel = 'mpv';
_recordLifecycleState('backend_switched', action: 'mpv_fallback');
if (mounted) {
showAppSnackBar(context, t.messages.switchingToCompatiblePlayer);
}
@@ -2150,7 +2275,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
Future<void> _restoreMediaControlsAfterResume() async {
if (!_isPlayerInitialized || !mounted) return;
_setWakelock(true);
_setWakelock(player?.state.isActive ?? false);
final manager = _mediaControlsManager;
final currentPlayer = player;
@@ -2179,7 +2304,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
}
_updateMediaControlsPlaybackState();
appLogger.d('Media controls restored and wakelock re-enabled on app resume');
appLogger.d('Media controls restored on app resume');
}
/// Wrapper method to update media controls playback state
@@ -2187,7 +2312,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
if (player == null) return;
_mediaControlsManager?.updatePlaybackState(
isPlaying: player!.state.playing,
isPlaying: player!.state.isActive,
position: player!.state.position,
speed: player!.state.rate,
force: true, // Force update since this is an explicit state change
@@ -2295,6 +2420,63 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
}
}
/// Retry the live stream with degraded direct-stream settings.
/// Re-tunes the channel for a fresh server session (the old one expires
/// while MPV exhausts its reconnect attempts).
Future<void> _retryLiveStream() async {
final client = widget.liveClient;
final channels = widget.liveChannels;
final channelIndex = _liveChannelIndex;
if (client == null ||
channels == null ||
channelIndex < 0 ||
channelIndex >= channels.length ||
widget.liveDvrKey == null) {
appLogger.w('Cannot retry live stream — missing session info');
showGlobalErrorSnackBar(_lastLogError ?? 'Live stream failed');
_handleBackButton();
return;
}
final ds = _liveStreamFallbackLevel < 1;
final dsa = _liveStreamFallbackLevel < 2;
final channel = channels[channelIndex];
appLogger.i('Retrying live stream (re-tune ${channel.key}): directStream=$ds directStreamAudio=$dsa');
// Re-tune to get a fresh capture session — the previous one is dead.
final tuneResult = await client.tuneChannel(widget.liveDvrKey!, channel.key);
if (tuneResult == null || !mounted) {
showGlobalErrorSnackBar(_lastLogError ?? 'Live stream failed');
_handleBackButton();
return;
}
_liveSessionIdentifier = tuneResult.sessionIdentifier;
_liveSessionPath = tuneResult.sessionPath;
_transcodeSessionId = PlexClient.generateSessionIdentifier();
final streamPath = await client.buildLiveStreamPath(
sessionPath: tuneResult.sessionPath,
sessionIdentifier: tuneResult.sessionIdentifier,
transcodeSessionId: _transcodeSessionId!,
directStream: ds,
directStreamAudio: dsa,
);
if (streamPath == null || !mounted) {
showGlobalErrorSnackBar(_lastLogError ?? 'Live stream failed');
_handleBackButton();
return;
}
final streamUrl = '${client.config.baseUrl}$streamPath'.withPlexToken(client.config.token);
_livePlaybackStartTime = DateTime.now();
_streamStartEpoch = DateTime.now().millisecondsSinceEpoch / 1000.0;
_isAtLiveEdge = true;
await _setLiveStreamOptions();
await player!.open(Media(streamUrl, headers: const {'Accept-Language': 'en'}), play: true, isLive: true);
}
/// Force mpv to reconnect its HTTP stream by seeking to the current position.
/// This bypasses ffmpeg's exponential reconnect backoff when the app detects
/// that network connectivity has been restored.
@@ -2306,23 +2488,15 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
p.seek(pos);
}
/// Configure MPV/FFmpeg options for live streaming resilience.
/// Enables automatic reconnection on EOF and network errors.
/// Configure MPV options for live streaming.
/// The official Plex Media Player does not set client-side reconnect options —
/// reconnection is handled by the server's transcoder on the input side.
Future<void> _setLiveStreamOptions() async {
final p = player!;
// FFmpeg HTTP protocol reconnection
await p.setProperty(
'stream-lavf-o',
'reconnect=1,reconnect_streamed=1,reconnect_on_network_error=1,reconnect_delay_max=30',
);
// Demuxer: retry up to 1000 times on stream reload failures
await p.setProperty('demuxer-lavf-o', 'max_reload=1000');
await p.setProperty('force-seekable', 'no');
await player!.setProperty('force-seekable', 'no');
}
/// The current playback position as an absolute epoch second (for live TV time-shift).
int get _currentPositionEpoch =>
(_streamStartEpoch + (player?.state.position.inSeconds ?? 0)).round();
int get _currentPositionEpoch => (_streamStartEpoch + (player?.state.position.inSeconds ?? 0)).round();
/// Show "Watch from Start" / "Watch Live" dialog.
/// Returns true if user chose "Watch from start", false for "Watch Live", null if dismissed.
@@ -2341,12 +2515,14 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
/// Seek the live TV stream to an absolute epoch second.
/// Creates a new transcode session at the target offset.
Future<void> _seekLivePosition(int targetEpochSeconds) async {
if (_captureBuffer == null || _liveSessionPath == null || _liveSessionIdentifier == null || _transcodeSessionId == null) return;
if (_captureBuffer == null ||
_liveSessionPath == null ||
_liveSessionIdentifier == null ||
_transcodeSessionId == null) {
return;
}
final clamped = targetEpochSeconds.clamp(
_captureBuffer!.seekableStartEpoch,
_captureBuffer!.seekableEndEpoch,
);
final clamped = targetEpochSeconds.clamp(_captureBuffer!.seekableStartEpoch, _captureBuffer!.seekableEndEpoch);
final offsetSeconds = clamped - _captureBuffer!.startedAt.round();
@@ -2368,11 +2544,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
_livePlaybackStartTime = DateTime.now();
await _setLiveStreamOptions();
await player!.open(
Media(streamUrl, headers: const {'Accept-Language': 'en'}),
play: true,
isLive: true,
);
await player!.open(Media(streamUrl, headers: const {'Accept-Language': 'en'}), play: true, isLive: true);
if (mounted) setState(() {});
}
@@ -2418,6 +2590,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
if (tuneResult == null || !mounted) return;
_transcodeSessionId = PlexClient.generateSessionIdentifier();
_liveStreamFallbackLevel = 0;
final streamPath = await client.buildLiveStreamPath(
sessionPath: tuneResult.sessionPath,
+18 -20
View File
@@ -1,12 +1,11 @@
import 'dart:async';
import 'dart:io';
import 'dart:typed_data';
import 'package:dart_discord_presence/dart_discord_presence.dart';
import 'package:dio/dio.dart';
import 'package:http/http.dart' as http;
import '../models/plex_metadata.dart';
import '../utils/http_client.dart';
import '../utils/plex_http_client.dart';
import '../utils/app_logger.dart';
import 'plex_client.dart';
import 'settings_service.dart';
@@ -300,29 +299,28 @@ class DiscordRPCService {
if (imageUrl.isEmpty) return null;
// Fetch image data
final imageResponse = await httpClient.get<List<int>>(
final imageBytes = await httpClient.getBytes(
imageUrl,
options: Options(responseType: ResponseType.bytes, receiveTimeout: const Duration(seconds: 10)),
timeout: const Duration(seconds: 10),
);
final imageBytes = imageResponse.data;
if (imageBytes == null || imageBytes.isEmpty) return null;
if (imageBytes.isEmpty) return null;
// Upload to Litterbox
final formData = FormData.fromMap({
'reqtype': 'fileupload',
'time': '1h',
'fileToUpload': MultipartFile.fromBytes(Uint8List.fromList(imageBytes), filename: 'thumbnail.jpg'),
});
final uploadRequest = http.MultipartRequest('POST', Uri.parse(_litterboxUrl))
..fields['reqtype'] = 'fileupload'
..fields['time'] = '1h'
..files.add(http.MultipartFile.fromBytes(
'fileToUpload',
imageBytes,
filename: 'thumbnail.jpg',
));
final uploadResponse = await httpClient.post<String>(
_litterboxUrl,
data: formData,
options: Options(receiveTimeout: const Duration(seconds: 15)),
);
final uploadStreamed = await httpClient.inner
.send(uploadRequest)
.timeout(const Duration(seconds: 15));
final uploadedUrl = (await uploadStreamed.stream.bytesToString()).trim();
final uploadedUrl = uploadResponse.data?.trim();
if (uploadedUrl != null && uploadedUrl.startsWith('http')) {
if (uploadedUrl.startsWith('http')) {
// Cache the URL with 1 hour expiry (matching Litterbox)
_litterboxCache[thumbPath] = _CachedUrl(uploadedUrl, DateTime.now().add(const Duration(hours: 1)));
appLogger.d('Uploaded and cached thumbnail: $uploadedUrl');
+62 -26
View File
@@ -2,10 +2,9 @@ import 'dart:async';
import 'dart:io';
import 'package:background_downloader/background_downloader.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:dio/dio.dart';
import 'package:path/path.dart' as path;
import 'package:plezy/utils/content_utils.dart';
import 'package:plezy/utils/http_client.dart';
import 'package:plezy/utils/plex_http_client.dart';
import '../database/app_database.dart';
import '../database/download_operations.dart';
import 'settings_service.dart';
@@ -50,7 +49,7 @@ class DownloadManagerService {
final AppDatabase _database;
final DownloadStorageService _storageService;
final PlexApiCache _apiCache = PlexApiCache.instance;
final Dio _dio;
final PlexHttpClient _http;
// Stream controller for download progress updates
final _progressController = StreamController<DownloadProgress>.broadcast();
@@ -66,8 +65,10 @@ class DownloadManagerService {
// Items recovered with video complete but supplementary downloads missing
final Set<String> _pendingSupplementaryDownloads = {};
// Cached client for recovery and queue processing
PlexClient? _lastClient;
// Resolve the correct PlexClient for a given serverId (set via setClientResolver).
// Falls back to _fallbackClient when the resolver is unavailable or returns null.
PlexClient? Function(String serverId)? _clientResolver;
PlexClient? _fallbackClient;
// background_downloader state
bool _fileDownloaderInitialized = false;
@@ -119,10 +120,24 @@ class DownloadManagerService {
/// Await this before reading download state from the DB to avoid races.
late final Future<void> recoveryFuture;
DownloadManagerService({required AppDatabase database, required DownloadStorageService storageService, Dio? dio})
DownloadManagerService({required AppDatabase database, required DownloadStorageService storageService, PlexHttpClient? http})
: _database = database,
_storageService = storageService,
_dio = dio ?? httpClient;
_http = http ?? httpClient;
/// Register a callback to resolve the correct PlexClient for a given serverId.
void setClientResolver(PlexClient? Function(String serverId) resolver) {
_clientResolver = resolver;
}
/// Look up the correct client for [serverId].
/// Returns null if the server is offline — callers should skip/defer the work.
PlexClient? _getClient(String? serverId) {
if (serverId != null && _clientResolver != null) {
return _clientResolver!(serverId);
}
return _fallbackClient;
}
/// Initialize background_downloader with callbacks, notifications, and concurrency config.
Future<void> _initializeFileDownloader() async {
@@ -253,7 +268,7 @@ class DownloadManagerService {
/// Resume queued downloads that have no active processing.
/// Call after a PlexClient becomes available (e.g. after server connect on launch).
void resumeQueuedDownloads(PlexClient client) {
_lastClient = client;
_fallbackClient = client;
// Attempt deferred supplementary downloads for recovered items
_processPendingSupplementaryDownloads(client);
@@ -276,6 +291,15 @@ class DownloadManagerService {
for (final globalKey in keys) {
try {
// Resolve the correct client for this item's server
final parsed = parseGlobalKey(globalKey);
final itemClient = _getClient(parsed?.serverId);
if (itemClient == null) {
appLogger.d('Deferring supplementary download $globalKey: server offline');
_pendingSupplementaryDownloads.add(globalKey);
continue;
}
final metadata = await _resolveMetadata(globalKey);
if (metadata == null) {
appLogger.w('No metadata for deferred supplementary download: $globalKey');
@@ -285,20 +309,19 @@ class DownloadManagerService {
// Look up show year for episodes
int? showYear;
if (metadata.type == 'episode' && metadata.grandparentRatingKey != null) {
final parsed = parseGlobalKey(globalKey);
if (parsed != null) {
showYear = await _fetchShowYear(parsed.serverId, metadata.grandparentRatingKey);
}
}
await _downloadArtwork(globalKey, metadata, client);
await _downloadChapterThumbnails(metadata.serverId!, metadata.ratingKey, client);
await _downloadArtwork(globalKey, metadata, itemClient);
await _downloadChapterThumbnails(metadata.serverId!, metadata.ratingKey, itemClient);
// Attempt subtitles
try {
final playbackData = await client.getVideoPlaybackData(metadata.ratingKey);
final playbackData = await itemClient.getVideoPlaybackData(metadata.ratingKey);
if (playbackData.mediaInfo != null) {
await _downloadSubtitles(globalKey, metadata, playbackData.mediaInfo!, client, showYear: showYear);
await _downloadSubtitles(globalKey, metadata, playbackData.mediaInfo!, itemClient, showYear: showYear);
}
} catch (e) {
appLogger.w('Could not fetch playback data for deferred subtitles: $globalKey', error: e);
@@ -382,7 +405,7 @@ class DownloadManagerService {
Future<void> _processQueue(PlexClient client) async {
if (_isProcessingQueue) return;
_isProcessingQueue = true;
_lastClient = client;
_fallbackClient = client;
try {
await _initializeFileDownloader();
@@ -391,7 +414,14 @@ class DownloadManagerService {
final nextItem = await _database.getNextQueueItem();
if (nextItem == null) break;
await _prepareAndEnqueueDownload(nextItem.mediaGlobalKey, client, nextItem);
// Resolve the correct client for the item's server — skip if server is offline
final parsed = parseGlobalKey(nextItem.mediaGlobalKey);
final itemClient = _getClient(parsed?.serverId);
if (itemClient == null) {
appLogger.d('Skipping queued download ${nextItem.mediaGlobalKey}: server offline');
continue;
}
await _prepareAndEnqueueDownload(nextItem.mediaGlobalKey, itemClient, nextItem);
}
} finally {
_isProcessingQueue = false;
@@ -648,7 +678,8 @@ class DownloadManagerService {
await _database.updateBgTaskId(globalKey, null);
await _transitionStatus(globalKey, DownloadStatus.queued);
await _database.addToQueue(mediaGlobalKey: globalKey);
if (_lastClient != null) _processQueue(_lastClient!);
final client = _getClient(parseGlobalKey(globalKey)?.serverId);
if (client != null) _processQueue(client);
}
/// Handle a failed download — auto-retry if retries remain, otherwise permanently fail.
@@ -667,7 +698,8 @@ class DownloadManagerService {
}
final retryCount = existing?.retryCount ?? 0;
if (retryCount < _maxAppRetries && _lastClient != null) {
final client = _getClient(parseGlobalKey(globalKey)?.serverId);
if (retryCount < _maxAppRetries && client != null) {
// App-level auto-retry: schedule a fresh download after a delay.
// Each new task gets 5 native retries with Range-based resume.
appLogger.w(
@@ -683,7 +715,7 @@ class DownloadManagerService {
});
// Advance the queue while we wait for the retry timer
if (_lastClient != null) _processQueue(_lastClient!);
_processQueue(client);
} else {
await _onDownloadPermanentlyFailed(globalKey, errorMessage);
}
@@ -708,13 +740,14 @@ class DownloadManagerService {
await _database.removeFromQueue(globalKey);
// Try to enqueue more items from the queue
if (_lastClient != null) _processQueue(_lastClient!);
final client = _getClient(parseGlobalKey(globalKey)?.serverId);
if (client != null) _processQueue(client);
}
/// Execute an app-level auto-retry: transition back to queued and re-enqueue.
Future<void> _performAutoRetry(String globalKey) async {
if (_disposed) return;
final client = _lastClient;
final client = _getClient(parseGlobalKey(globalKey)?.serverId);
if (client == null) {
appLogger.w('Cannot auto-retry $globalKey: no client available');
return;
@@ -802,7 +835,7 @@ class DownloadManagerService {
// ── Phase 2 (best-effort): supplementary downloads ──
try {
final metadata = ctx?.metadata ?? await _resolveMetadata(globalKey);
final client = ctx?.client ?? _lastClient;
final client = ctx?.client ?? _getClient(parseGlobalKey(globalKey)?.serverId);
final showYear = ctx?.showYear;
// Get queue item settings (still in drift at this point)
@@ -849,7 +882,8 @@ class DownloadManagerService {
} finally {
_completingKeys.remove(globalKey);
// Always advance the queue, even after errors
if (_lastClient != null) _processQueue(_lastClient!);
final nextClient = _getClient(parseGlobalKey(globalKey)?.serverId);
if (nextClient != null) _processQueue(nextClient);
}
}
@@ -957,7 +991,7 @@ class DownloadManagerService {
await file.parent.create(recursive: true);
// Download the artwork
await _dio.download(url, filePath);
await _http.downloadFile(url, filePath);
appLogger.i('Downloaded artwork: $artworkPath -> $filePath');
} catch (e, stack) {
appLogger.w('Failed to download artwork: $artworkPath', error: e, stackTrace: stack);
@@ -1062,7 +1096,7 @@ class DownloadManagerService {
// Download subtitle file
final file = File(subtitlePath);
await file.parent.create(recursive: true);
await _dio.download(subtitleUrl, subtitlePath);
await _http.downloadFile(subtitleUrl, subtitlePath);
appLogger.d('Downloaded subtitle ${subtitle.id} for $globalKey');
}
@@ -1184,7 +1218,8 @@ class DownloadManagerService {
await _database.updateBgTaskId(globalKey, null);
await _transitionStatus(globalKey, DownloadStatus.queued);
await _database.addToQueue(mediaGlobalKey: globalKey);
_processQueue(client);
final resolvedClient = _getClient(parseGlobalKey(globalKey)?.serverId) ?? client;
_processQueue(resolvedClient);
}
/// Retry a failed download
@@ -1194,7 +1229,8 @@ class DownloadManagerService {
await _database.updateBgTaskId(globalKey, null);
await _transitionStatus(globalKey, DownloadStatus.queued);
await _database.addToQueue(mediaGlobalKey: globalKey);
_processQueue(client);
final resolvedClient = _getClient(parseGlobalKey(globalKey)?.serverId) ?? client;
_processQueue(resolvedClient);
}
/// Cancel a download
+23 -30
View File
@@ -1,15 +1,16 @@
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:http/http.dart' as http;
import '../utils/http_client.dart';
import '../utils/plex_http_client.dart';
/// Custom cache manager for Plex image transcoding with HTTP/2 multiplexing.
///
/// Uses Dio with [Http2Adapter] so all platforms benefit from HTTP/2 connection
/// multiplexing — many concurrent image downloads over a single connection
/// instead of being limited to a handful of HTTP/1.1 connections.
/// Uses the platform-native HTTP client so iOS/macOS (CupertinoClient) and
/// Android (CronetClient) benefit from HTTP/2 connection multiplexing —
/// many concurrent image downloads over a single connection instead of
/// being limited to a handful of HTTP/1.1 connections.
class PlexImageCacheManager extends CacheManager with ImageCacheManager {
static const _key = 'plexImageCache';
@@ -21,56 +22,50 @@ class PlexImageCacheManager extends CacheManager with ImageCacheManager {
_key,
stalePeriod: const Duration(days: 14),
maxNrOfCacheObjects: 3000,
fileService: _DioFileService(
Dio()..httpClientAdapter = createHttp2Adapter(),
),
fileService: _HttpFileService(httpClient.inner),
),
);
}
class _DioFileService extends FileService {
final Dio _dio;
class _HttpFileService extends FileService {
final http.Client _client;
_DioFileService(this._dio);
_HttpFileService(this._client);
@override
Future<FileServiceResponse> get(
String url, {
Map<String, String>? headers,
}) async {
final response = await _dio.get<ResponseBody>(
url,
options: Options(
headers: headers,
responseType: ResponseType.stream,
),
);
return _DioGetResponse(response);
final request = http.Request('GET', Uri.parse(url));
if (headers != null) request.headers.addAll(headers);
final response = await _client.send(request);
return _HttpGetResponse(response);
}
}
class _DioGetResponse implements FileServiceResponse {
final Response<ResponseBody> _response;
class _HttpGetResponse implements FileServiceResponse {
final http.StreamedResponse _response;
final DateTime _receivedTime = DateTime.now();
_DioGetResponse(this._response);
_HttpGetResponse(this._response);
@override
Stream<List<int>> get content => _response.data!.stream;
Stream<List<int>> get content => _response.stream;
@override
int? get contentLength {
final value = _header(HttpHeaders.contentLengthHeader);
final value = _response.headers[HttpHeaders.contentLengthHeader];
return value != null ? int.tryParse(value) : null;
}
@override
int get statusCode => _response.statusCode ?? 200;
int get statusCode => _response.statusCode;
@override
DateTime get validTill {
var ageDuration = const Duration(days: 7);
final controlHeader = _header(HttpHeaders.cacheControlHeader);
final controlHeader = _response.headers[HttpHeaders.cacheControlHeader];
if (controlHeader != null) {
for (final setting in controlHeader.split(',')) {
final s = setting.trim().toLowerCase();
@@ -85,17 +80,15 @@ class _DioGetResponse implements FileServiceResponse {
}
@override
String? get eTag => _header(HttpHeaders.etagHeader);
String? get eTag => _response.headers[HttpHeaders.etagHeader];
@override
String get fileExtension {
final contentTypeHeader = _header(HttpHeaders.contentTypeHeader);
final contentTypeHeader = _response.headers[HttpHeaders.contentTypeHeader];
if (contentTypeHeader != null) {
final ct = ContentType.parse(contentTypeHeader);
return '.${ct.subType}';
}
return '';
}
String? _header(String name) => _response.headers.value(name);
}
@@ -8,6 +8,7 @@ import '../i18n/strings.g.dart';
import '../mpv/mpv.dart';
import 'settings_service.dart';
import '../utils/player_utils.dart';
import '../utils/snackbar_helper.dart';
class KeyboardShortcutsService {
static KeyboardShortcutsService? _instance;
@@ -293,15 +294,18 @@ class KeyboardShortcutsService {
final newRateUp = (player.state.rate + 0.25).clamp(0.25, 3.0);
player.setRate(newRateUp);
_settingsService.setDefaultPlaybackSpeed(newRateUp);
showGlobalSnackBar(_formatSpeed(newRateUp));
break;
case 'speed_decrease':
final newRateDown = (player.state.rate - 0.25).clamp(0.25, 3.0);
player.setRate(newRateDown);
_settingsService.setDefaultPlaybackSpeed(newRateDown);
showGlobalSnackBar(_formatSpeed(newRateDown));
break;
case 'speed_reset':
player.setRate(1.0);
_settingsService.setDefaultPlaybackSpeed(1.0);
showGlobalSnackBar(_formatSpeed(1.0));
break;
case 'sub_seek_next':
player.command(['sub-seek', '1']);
@@ -387,4 +391,9 @@ class KeyboardShortcutsService {
return aModifiers.length == bModifiers.length && aModifiers.every((modifier) => bModifiers.contains(modifier));
}
String _formatSpeed(double speed) {
final s = speed.toStringAsFixed(2).replaceFirst(RegExp(r'\.?0+$'), '');
return '${s}x';
}
}
+34 -28
View File
@@ -103,7 +103,7 @@ class MultiServerManager {
final baseUrl = workingConnection.uri;
// Create PlexClient with failover support
final prioritizedEndpoints = server.prioritizedEndpointUrls(preferredFirst: cachedEndpoint ?? baseUrl);
final prioritizedEndpoints = server.prioritizedEndpointUrls(preferredFirst: baseUrl);
final config = await PlexConfig.create(
baseUrl: baseUrl,
token: server.accessToken,
@@ -131,6 +131,18 @@ class MultiServerManager {
return client;
}
/// Persists a new endpoint, rebuilds the failover list, and switches the client.
Future<void> _promoteEndpoint({
required PlexClient client,
required PlexServer server,
required StorageService storage,
required String newUrl,
}) async {
await storage.saveServerEndpoint(server.clientIdentifier, newUrl);
final newEndpoints = server.prioritizedEndpointUrls(preferredFirst: newUrl);
await client.updateEndpointPreferences(newEndpoints, switchToFirst: true);
}
/// Continues draining the connection optimization stream in the background,
/// switching the client to any better endpoint found.
void _drainOptimizationStream(
@@ -139,8 +151,6 @@ class MultiServerManager {
required PlexServer server,
required StorageService storage,
}) {
final serverId = server.clientIdentifier;
() async {
try {
while (await streamIterator.moveNext()) {
@@ -157,9 +167,7 @@ class MultiServerManager {
error: {'from': client.config.baseUrl, 'to': newUrl, 'type': connection.displayType},
);
await storage.saveServerEndpoint(serverId, newUrl);
final newEndpoints = server.prioritizedEndpointUrls(preferredFirst: newUrl);
await client.updateEndpointPreferences(newEndpoints, switchToFirst: true);
await _promoteEndpoint(client: client, server: server, storage: storage, newUrl: newUrl);
}
} catch (e, stackTrace) {
appLogger.w('Background connection optimization failed for ${server.name}', error: e, stackTrace: stackTrace);
@@ -174,7 +182,7 @@ class MultiServerManager {
Future<int> connectToAllServers(
List<PlexServer> servers, {
String? clientIdentifier,
Duration timeout = ConnectionTimeouts.connectAll,
Duration timeout = ConnectionTimeouts.perServerConnect,
Function(String serverId, PlexClient client)? onServerConnected,
Function(String serverId, Object error)? onServerFailed,
}) async {
@@ -190,16 +198,18 @@ class MultiServerManager {
final effectiveClientId = clientIdentifier ?? DateTime.now().millisecondsSinceEpoch.toString();
_clientIdentifier = effectiveClientId;
// Create connection tasks for all servers
// Create connection tasks for all servers (timeout is inside each task
// so a timed-out task cannot keep mutating manager state).
final connectionFutures = servers.map((server) async {
final serverId = server.clientIdentifier;
try {
appLogger.d('Attempting connection to server: ${server.name}');
final client = await _createClientForServer(server: server, clientIdentifier: effectiveClientId);
final client = await _createClientForServer(server: server, clientIdentifier: effectiveClientId).timeout(timeout);
// Store the client and server info
_clients[serverId]?.close();
_clients[serverId] = client;
_servers[serverId] = server;
_serverStatus[serverId] = true;
@@ -208,6 +218,12 @@ class MultiServerManager {
appLogger.i('Successfully connected to ${server.name}');
return serverId;
} on TimeoutException {
appLogger.w('Server connection timed out for ${server.name}');
_servers[serverId] = server;
_serverStatus[serverId] = false;
onServerFailed?.call(serverId, TimeoutException('Connection to ${server.name} timed out'));
return null;
} catch (e, stackTrace) {
appLogger.e('Failed to connect to ${server.name}', error: e, stackTrace: stackTrace);
@@ -220,18 +236,7 @@ class MultiServerManager {
}
});
// Wait for all connections with timeout
final results = await Future.wait(
connectionFutures.map(
(f) => f.timeout(
timeout,
onTimeout: () {
appLogger.w('Server connection timed out');
return null;
},
),
),
);
final results = await Future.wait(connectionFutures);
// Count successful connections
final successCount = results.where((id) => id != null).length;
@@ -261,6 +266,7 @@ class MultiServerManager {
final client = await _createClientForServer(server: server, clientIdentifier: effectiveClientId);
// Store
_clients[serverId]?.close();
_clients[serverId] = client;
_servers[serverId] = server;
_serverStatus[serverId] = true;
@@ -283,7 +289,7 @@ class MultiServerManager {
/// Remove a server connection
void removeServer(String serverId) {
_clients.remove(serverId);
_clients.remove(serverId)?.close();
_servers.remove(serverId);
_serverStatus.remove(serverId);
_statusController.add(Map.from(_serverStatus));
@@ -432,15 +438,11 @@ class MultiServerManager {
continue;
}
// Save the new endpoint
await storage.saveServerEndpoint(serverId, newUrl);
// Actively switch the running client to the better endpoint
if (client != null) {
final newEndpoints = server.prioritizedEndpointUrls(preferredFirst: newUrl);
await client.updateEndpointPreferences(newEndpoints, switchToFirst: true);
await _promoteEndpoint(client: client, server: server, storage: storage, newUrl: newUrl);
appLogger.i('Switched ${server.name} to better endpoint: $newUrl', error: {'type': connection.displayType});
} else {
await storage.saveServerEndpoint(serverId, newUrl);
appLogger.i('Updated optimal endpoint for ${server.name}: $newUrl', error: {'type': connection.displayType});
}
}
@@ -461,6 +463,7 @@ class MultiServerManager {
appLogger.d('Attempting reconnection for ${server.name}');
final client = await _createClientForServer(server: server, clientIdentifier: clientId);
_clients[serverId]?.close();
_clients[serverId] = client;
updateServerStatus(serverId, true);
appLogger.i('Successfully reconnected to ${server.name}');
@@ -547,6 +550,9 @@ class MultiServerManager {
_reconnectDebounce.clear();
_activeHealthCheck = null;
_activeReconnect = null;
for (final client in _clients.values) {
client.close();
}
_clients.clear();
_servers.clear();
_serverStatus.clear();
+2 -2
View File
@@ -67,12 +67,12 @@ class PlaybackProgressTracker {
}
// Send initial progress immediately (don't wait for first timer tick)
if (player.state.playing) {
if (player.state.isActive) {
_sendProgress('playing');
}
_progressTimer = Timer.periodic(updateInterval, (timer) {
if (player.state.playing) {
if (player.state.isActive) {
_pausedTickCounter = 0;
// Skip ticks when backing off after consecutive failures to avoid
// flooding the network with doomed requests during an outage.
+52 -58
View File
@@ -1,5 +1,4 @@
import 'dart:async';
import 'package:dio/dio.dart';
import 'package:uuid/uuid.dart';
import 'storage_service.dart';
import 'plex_client.dart';
@@ -8,7 +7,8 @@ import '../models/plex_home.dart';
import '../models/user_switch_response.dart';
import '../utils/app_logger.dart';
import '../utils/connection_constants.dart';
import '../utils/http_client.dart';
import '../utils/plex_http_client.dart';
import '../utils/plex_http_exception.dart';
/// Redacts the middle of an IP address or hostname for safe logging.
/// E.g. `192.168.1.50` → `192.***.***.50`, `my.server.example.com` → `my.***.***. com`.
@@ -45,16 +45,17 @@ class PlexAuthService {
static const String _plexApiBase = 'https://plex.tv/api/v2';
static const String _clientsApi = 'https://clients.plex.tv/api/v2';
final Dio _dio;
final PlexHttpClient _http;
final String _clientIdentifier;
PlexAuthService._(this._dio, this._clientIdentifier);
PlexAuthService._(this._http, this._clientIdentifier);
static Future<PlexAuthService> create() async {
final storage = await StorageService.getInstance();
final dio = Dio(
BaseOptions(connectTimeout: ConnectionTimeouts.plexTvConnect, receiveTimeout: ConnectionTimeouts.plexTvReceive),
)..httpClientAdapter = createHttp2Adapter();
final http = PlexHttpClient(
connectTimeout: ConnectionTimeouts.plexTvConnect,
receiveTimeout: ConnectionTimeouts.plexTvReceive,
);
// Get or create client identifier
String? clientIdentifier = storage.getClientIdentifier();
@@ -63,12 +64,12 @@ class PlexAuthService {
await storage.saveClientIdentifier(clientIdentifier);
}
return PlexAuthService._(dio, clientIdentifier);
return PlexAuthService._(http, clientIdentifier);
}
String get clientIdentifier => _clientIdentifier;
Options _getCommonOptions({String? authToken}) {
Map<String, String> _getCommonHeaders({String? authToken}) {
final headers = {
'Accept': 'application/json',
'X-Plex-Product': _appName,
@@ -79,18 +80,30 @@ class PlexAuthService {
headers['X-Plex-Token'] = authToken;
}
return Options(headers: headers);
return headers;
}
Future<Response> _getUser(String authToken) {
return _dio.get('$_plexApiBase/user', options: _getCommonOptions(authToken: authToken));
Future<PlexResponse> _getUser(String authToken) {
return _http.get('$_plexApiBase/user', headers: _getCommonHeaders(authToken: authToken));
}
/// Throw [PlexHttpException] if the response indicates a client/server error.
void _checkStatus(PlexResponse response) {
if (response.statusCode >= 400) {
throw PlexHttpException(
type: PlexHttpErrorType.unknown,
statusCode: response.statusCode,
responseData: response.data,
message: 'HTTP ${response.statusCode}',
);
}
}
/// Verify if a plex.tv token is valid
Future<bool> verifyToken(String authToken) async {
try {
await _getUser(authToken);
return true;
final response = await _getUser(authToken);
return response.statusCode == 200;
} catch (e) {
return false;
}
@@ -98,8 +111,8 @@ class PlexAuthService {
/// Create a PIN for authentication
Future<Map<String, dynamic>> createPin() async {
final response = await _dio.post('$_plexApiBase/pins?strong=true', options: _getCommonOptions());
final response = await _http.post('$_plexApiBase/pins?strong=true', headers: _getCommonHeaders());
_checkStatus(response);
return response.data as Map<String, dynamic>;
}
@@ -117,7 +130,7 @@ class PlexAuthService {
/// Poll the PIN to check if it has been claimed
Future<String?> checkPin(int pinId) async {
try {
final response = await _dio.get('$_plexApiBase/pins/$pinId', options: _getCommonOptions());
final response = await _http.get('$_plexApiBase/pins/$pinId', headers: _getCommonHeaders());
final data = response.data as Map<String, dynamic>;
return data['authToken'] as String?;
@@ -154,11 +167,13 @@ class PlexAuthService {
/// Fetch available Plex servers for the authenticated user
Future<List<PlexServer>> fetchServers(String authToken) async {
final response = await _dio.get(
final response = await _http.get(
'$_clientsApi/resources?includeHttps=1&includeRelay=1&includeIPv6=1',
options: _getCommonOptions(authToken: authToken),
headers: _getCommonHeaders(authToken: authToken),
);
_checkStatus(response);
final List<dynamic> resources = response.data as List<dynamic>;
// Filter for server resources and map to PlexServer objects
@@ -191,21 +206,21 @@ class PlexAuthService {
/// Get user information
Future<Map<String, dynamic>> getUserInfo(String authToken) async {
final response = await _getUser(authToken);
_checkStatus(response);
return response.data as Map<String, dynamic>;
}
/// Get user profile with preferences (audio/subtitle settings)
Future<PlexUserProfile> getUserProfile(String authToken) async {
final response = await _dio.get('$_clientsApi/user', options: _getCommonOptions(authToken: authToken));
final response = await _http.get('$_clientsApi/user', headers: _getCommonHeaders(authToken: authToken));
_checkStatus(response);
return PlexUserProfile.fromJson(response.data as Map<String, dynamic>);
}
/// Get home users for the authenticated user
Future<PlexHome> getHomeUsers(String authToken) async {
final response = await _dio.get('$_clientsApi/home/users', options: _getCommonOptions(authToken: authToken));
final response = await _http.get('$_clientsApi/home/users', headers: _getCommonHeaders(authToken: authToken));
_checkStatus(response);
return PlexHome.fromJson(response.data as Map<String, dynamic>);
}
@@ -226,15 +241,13 @@ class PlexAuthService {
'pin': ?pin,
};
final queryString = queryParams.entries
.map((e) => '${Uri.encodeComponent(e.key)}=${Uri.encodeComponent(e.value)}')
.join('&');
final response = await _dio.post(
'$_clientsApi/home/users/$userUUID/switch?$queryString',
options: Options(headers: {'Accept': 'application/json', 'Content-Length': '0'}),
final response = await _http.post(
'$_clientsApi/home/users/$userUUID/switch',
queryParameters: queryParams,
headers: {'Accept': 'application/json', 'Content-Length': '0'},
);
_checkStatus(response);
return UserSwitchResponse.fromJson(response.data as Map<String, dynamic>);
}
}
@@ -365,26 +378,6 @@ class PlexServer {
/// Check if server is online using the presence field
bool get isOnline => presence;
PlexConnection? _selectBest(Iterable<PlexConnection> candidates) {
final local = candidates.where((c) => c.local && !c.relay).toList();
if (local.isNotEmpty) return local.first;
final remote = candidates.where((c) => !c.local && !c.relay).toList();
if (remote.isNotEmpty) return remote.first;
final relay = candidates.where((c) => c.relay).toList();
if (relay.isNotEmpty) return relay.first;
if (candidates.isNotEmpty) return candidates.first;
return null;
}
/// Get the best connection URL
/// Priority: local > remote > relay
PlexConnection? getBestConnection() {
return _selectBest(connections);
}
/// Find the best working connection by testing them
/// Returns a Stream that emits connections progressively:
/// 1. First emission: The first connection that responds successfully
@@ -721,7 +714,7 @@ class PlexServer {
);
if (!result.success) {
appLogger.w('HTTPS upgrade failed, staying on HTTP candidate', error: {'url': currentUrl});
appLogger.w('HTTPS upgrade failed, staying on HTTP candidate', error: {'url': currentUrl, 'reason': result.error});
return null;
}
@@ -795,18 +788,19 @@ class PlexServer {
) {
if (entries.isEmpty) return null;
// Sort by latency first, then by protocol (HTTPS > HTTP), then by URL type (prefer plex.direct)
// Sort by protocol first (HTTPS enables H2 multiplexing), then latency, then URL type
entries.sort((a, b) {
final latencyCompare = a.value.latencyMs.compareTo(b.value.latencyMs);
if (latencyCompare != 0) return latencyCompare;
// If latencies are equal, prefer HTTPS over HTTP
// Prefer HTTPS over HTTP
final aIsHttps = a.key.isHttps;
final bIsHttps = b.key.isHttps;
if (aIsHttps && !bIsHttps) return -1;
if (!aIsHttps && bIsHttps) return 1;
// If latencies and protocols are equal, prefer plex.direct URI (isPlexDirectUri = true)
// Within same protocol, sort by latency
final latencyCompare = a.value.latencyMs.compareTo(b.value.latencyMs);
if (latencyCompare != 0) return latencyCompare;
// Prefer plex.direct URI on tie
if (a.key.isPlexDirectUri && !b.key.isPlexDirectUri) return -1;
if (!a.key.isPlexDirectUri && b.key.isPlexDirectUri) return 1;
return 0;
File diff suppressed because it is too large Load Diff
@@ -36,7 +36,7 @@ class ServerConnectionOrchestrator {
required LibrariesProvider librariesProvider,
required OfflineWatchSyncService syncService,
String? clientIdentifier,
Duration timeout = ConnectionTimeouts.connectAll,
Duration timeout = ConnectionTimeouts.perServerConnect,
void Function(String serverId, bool success)? onServerStatus,
}) async {
appLogger.i('Connecting to ${servers.length} servers...');
+3 -4
View File
@@ -1,8 +1,7 @@
import 'dart:convert';
import 'package:dio/dio.dart';
import '../utils/app_logger.dart';
import '../utils/plex_http_exception.dart';
import 'plex_auth_service.dart';
import 'storage_service.dart';
@@ -125,8 +124,8 @@ class ServerRegistry {
await saveServers(updatedServers);
appLogger.i('Refreshed ${updatedServers.length} servers from API');
return ServerRefreshResult.success;
} on DioException catch (e) {
if (e.response?.statusCode == 401) {
} on PlexHttpException catch (e) {
if (e.statusCode == 401) {
appLogger.w('Plex token is invalid (401), re-authentication required');
return ServerRefreshResult.authError;
}
+23
View File
@@ -28,6 +28,8 @@ enum ViewMode { grid, list }
enum EpisodePosterMode { seriesPoster, seasonPoster, episodeThumbnail }
enum SubAssOverride { no, yes, scale, force, strip }
class SettingsService extends BaseSharedPreferencesService {
static const String _keyThemeMode = 'theme_mode';
static const String _keyEnableDebugLogging = 'enable_debug_logging';
@@ -63,6 +65,7 @@ class SettingsService extends BaseSharedPreferencesService {
static const String _keySubtitleBackgroundColor = 'subtitle_background_color';
static const String _keySubtitleBackgroundOpacity = 'subtitle_background_opacity';
static const String _keySubtitlePosition = 'subtitle_position';
static const String _keySubAssOverride = 'sub_ass_override';
static const String _keyAppLocale = 'app_locale';
static const String _keyRememberTrackSelections = 'remember_track_selections';
static const String _keyClickVideoTogglesPlayback = 'click_video_toggles_playback';
@@ -81,6 +84,7 @@ class SettingsService extends BaseSharedPreferencesService {
static const String _keyDownloadOnWifiOnly = 'download_on_wifi_only';
static const String _keyVideoPlayerNavigationEnabled = 'video_player_navigation_enabled';
static const String _keyShowPerformanceOverlay = 'show_performance_overlay';
static const String _keyAutoHidePerformanceOverlay = 'auto_hide_performance_overlay';
static const String _keyMpvConfigEntries = 'mpv_config_entries'; // Legacy
static const String _keyMpvConfigText = 'mpv_config_text';
static const String _keyMpvConfigPresets = 'mpv_config_presets';
@@ -448,6 +452,15 @@ class SettingsService extends BaseSharedPreferencesService {
return prefs.getInt(_keySubtitlePosition) ?? 100; // Default: bottom
}
// Sub ASS Override
Future<void> setSubAssOverride(SubAssOverride mode) async {
await prefs.setString(_keySubAssOverride, mode.name);
}
SubAssOverride getSubAssOverride() {
return _getEnumValue(_keySubAssOverride, SubAssOverride.values, SubAssOverride.no);
}
// Keyboard Shortcuts (Legacy String-based)
Map<String, String> getDefaultKeyboardShortcuts() {
return {
@@ -612,6 +625,15 @@ class SettingsService extends BaseSharedPreferencesService {
return prefs.getBool(_keyShowPerformanceOverlay) ?? false; // Default: disabled
}
// Auto-hide performance overlay (fade with playback controls)
Future<void> setAutoHidePerformanceOverlay(bool enabled) async {
await prefs.setBool(_keyAutoHidePerformanceOverlay, enabled);
}
bool getAutoHidePerformanceOverlay() {
return prefs.getBool(_keyAutoHidePerformanceOverlay) ?? true; // Default: enabled
}
// Helper methods for HotKey serialization
static const _modifierMap = <String, HotKeyModifier>{
'alt': HotKeyModifier.alt,
@@ -1356,6 +1378,7 @@ class SettingsService extends BaseSharedPreferencesService {
prefs.remove(_keyDownloadOnWifiOnly),
prefs.remove(_keyVideoPlayerNavigationEnabled),
prefs.remove(_keyShowPerformanceOverlay),
prefs.remove(_keyAutoHidePerformanceOverlay),
prefs.remove(_keyMpvConfigEntries),
prefs.remove(_keyMpvConfigText),
prefs.remove(_keyMpvConfigPresets),
+2 -3
View File
@@ -2,9 +2,8 @@ import 'dart:io';
import 'package:auto_updater/auto_updater.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:dio/dio.dart';
import 'package:logger/logger.dart';
import 'package:plezy/utils/http_client.dart';
import 'package:plezy/utils/plex_http_client.dart';
import 'package:shared_preferences/shared_preferences.dart';
/// Service to check for new versions on GitHub
@@ -157,7 +156,7 @@ class UpdateService {
final response = await httpClient.get(
'https://api.github.com/repos/$_githubRepo/releases/latest',
options: Options(headers: {'Accept': 'application/vnd.github+json'}),
headers: {'Accept': 'application/vnd.github+json'},
);
if (response.statusCode == 200) {
+13 -6
View File
@@ -4,6 +4,7 @@ import 'package:flutter/services.dart';
import '../models/plex_metadata.dart';
import '../utils/app_logger.dart';
import '../utils/content_utils.dart';
import 'plex_client.dart';
import 'settings_service.dart' show EpisodePosterMode;
@@ -54,8 +55,9 @@ class WatchNextService {
/// Sync On Deck items to Watch Next row.
Future<bool> syncFromOnDeck(
List<PlexMetadata> onDeckItems,
PlexClient Function(String serverId) getClientForServerId,
) async {
PlexClient Function(String serverId) getClientForServerId, {
bool hideSpoilers = false,
}) async {
if (!Platform.isAndroid) return false;
try {
@@ -63,7 +65,7 @@ class WatchNextService {
if (!supported) return false;
final items = onDeckItems.map((item) {
return _convertToWatchNextItem(item, getClientForServerId);
return _convertToWatchNextItem(item, getClientForServerId, hideSpoilers: hideSpoilers);
}).toList();
return await _channel.invokeMethod<bool>('sync', {'items': items}) ?? false;
@@ -111,15 +113,20 @@ class WatchNextService {
Map<String, dynamic> _convertToWatchNextItem(
PlexMetadata item,
PlexClient Function(String serverId) getClientForServerId,
) {
PlexClient Function(String serverId) getClientForServerId, {
bool hideSpoilers = false,
}) {
final contentId = _buildContentId(item.serverId, item.ratingKey);
String? posterUri;
try {
if (item.serverId != null) {
final client = getClientForServerId(item.serverId!);
final thumbPath = item.posterThumb(mode: EpisodePosterMode.episodeThumbnail, mixedHubContext: true);
String? thumbPath;
if (hideSpoilers && item.shouldHideSpoiler) {
thumbPath = item.spoilerSafeArt;
}
thumbPath ??= item.posterThumb(mode: EpisodePosterMode.episodeThumbnail, mixedHubContext: true);
if (thumbPath != null) {
posterUri = client.getThumbnailUrl(thumbPath);
}
+6 -7
View File
@@ -8,19 +8,18 @@ class ConnectionTimeouts {
/// parallel (used in [PlexServer.findBestWorkingConnection]).
static const connectionRace = Duration(seconds: 2);
/// Dio connect timeout for individual HTTP requests to a Plex server.
/// HTTP connect timeout for individual HTTP requests to a Plex server.
static const connect = Duration(seconds: 10);
/// Timeout for [MultiServerManager.connectToAllServers] — the maximum time
/// to wait for each server's connection future.
static const connectAll = Duration(seconds: 4);
/// Per-server connection budget: preferred probe + race + HTTPS upgrade attempt + 1s buffer.
static const perServerConnect = Duration(milliseconds: 1500 + 2000 + 2000 + 1000);
/// Dio receive timeout for streaming/large responses from a Plex server.
/// HTTP receive timeout for streaming/large responses from a Plex server.
static const receive = Duration(seconds: 120);
/// Dio connect timeout for plex.tv / clients.plex.tv API requests.
/// HTTP connect timeout for plex.tv / clients.plex.tv API requests.
static const plexTvConnect = Duration(seconds: 5);
/// Dio receive timeout for plex.tv / clients.plex.tv API responses.
/// HTTP receive timeout for plex.tv / clients.plex.tv API responses.
static const plexTvReceive = Duration(seconds: 10);
}
+3
View File
@@ -108,4 +108,7 @@ extension PlexMetadataType on PlexMetadata {
}
return true;
}
/// Non-spoiler art path for episodes (show/season background).
String? get spoilerSafeArt => grandparentArt ?? art;
}
+60 -12
View File
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../focus/focusable_button.dart';
import '../focus/input_mode_tracker.dart';
import '../i18n/strings.g.dart';
import '../widgets/app_icon.dart';
import '../widgets/focusable_list_tile.dart';
@@ -130,11 +132,23 @@ Future<String?> showTextInputDialog(
required String labelText,
required String hintText,
String? initialValue,
String? confirmText,
TextInputType? keyboardType,
List<TextInputFormatter>? inputFormatters,
String? Function(String)? validator,
}) {
return showDialog<String>(
context: context,
builder: (context) =>
_TextInputDialog(title: title, labelText: labelText, hintText: hintText, initialValue: initialValue),
builder: (context) => _TextInputDialog(
title: title,
labelText: labelText,
hintText: hintText,
initialValue: initialValue,
confirmText: confirmText,
keyboardType: keyboardType,
inputFormatters: inputFormatters,
validator: validator,
),
);
}
@@ -218,8 +232,21 @@ class _TextInputDialog extends StatefulWidget {
final String labelText;
final String hintText;
final String? initialValue;
final String? confirmText;
final TextInputType? keyboardType;
final List<TextInputFormatter>? inputFormatters;
final String? Function(String)? validator;
const _TextInputDialog({required this.title, required this.labelText, required this.hintText, this.initialValue});
const _TextInputDialog({
required this.title,
required this.labelText,
required this.hintText,
this.initialValue,
this.confirmText,
this.keyboardType,
this.inputFormatters,
this.validator,
});
@override
State<_TextInputDialog> createState() => _TextInputDialogState();
@@ -243,9 +270,10 @@ class _TextInputDialogState extends State<_TextInputDialog> {
}
void _submit() {
if (_controller.text.isNotEmpty) {
Navigator.pop(context, _controller.text);
}
final text = _controller.text;
if (text.isEmpty) return;
if (widget.validator != null && widget.validator!(text) != null) return;
Navigator.pop(context, text);
}
@override
@@ -256,6 +284,8 @@ class _TextInputDialogState extends State<_TextInputDialog> {
controller: _controller,
autofocus: true,
decoration: InputDecoration(labelText: widget.labelText, hintText: widget.hintText),
keyboardType: widget.keyboardType,
inputFormatters: widget.inputFormatters,
textInputAction: TextInputAction.done,
onSubmitted: (_) => _saveFocusNode.requestFocus(),
),
@@ -267,7 +297,7 @@ class _TextInputDialogState extends State<_TextInputDialog> {
FocusableButton(
focusNode: _saveFocusNode,
onPressed: _submit,
child: TextButton(onPressed: _submit, child: Text(t.common.save)),
child: TextButton(onPressed: _submit, child: Text(widget.confirmText ?? t.common.save)),
),
],
);
@@ -280,18 +310,27 @@ Future<T?> showOptionPickerDialog<T>(
BuildContext context, {
required String title,
required List<({IconData icon, String label, T value})> options,
Future<T?> Function(T value)? onBeforeClose,
}) {
final focusFirstItem = InputModeTracker.isKeyboardMode(context);
return showDialog<T>(
context: context,
builder: (context) => _OptionPickerDialog<T>(title: title, options: options),
builder: (context) => _OptionPickerDialog<T>(
title: title,
options: options,
focusFirstItem: focusFirstItem,
onBeforeClose: onBeforeClose,
),
);
}
class _OptionPickerDialog<T> extends StatefulWidget {
final String title;
final List<({IconData icon, String label, T value})> options;
final bool focusFirstItem;
final Future<T?> Function(T value)? onBeforeClose;
const _OptionPickerDialog({required this.title, required this.options});
const _OptionPickerDialog({required this.title, required this.options, this.focusFirstItem = false, this.onBeforeClose});
@override
State<_OptionPickerDialog<T>> createState() => _OptionPickerDialogState<T>();
@@ -304,7 +343,9 @@ class _OptionPickerDialogState<T> extends State<_OptionPickerDialog<T>> {
void initState() {
super.initState();
_initialFocusNode = FocusNode(debugLabel: 'OptionPickerInitialFocus');
FocusUtils.requestFocusAfterBuild(this, _initialFocusNode);
if (widget.focusFirstItem) {
FocusUtils.requestFocusAfterBuild(this, _initialFocusNode);
}
}
@override
@@ -321,11 +362,18 @@ class _OptionPickerDialogState<T> extends State<_OptionPickerDialog<T>> {
children: List.generate(widget.options.length, (index) {
final option = widget.options[index];
return FocusableListTile(
focusNode: index == 0 ? _initialFocusNode : null,
focusNode: index == 0 && widget.focusFirstItem ? _initialFocusNode : null,
leading: AppIcon(option.icon, fill: 1, size: 24),
title: Text(option.label, style: Theme.of(context).textTheme.bodyLarge),
contentPadding: const EdgeInsets.symmetric(horizontal: 24, vertical: 4),
onTap: () => Navigator.pop(context, option.value),
onTap: () async {
if (widget.onBeforeClose != null) {
final result = await widget.onBeforeClose!(option.value);
if (context.mounted) Navigator.pop(context, result);
} else {
Navigator.pop(context, option.value);
}
},
);
}),
);
+123
View File
@@ -0,0 +1,123 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:material_symbols_icons/symbols.dart';
import '../i18n/strings.g.dart';
import '../models/plex_metadata.dart';
import '../providers/download_provider.dart';
import '../services/plex_client.dart';
import 'dialogs.dart';
import 'download_version_utils.dart';
/// Dialog option for the download picker. Typed to avoid stringly-typed values.
enum _DownloadChoice { all, unwatched, next5, next10, custom }
/// Shows download options dialog for shows/seasons, then queues the download.
/// For movies/episodes, queues directly without a dialog.
/// Returns the number of items queued, or null if cancelled.
Future<int?> showDownloadOptionsAndQueue(
BuildContext context, {
required PlexMetadata metadata,
required PlexClient client,
required DownloadProvider downloadProvider,
}) async {
final mt = metadata.mediaType;
var filter = DownloadFilter.all;
int? maxCount;
if (mt == PlexMediaType.show || mt == PlexMediaType.season) {
int? customCount;
final selected = await showOptionPickerDialog<_DownloadChoice>(
context,
title: t.downloads.downloadNow,
options: [
(icon: Symbols.download_rounded, label: t.downloads.allEpisodes, value: _DownloadChoice.all),
(icon: Symbols.visibility_off_rounded, label: t.downloads.unwatchedOnly, value: _DownloadChoice.unwatched),
(icon: Symbols.filter_5_rounded, label: t.downloads.nextNUnwatched(count: 5), value: _DownloadChoice.next5),
(icon: Symbols.filter_9_plus_rounded, label: t.downloads.nextNUnwatched(count: 10), value: _DownloadChoice.next10),
(icon: Symbols.tune_rounded, label: t.downloads.customAmount, value: _DownloadChoice.custom),
],
onBeforeClose: (value) async {
if (value != _DownloadChoice.custom) return value;
customCount = await _showEpisodeCountDialog(context);
return customCount != null ? value : null;
},
);
if (selected == null || !context.mounted) return null;
switch (selected) {
case _DownloadChoice.all:
break;
case _DownloadChoice.unwatched:
filter = DownloadFilter.unwatched;
case _DownloadChoice.next5:
filter = DownloadFilter.unwatched;
maxCount = 5;
case _DownloadChoice.next10:
filter = DownloadFilter.unwatched;
maxCount = 10;
case _DownloadChoice.custom:
filter = DownloadFilter.unwatched;
maxCount = customCount;
}
}
if (!context.mounted) return null;
final versionConfig = await resolveDownloadVersion(context, metadata, client);
if (versionConfig == null || !context.mounted) return null;
return await downloadProvider.queueDownload(
metadata,
client,
versionConfig: versionConfig,
filter: filter,
maxCount: maxCount,
);
}
/// Shows download options dialog for playlists, then queues the download.
/// Returns the number of items queued, or null if cancelled.
Future<int?> showPlaylistDownloadOptionsAndQueue(
BuildContext context, {
required List<PlexMetadata> items,
required PlexClient client,
required DownloadProvider downloadProvider,
}) async {
final selected = await showOptionPickerDialog<DownloadFilter>(
context,
title: t.downloads.downloadNow,
options: [
(icon: Symbols.download_rounded, label: t.downloads.allEpisodes, value: DownloadFilter.all),
(icon: Symbols.visibility_off_rounded, label: t.downloads.unwatchedOnly, value: DownloadFilter.unwatched),
],
);
if (selected == null || !context.mounted) return null;
return await downloadProvider.queuePlaylistDownload(
items,
client,
filter: selected,
);
}
Future<int?> _showEpisodeCountDialog(BuildContext context) async {
final result = await showTextInputDialog(
context,
title: t.downloads.howManyEpisodes,
labelText: '',
hintText: '',
confirmText: t.common.ok,
keyboardType: TextInputType.number,
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
validator: (text) {
final n = int.tryParse(text);
if (n == null || n <= 0) return '';
return null;
},
);
if (result == null) return null;
return int.tryParse(result);
}
@@ -1,12 +1,5 @@
import 'dart:ui' show VoidCallback;
import 'package:dio/dio.dart';
import '../utils/app_logger.dart';
/// Key used to stamp requests with the failover generation they were issued under.
const _generationKey = '_failoverGeneration';
/// Maintains the list of endpoints we can cycle through when one fails.
class EndpointFailoverManager {
EndpointFailoverManager(List<String> urls) {
@@ -72,131 +65,3 @@ class EndpointFailoverManager {
_currentIndex = _currentIndex.clamp(0, _endpoints.length - 1);
}
}
/// Dio interceptor that retries failed requests on the next available endpoint.
class EndpointFailoverInterceptor extends Interceptor {
EndpointFailoverInterceptor({
required Dio dio,
required this.endpointManager,
required Future<void> Function(String newBaseUrl) onEndpointSwitch,
this.onAllEndpointsExhausted,
}) : _dio = dio,
_onEndpointSwitch = onEndpointSwitch;
final Dio _dio;
final EndpointFailoverManager endpointManager;
final Future<void> Function(String newBaseUrl) _onEndpointSwitch;
final VoidCallback? onAllEndpointsExhausted;
bool _isSwitching = false;
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
// Stamp every outgoing request with the current failover generation so
// we can detect stale requests in onError.
options.extra[_generationKey] = endpointManager.generation;
handler.next(options);
}
@override
void onError(DioException err, ErrorInterceptorHandler handler) async {
if (_isSwitching || !_shouldAttemptFailover(err)) {
handler.next(err);
return;
}
// If the endpoint changed since this request was dispatched, the request
// timed out on an already-abandoned endpoint. Don't cascade another switch.
final requestGeneration = err.requestOptions.extra[_generationKey] as int?;
if (requestGeneration != null && requestGeneration != endpointManager.generation) {
appLogger.d(
'Skipping failover for stale request (generation $requestGeneration != ${endpointManager.generation})',
error: {'path': err.requestOptions.path},
);
handler.next(err);
return;
}
if (!endpointManager.hasFallback) {
// All endpoints exhausted — reset to first so the next failure cycle
// starts from the preferred endpoint (handles transient network outages).
endpointManager.resetToFirst();
onAllEndpointsExhausted?.call();
handler.next(err);
return;
}
final failedEndpoint = endpointManager.current;
appLogger.w(
'Endpoint request failed, evaluating failover',
error: {'endpoint': failedEndpoint, 'type': err.type.name, 'statusCode': err.response?.statusCode},
stackTrace: err.stackTrace,
);
final nextBaseUrl = endpointManager.moveToNext();
if (nextBaseUrl == null) {
appLogger.w('Endpoint failure but no fallback endpoints remain', error: {'failedEndpoint': failedEndpoint});
handler.next(err);
return;
}
_isSwitching = true;
try {
appLogger.i(
'Switching Plex endpoint after request failure',
error: {'from': failedEndpoint, 'to': nextBaseUrl, 'path': err.requestOptions.path},
);
await _onEndpointSwitch(nextBaseUrl);
final response = await _retryRequest(err.requestOptions);
appLogger.i('Endpoint failover retry succeeded', error: {'newEndpoint': nextBaseUrl});
handler.resolve(response);
} on DioException catch (dioError) {
appLogger.w(
'Endpoint failover retry failed',
error: {'newEndpoint': nextBaseUrl, 'type': dioError.type.name, 'statusCode': dioError.response?.statusCode},
stackTrace: dioError.stackTrace,
);
handler.next(dioError);
} catch (_) {
handler.next(err);
} finally {
_isSwitching = false;
}
}
bool _shouldAttemptFailover(DioException error) {
if (error.type == DioExceptionType.connectionTimeout ||
error.type == DioExceptionType.receiveTimeout ||
error.type == DioExceptionType.sendTimeout ||
error.type == DioExceptionType.connectionError) {
return true;
}
return false;
}
Future<Response<dynamic>> _retryRequest(RequestOptions requestOptions) {
final options = Options(
method: requestOptions.method,
headers: requestOptions.headers,
responseType: requestOptions.responseType,
contentType: requestOptions.contentType,
followRedirects: requestOptions.followRedirects,
receiveDataWhenStatusError: requestOptions.receiveDataWhenStatusError,
validateStatus: requestOptions.validateStatus,
sendTimeout: requestOptions.sendTimeout,
receiveTimeout: requestOptions.receiveTimeout,
extra: requestOptions.extra,
listFormat: requestOptions.listFormat,
);
return _dio.request<dynamic>(
requestOptions.path,
data: requestOptions.data,
queryParameters: requestOptions.queryParameters,
options: options,
cancelToken: requestOptions.cancelToken,
onSendProgress: requestOptions.onSendProgress,
onReceiveProgress: requestOptions.onReceiveProgress,
);
}
}
+5 -5
View File
@@ -1,14 +1,14 @@
import 'package:dio/dio.dart';
import '../i18n/strings.g.dart';
import 'app_logger.dart';
import 'plex_http_exception.dart';
/// Shared helpers for translating network errors into user-friendly messages.
String mapDioErrorToMessage(DioException error, {required String context}) {
String mapHttpErrorToMessage(PlexHttpException error, {required String context}) {
switch (error.type) {
case DioExceptionType.connectionTimeout:
case DioExceptionType.receiveTimeout:
case PlexHttpErrorType.connectionTimeout:
case PlexHttpErrorType.receiveTimeout:
return t.errors.connectionTimeout(context: context);
case DioExceptionType.connectionError:
case PlexHttpErrorType.connectionError:
return t.errors.connectionFailed;
default:
appLogger.e('Error loading $context', error: error);
-53
View File
@@ -1,53 +0,0 @@
import 'dart:io';
import 'dart:typed_data';
import 'package:dio/dio.dart';
import 'package:dio/io.dart';
import 'package:dio_http2_adapter/dio_http2_adapter.dart';
import 'app_logger.dart';
/// Shared HTTP/2 connection pool. All Dio instances that go through
/// [createHttp2Adapter] reuse the same pool, so connections to the same
/// host are multiplexed instead of duplicated.
final _connectionManager = ConnectionManager(idleTimeout: const Duration(seconds: 15));
final _http1Fallback = IOHttpClientAdapter();
/// Returns an [HttpClientAdapter] that tries HTTP/2 first and falls back
/// to HTTP/1.1 when the server rejects h2 ALPN negotiation.
HttpClientAdapter createHttp2Adapter() => _Http2WithFallbackAdapter(Http2Adapter(_connectionManager));
/// Shared [Dio] instance for ad-hoc HTTP requests that don't go through
/// [PlexClient]. Reuses the global HTTP/2 connection pool.
final httpClient = Dio()..httpClientAdapter = createHttp2Adapter();
class _Http2WithFallbackAdapter implements HttpClientAdapter {
_Http2WithFallbackAdapter(this._h2);
final Http2Adapter _h2;
static final _http1Hosts = <String>{'plex.tv'};
@override
Future<ResponseBody> fetch(
RequestOptions options,
Stream<Uint8List>? requestStream,
Future<void>? cancelFuture,
) async {
if (_http1Hosts.contains(options.uri.host)) {
return _http1Fallback.fetch(options, requestStream, cancelFuture);
}
try {
return await _h2.fetch(options, requestStream, cancelFuture);
} on HandshakeException {
appLogger.d('H2 handshake failed for ${options.uri.host}, falling back to HTTP/1.1');
_http1Hosts.add(options.uri.host);
return _http1Fallback.fetch(options, requestStream, cancelFuture);
}
}
@override
void close({bool force = false}) {
_h2.close(force: force);
}
}
+10
View File
@@ -7,3 +7,13 @@ int? flexibleInt(Object? v) => switch (v) {
String s => int.tryParse(s),
_ => null,
};
/// Parse a value that may be [bool], [int] (0/1), or [String] ('1') to [bool].
/// Returns `false` for `null` or unrecognised values.
/// Handles Plex API responses where boolean fields may arrive as integers.
bool flexibleBool(Object? v) => switch (v) {
bool b => b,
int n => n == 1,
String s => s == '1',
_ => false,
};
+6 -1
View File
@@ -64,6 +64,11 @@ class PlatformDetector {
return platform == TargetPlatform.iOS || platform == TargetPlatform.android;
}
/// Detects if running on a handheld mobile device (phone or tablet, not TV).
static bool isHandheld(BuildContext context) {
return isMobile(context) && !isTV();
}
/// Detects if running on a desktop platform (Windows, macOS, or Linux)
static bool isDesktop(BuildContext context) {
return !isMobile(context);
@@ -86,6 +91,6 @@ class PlatformDetector {
/// Detects if the device is a phone (mobile but not tablet)
static bool isPhone(BuildContext context) {
return isMobile(context) && !isTablet(context);
return isHandheld(context) && !isTablet(context);
}
}
+29
View File
@@ -0,0 +1,29 @@
import 'dart:io' show Platform;
import 'package:cronet_http/cronet_http.dart';
import 'package:cupertino_http/cupertino_http.dart';
import 'package:http/http.dart' as http;
import 'package:http/io_client.dart';
import 'package:win_http/win_http.dart';
/// Shared Cronet engine so all clients reuse the same connection pool.
CronetEngine? _sharedEngine;
http.Client createPlatformClient() {
if (Platform.isAndroid) {
_sharedEngine ??= CronetEngine.build(
cacheMode: CacheMode.memory,
cacheMaxSize: 2 * 1024 * 1024,
enableBrotli: true,
enableHttp2: true,
);
return CronetClient.fromCronetEngine(_sharedEngine!);
}
if (Platform.isIOS || Platform.isMacOS) {
return CupertinoClient.defaultSessionConfiguration();
}
if (Platform.isWindows) {
return WinHttpClient.defaultConfiguration();
}
return IOClient();
}
+6
View File
@@ -0,0 +1,6 @@
import 'package:http/http.dart' as http;
/// Fallback stub — should never be called; actual implementation is selected
/// via conditional imports in `plex_http_client.dart`.
http.Client createPlatformClient() =>
throw UnsupportedError('No platform HTTP client available');
+364
View File
@@ -0,0 +1,364 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:http/http.dart' as http;
import 'app_logger.dart';
import 'isolate_helper.dart';
import 'log_redaction_manager.dart';
import 'plex_http_exception.dart';
// Platform-specific imports are conditional
import 'platform_http_client_stub.dart'
if (dart.library.io) 'platform_http_client_io.dart' as platform;
/// Response from [PlexHttpClient] requests.
class PlexResponse {
final int statusCode;
/// Parsed JSON body (`Map<String, dynamic>` or `List`), or raw `String`
/// for non-JSON responses.
final dynamic data;
final Map<String, String> headers;
PlexResponse({
required this.statusCode,
this.data,
required this.headers,
});
}
/// Abort controller for cancelling in-flight HTTP requests.
///
/// Uses the `package:http` [AbortableRequest] mechanism so the underlying
/// transport (IOClient, CronetClient, CupertinoClient) actually cancels
/// the network operation.
class AbortController {
final _completer = Completer<void>();
/// The future that triggers abort when completed.
Future<void> get trigger => _completer.future;
bool get isAborted => _completer.isCompleted;
void abort() {
if (!_completer.isCompleted) _completer.complete();
}
}
/// HTTP client wrapper providing base URL, default headers, JSON parsing,
/// timeouts, logging, and optional endpoint failover.
class PlexHttpClient {
final http.Client _client;
PlexHttpClient({
http.Client? client,
this.baseUrl = '',
Map<String, String> defaultHeaders = const {},
this.connectTimeout = const Duration(seconds: 10),
this.receiveTimeout = const Duration(seconds: 120),
}) : _client = client ?? platform.createPlatformClient(),
defaultHeaders = Map.of(defaultHeaders);
/// The underlying [http.Client] for direct streaming / multipart requests.
http.Client get inner => _client;
String baseUrl;
Map<String, String> defaultHeaders;
Duration connectTimeout;
Duration receiveTimeout;
// ---------------------------------------------------------------------------
// Public request methods
// ---------------------------------------------------------------------------
Future<PlexResponse> get(
String path, {
Map<String, dynamic>? queryParameters,
Map<String, String>? headers,
Duration? timeout,
AbortController? abort,
}) =>
_send('GET', path,
queryParameters: queryParameters,
headers: headers,
timeout: timeout,
abort: abort);
Future<PlexResponse> post(
String path, {
Map<String, dynamic>? queryParameters,
Map<String, String>? headers,
Object? body,
Duration? timeout,
AbortController? abort,
}) =>
_send('POST', path,
queryParameters: queryParameters,
headers: headers,
body: body,
timeout: timeout,
abort: abort);
Future<PlexResponse> put(
String path, {
Map<String, dynamic>? queryParameters,
Map<String, String>? headers,
Object? body,
Duration? timeout,
AbortController? abort,
}) =>
_send('PUT', path,
queryParameters: queryParameters,
headers: headers,
body: body,
timeout: timeout,
abort: abort);
Future<PlexResponse> delete(
String path, {
Map<String, dynamic>? queryParameters,
Map<String, String>? headers,
Duration? timeout,
AbortController? abort,
}) =>
_send('DELETE', path,
queryParameters: queryParameters,
headers: headers,
timeout: timeout,
abort: abort);
/// Fetch raw bytes (e.g. images, BIF files, subtitles).
Future<Uint8List> getBytes(
String url, {
Map<String, String>? headers,
Duration? timeout,
}) async {
final uri = _isAbsoluteUrl(url) ? Uri.parse(url) : _buildUri(url, null);
final request = http.Request('GET', uri);
request.headers.addAll({...defaultHeaders, ...?headers});
final sw = Stopwatch()..start();
try {
final streamed = await _client
.send(request)
.timeout(timeout ?? connectTimeout);
final bytes = await streamed.stream
.toBytes()
.timeout(timeout ?? receiveTimeout);
sw.stop();
_logResponse('GET', uri, streamed.statusCode, sw.elapsedMilliseconds);
return bytes;
} catch (e) {
sw.stop();
throw PlexHttpException.from(e, uri: uri);
}
}
/// Stream-download a URL directly into a file.
Future<void> downloadFile(
String url,
String filePath, {
Map<String, String>? headers,
Duration? timeout,
}) async {
final uri = _isAbsoluteUrl(url) ? Uri.parse(url) : _buildUri(url, null);
final request = http.Request('GET', uri);
request.headers.addAll({...defaultHeaders, ...?headers});
try {
final streamed = await _client
.send(request)
.timeout(timeout ?? connectTimeout);
final file = File(filePath);
final sink = file.openWrite();
try {
await streamed.stream.pipe(sink);
} finally {
await sink.close();
}
} catch (e) {
throw PlexHttpException.from(e, uri: uri);
}
}
/// Send a streamed request (for image cache etc).
Future<http.StreamedResponse> sendStreamed(http.BaseRequest request) =>
_client.send(request);
void close() => _client.close();
// ---------------------------------------------------------------------------
// Core send implementation
// ---------------------------------------------------------------------------
Future<PlexResponse> _send(
String method,
String path, {
Map<String, dynamic>? queryParameters,
Map<String, String>? headers,
Object? body,
Duration? timeout,
AbortController? abort,
}) async {
final uri = _isAbsoluteUrl(path)
? _appendQuery(Uri.parse(path), queryParameters)
: _buildUri(path, queryParameters);
final mergedHeaders = <String, String>{
...defaultHeaders,
...?headers,
};
// Build the request — use AbortableRequest when abort is provided
final http.Request request;
if (abort != null) {
request = http.AbortableRequest(method, uri, abortTrigger: abort.trigger);
} else {
request = http.Request(method, uri);
}
request.headers.addAll(mergedHeaders);
_setBody(request, body);
final sw = Stopwatch()..start();
try {
// Phase 1: send + receive headers (connect timeout)
final streamed = await _client
.send(request)
.timeout(timeout ?? connectTimeout);
// Phase 2: consume body (receive timeout)
final bytes = await streamed.stream
.toBytes()
.timeout(timeout ?? receiveTimeout);
sw.stop();
_logResponse(method, uri, streamed.statusCode, sw.elapsedMilliseconds);
final data = await _decodeBody(bytes, streamed.headers);
return PlexResponse(
statusCode: streamed.statusCode,
data: data,
headers: streamed.headers,
);
} catch (e) {
sw.stop();
throw PlexHttpException.from(e, uri: uri);
}
}
// ---------------------------------------------------------------------------
// URI building
// ---------------------------------------------------------------------------
/// Build a full URI from [baseUrl] + [path] + [queryParameters].
/// Uses [Uri.encodeComponent] which encodes spaces as `%20` (not `+`).
Uri _buildUri(String path, Map<String, dynamic>? queryParameters) {
final base = baseUrl.endsWith('/') ? baseUrl : '$baseUrl/';
final cleanPath = path.startsWith('/') ? path.substring(1) : path;
final query = _encodeQuery(queryParameters);
final full = query.isEmpty ? '$base$cleanPath' : '$base$cleanPath?$query';
return Uri.parse(full);
}
/// Append query parameters to an already-parsed URI.
Uri _appendQuery(Uri uri, Map<String, dynamic>? queryParameters) {
if (queryParameters == null || queryParameters.isEmpty) return uri;
final query = _encodeQuery(queryParameters);
if (query.isEmpty) return uri;
final existing = uri.query;
final combined = existing.isEmpty ? query : '$existing&$query';
return uri.replace(query: combined);
}
/// Encode query params with `%20` for spaces (not `+`).
/// Null values are omitted (supports Dart's `?value` map entries).
static String _encodeQuery(Map<String, dynamic>? params) {
if (params == null || params.isEmpty) return '';
final parts = <String>[];
for (final entry in params.entries) {
if (entry.value == null) continue;
parts.add(
'${Uri.encodeComponent(entry.key)}='
'${Uri.encodeComponent(entry.value.toString())}',
);
}
return parts.join('&');
}
static bool _isAbsoluteUrl(String url) =>
url.startsWith('http://') || url.startsWith('https://');
// ---------------------------------------------------------------------------
// Body serialization
// ---------------------------------------------------------------------------
/// Set the request body, choosing encoding based on the body type.
void _setBody(http.Request request, Object? body) {
if (body == null) return;
if (body is List<int>) {
request.bodyBytes = Uint8List.fromList(body);
return;
}
if (body is String) {
request.body = body;
return;
}
// Map or List → JSON encode
request.body = jsonEncode(body);
// Only set content-type if the caller hasn't already
if (!request.headers.containsKey('content-type')) {
request.headers['content-type'] = 'application/json; charset=utf-8';
}
}
// ---------------------------------------------------------------------------
// Response decoding
// ---------------------------------------------------------------------------
/// Decode the response body: lenient UTF-8, then JSON parse if applicable.
/// Large payloads are decoded in a background isolate.
Future<dynamic> _decodeBody(
List<int> bytes, Map<String, String> headers) async {
if (bytes.isEmpty) return null;
final contentType = headers['content-type'] ?? '';
final isJson = contentType.contains('json');
// For large JSON payloads, do both UTF-8 decode and JSON parse in a
// single isolate roundtrip to avoid two context switches.
if (isJson && bytes.length > 50 * 1024) {
return await tryIsolateRun(
() => jsonDecode(utf8.decode(bytes, allowMalformed: true)));
}
final body = bytes.length > 50 * 1024
? await tryIsolateRun(() => utf8.decode(bytes, allowMalformed: true))
: utf8.decode(bytes, allowMalformed: true);
return isJson ? jsonDecode(body) : body;
}
// ---------------------------------------------------------------------------
// Logging
// ---------------------------------------------------------------------------
void _logResponse(String method, Uri uri, int statusCode, int ms) {
appLogger.d(
'$method ${LogRedactionManager.redact(uri.toString())} → $statusCode (${ms}ms)',
);
}
}
/// Shared [PlexHttpClient] instance for ad-hoc requests (update checks,
/// log uploads, image fetches, etc). No base URL or default Plex headers.
final httpClient = PlexHttpClient();
+82
View File
@@ -0,0 +1,82 @@
import 'dart:async';
import 'dart:io';
import 'package:http/http.dart';
enum PlexHttpErrorType {
connectionTimeout,
receiveTimeout,
connectionError,
cancelled,
unknown,
}
class PlexHttpException implements Exception {
final PlexHttpErrorType type;
final String? message;
final int? statusCode;
final dynamic responseData;
final Uri? requestUri;
PlexHttpException({
required this.type,
this.message,
this.statusCode,
this.responseData,
this.requestUri,
});
/// Map a caught exception to a [PlexHttpException].
factory PlexHttpException.from(Object error, {Uri? uri}) {
if (error is PlexHttpException) return error;
if (error is RequestAbortedException) {
return PlexHttpException(
type: PlexHttpErrorType.cancelled,
message: error.message,
requestUri: error.uri ?? uri,
);
}
if (error is TimeoutException) {
return PlexHttpException(
type: PlexHttpErrorType.connectionTimeout,
message: error.message,
requestUri: uri,
);
}
if (error is SocketException) {
return PlexHttpException(
type: PlexHttpErrorType.connectionError,
message: error.message,
requestUri: uri,
);
}
if (error is HttpException) {
return PlexHttpException(
type: PlexHttpErrorType.connectionError,
message: error.message,
requestUri: uri,
);
}
if (error is ClientException) {
return PlexHttpException(
type: PlexHttpErrorType.connectionError,
message: error.message,
requestUri: error.uri ?? uri,
);
}
return PlexHttpException(
type: PlexHttpErrorType.unknown,
message: error.toString(),
requestUri: uri,
);
}
@override
String toString() => 'PlexHttpException(${type.name}: $message)';
}
+7
View File
@@ -61,6 +61,13 @@ void showGlobalErrorSnackBar(String message) {
);
}
/// Shows an info snackbar using the root ScaffoldMessenger (survives navigation).
void showGlobalSnackBar(String message, {Duration duration = const Duration(seconds: 2)}) {
rootScaffoldMessengerKey.currentState
?..removeCurrentSnackBar()
..showSnackBar(SnackBar(content: Text(message), duration: duration));
}
/// Shows a success snackbar with a message
///
/// [context] The build context
+13 -8
View File
@@ -31,7 +31,15 @@ class _ArtworkPickerDialogState extends State<ArtworkPickerDialog> {
bool _isLoading = true;
bool _isApplying = false;
bool get _isPosters => widget.element == 'posters';
({int crossAxisCount, double aspectRatio, String title}) get _elementConfig {
return switch (widget.element) {
'posters' => (crossAxisCount: 3, aspectRatio: 2.0 / 3.0, title: t.metadataEdit.selectPoster),
'arts' => (crossAxisCount: 2, aspectRatio: 16.0 / 9.0, title: t.metadataEdit.selectBackground),
'clearLogos' => (crossAxisCount: 2, aspectRatio: 2.5 / 1.0, title: t.metadataEdit.selectLogo),
'squareArts' => (crossAxisCount: 3, aspectRatio: 1.0, title: t.metadataEdit.selectSquareArt),
_ => (crossAxisCount: 3, aspectRatio: 2.0 / 3.0, title: t.metadataEdit.selectPoster),
};
}
@override
void initState() {
@@ -124,10 +132,8 @@ class _ArtworkPickerDialogState extends State<ArtworkPickerDialog> {
@override
Widget build(BuildContext context) {
final title = _isPosters ? t.metadataEdit.selectPoster : t.metadataEdit.selectBackground;
return AlertDialog(
title: Text(title),
title: Text(_elementConfig.title),
content: SizedBox(
width: 500,
height: 400,
@@ -177,15 +183,14 @@ class _ArtworkPickerDialogState extends State<ArtworkPickerDialog> {
}
Widget _buildGrid() {
final crossAxisCount = _isPosters ? 3 : 2;
final aspectRatio = _isPosters ? 2.0 / 3.0 : 16.0 / 9.0;
final config = _elementConfig;
return GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: crossAxisCount,
crossAxisCount: config.crossAxisCount,
crossAxisSpacing: 8,
mainAxisSpacing: 8,
childAspectRatio: aspectRatio,
childAspectRatio: config.aspectRatio,
),
itemCount: _artworkList!.length,
itemBuilder: (context, index) {
+80 -20
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:material_symbols_icons/symbols.dart';
import '../models/plex_file_info.dart';
import '../i18n/strings.g.dart';
import '../utils/scroll_utils.dart';
import 'bottom_sheet_header.dart';
class FileInfoBottomSheet extends StatefulWidget {
@@ -58,7 +59,8 @@ class _FileInfoBottomSheetState extends State<FileInfoBottomSheet> {
const SizedBox(height: 8),
_buildInfoRow(t.fileInfo.codec, widget.fileInfo.videoCodec ?? t.common.unknown),
_buildInfoRow(t.fileInfo.resolution, widget.fileInfo.resolutionFormatted),
_buildInfoRow(t.fileInfo.bitrate, widget.fileInfo.bitrateFormatted),
if (widget.fileInfo.videoBitrate != null)
_buildInfoRow(t.fileInfo.bitrate, widget.fileInfo.videoBitrateFormatted),
_buildInfoRow(t.fileInfo.frameRate, widget.fileInfo.frameRateFormatted),
_buildInfoRow(t.fileInfo.aspectRatio, widget.fileInfo.aspectRatioFormatted),
if (widget.fileInfo.videoProfile != null)
@@ -76,12 +78,26 @@ class _FileInfoBottomSheetState extends State<FileInfoBottomSheet> {
// Audio Section
_buildSectionHeader(t.fileInfo.audio),
const SizedBox(height: 8),
_buildInfoRow(t.fileInfo.codec, widget.fileInfo.audioCodec ?? t.common.unknown),
_buildInfoRow(t.fileInfo.channels, widget.fileInfo.audioChannelsFormatted),
if (widget.fileInfo.audioProfile != null)
_buildInfoRow(t.fileInfo.profile, widget.fileInfo.audioProfile!),
if (widget.fileInfo.audioTracks.isNotEmpty)
for (int i = 0; i < widget.fileInfo.audioTracks.length; i++)
_buildInfoRow('${i + 1}', widget.fileInfo.audioTracks[i].label),
if (widget.fileInfo.audioTracks.isEmpty) ...[
_buildInfoRow(t.fileInfo.codec, widget.fileInfo.audioCodec ?? t.common.unknown),
_buildInfoRow(t.fileInfo.channels, widget.fileInfo.audioChannelsFormatted),
if (widget.fileInfo.audioProfile != null)
_buildInfoRow(t.fileInfo.profile, widget.fileInfo.audioProfile!),
],
const SizedBox(height: 20),
// Subtitles Section
if (widget.fileInfo.subtitleTracks.isNotEmpty) ...[
_buildSectionHeader(t.fileInfo.subtitles),
const SizedBox(height: 8),
for (int i = 0; i < widget.fileInfo.subtitleTracks.length; i++)
_buildInfoRow('${i + 1}', widget.fileInfo.subtitleTracks[i].label),
const SizedBox(height: 20),
],
// File Section
_buildSectionHeader(t.fileInfo.file),
const SizedBox(height: 8),
@@ -90,6 +106,7 @@ class _FileInfoBottomSheetState extends State<FileInfoBottomSheet> {
_buildInfoRow(t.fileInfo.size, widget.fileInfo.fileSizeFormatted),
_buildInfoRow(t.fileInfo.container, widget.fileInfo.container ?? t.common.unknown),
_buildInfoRow(t.fileInfo.duration, widget.fileInfo.durationFormatted),
_buildInfoRow(t.fileInfo.overallBitrate, widget.fileInfo.bitrateFormatted),
const SizedBox(height: 20),
// Advanced Section
@@ -118,22 +135,65 @@ class _FileInfoBottomSheetState extends State<FileInfoBottomSheet> {
}
Widget _buildInfoRow(String label, String value, {bool isMonospace = false}) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 6),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 140,
child: Text(label, style: TextStyle(color: Theme.of(context).textTheme.bodySmall?.color, fontSize: 14)),
),
Expanded(
child: Text(
value,
style: TextStyle(fontSize: 14, fontFamily: isMonospace ? 'monospace' : null),
return _FocusableInfoRow(label: label, value: value, isMonospace: isMonospace);
}
}
class _FocusableInfoRow extends StatefulWidget {
final String label;
final String value;
final bool isMonospace;
const _FocusableInfoRow({required this.label, required this.value, this.isMonospace = false});
@override
State<_FocusableInfoRow> createState() => _FocusableInfoRowState();
}
class _FocusableInfoRowState extends State<_FocusableInfoRow> {
late final FocusNode _focusNode;
@override
void initState() {
super.initState();
_focusNode = FocusNode();
_focusNode.addListener(_onFocusChange);
}
@override
void dispose() {
_focusNode.removeListener(_onFocusChange);
_focusNode.dispose();
super.dispose();
}
void _onFocusChange() {
if (_focusNode.hasFocus) {
scrollContextToCenter(context);
}
}
@override
Widget build(BuildContext context) {
return Focus(
focusNode: _focusNode,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 6),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
width: 140,
child: Text(widget.label, style: TextStyle(color: Theme.of(context).textTheme.bodySmall?.color, fontSize: 14)),
),
),
],
Expanded(
child: Text(
widget.value,
style: TextStyle(fontSize: 14, fontFamily: widget.isMonospace ? 'monospace' : null),
),
),
],
),
),
);
}
+13 -8
View File
@@ -54,6 +54,10 @@ class HubSection extends StatefulWidget {
/// Used to navigate focus to the sidebar.
final VoidCallback? onNavigateToSidebar;
/// When true, removes internal horizontal padding (header + list).
/// Use when the parent already provides edge spacing (e.g. inside Padding(16)).
final bool inset;
const HubSection({
super.key,
required this.hub,
@@ -66,6 +70,7 @@ class HubSection extends StatefulWidget {
this.onBack,
this.onNavigateUp,
this.onNavigateToSidebar,
this.inset = false,
});
@override
@@ -83,7 +88,7 @@ class HubSectionState extends State<HubSection> {
/// Item extent for scroll calculations
double _itemExtent = 0;
static const double _leadingPadding = 12.0;
double get _leadingPadding => widget.inset ? 0.0 : 12.0;
Timer? _longPressTimer;
bool _isSelectKeyDown = false;
@@ -326,13 +331,13 @@ class HubSectionState extends State<HubSection> {
children: [
// Hub header (NOT focusable - titles should not be focusable)
Padding(
padding: const EdgeInsets.fromLTRB(8, 2, 8, 2),
padding: widget.inset ? const EdgeInsets.symmetric(vertical: 2) : const EdgeInsets.fromLTRB(8, 2, 8, 2),
child: ExcludeFocus(
child: InkWell(
onTap: widget.hub.more ? () => _navigateToHubDetail(context) : null,
borderRadius: BorderRadius.circular(tokens(context).radiusSm),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
padding: widget.inset ? const EdgeInsets.symmetric(vertical: 2) : const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
@@ -409,7 +414,7 @@ class HubSectionState extends State<HubSection> {
(9 / 16) // 16:9 for wide layout
: posterWidth * 1.5; // 2:3 for poster layout
final containerHeight = posterHeight + 48;
final containerHeight = posterHeight + 33;
final focusBorderWidth = FocusTheme.focusBorderWidth;
final focusExtra = focusBorderWidth * 2; // border on both sides
_itemExtent = cardWidth + focusExtra + 4;
@@ -422,7 +427,7 @@ class HubSectionState extends State<HubSection> {
controller: scrollController,
scrollDirection: Axis.horizontal,
clipBehavior: Clip.none,
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
padding: widget.inset ? const EdgeInsets.symmetric(vertical: 2) : const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
itemCount: isKeyboardMode ? _totalItemCount : widget.hub.items.length,
itemBuilder: (context, index) {
final isItemFocused = hasFocus && index == _focusedIndex;
@@ -430,7 +435,7 @@ class HubSectionState extends State<HubSection> {
// "View All" card at end
if (index == widget.hub.items.length) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 2),
padding: widget.inset ? const EdgeInsets.only(right: 4) : const EdgeInsets.symmetric(horizontal: 2),
child: FocusBuilders.buildLockedFocusWrapper(
context: context,
isFocused: isItemFocused,
@@ -468,7 +473,7 @@ class HubSectionState extends State<HubSection> {
final item = widget.hub.items[index];
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 2),
padding: widget.inset ? const EdgeInsets.only(right: 4) : const EdgeInsets.symmetric(horizontal: 2),
child: FocusBuilders.buildLockedFocusWrapper(
context: context,
isFocused: isItemFocused,
@@ -496,7 +501,7 @@ class HubSectionState extends State<HubSection> {
)
else
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
padding: widget.inset ? const EdgeInsets.symmetric(vertical: 8) : const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text(
t.messages.noItemsAvailable,
style: Theme.of(context).textTheme.bodySmall?.copyWith(color: Colors.grey),
+2 -1
View File
@@ -234,8 +234,9 @@ class MediaCardState extends State<MediaCard> {
onSecondaryTap: _showContextMenu,
borderRadius: BorderRadius.circular(tokens(context).radiusSm),
child: Padding(
padding: const EdgeInsets.all(3),
padding: const EdgeInsets.fromLTRB(3, 3, 3, 1),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Poster with overlay
+51 -8
View File
@@ -8,6 +8,7 @@ import '../services/play_queue_launcher.dart';
import '../models/plex_metadata.dart';
import '../models/plex_playlist.dart';
import '../utils/download_version_utils.dart';
import '../utils/download_utils.dart';
import '../utils/content_utils.dart';
import '../providers/download_provider.dart';
import '../providers/multi_server_provider.dart';
@@ -157,6 +158,11 @@ class MediaContextMenuState extends State<MediaContextMenu> {
// Shuffle
menuActions.add(_MenuAction(value: 'shuffle', icon: Symbols.shuffle_rounded, label: t.mediaMenu.shufflePlay));
// Download (video playlists only)
if (isPlaylist && (widget.item as PlexPlaylist).playlistType == 'video') {
menuActions.add(_MenuAction(value: 'download_playlist', icon: Symbols.download_rounded, label: t.downloads.downloadNow));
}
// Delete
menuActions.add(_MenuAction(value: 'delete', icon: Symbols.delete_rounded, label: t.common.delete));
@@ -533,6 +539,10 @@ class MediaContextMenuState extends State<MediaContextMenu> {
await _handlePlayExternal(context);
break;
case 'download_playlist':
await _handleDownloadPlaylist(context);
break;
case 'download':
await _handleDownload(context);
break;
@@ -1108,6 +1118,38 @@ class MediaContextMenuState extends State<MediaContextMenu> {
await ExternalPlayerService.launch(context: context, metadata: metadata, client: client);
}
/// Handle download playlist action
Future<void> _handleDownloadPlaylist(BuildContext context) async {
final playlist = widget.item as PlexPlaylist;
final downloadProvider = Provider.of<DownloadProvider>(context, listen: false);
final client = _getClientForItem();
try {
final items = await client.getPlaylist(playlist.ratingKey);
if (!context.mounted) return;
final count = await showPlaylistDownloadOptionsAndQueue(
context,
items: items,
client: client,
downloadProvider: downloadProvider,
);
if (count == null || !context.mounted) return;
final message = count > 1 ? t.downloads.itemsQueued(count: count) : t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
} on CellularDownloadBlockedException {
if (context.mounted) {
showErrorSnackBar(context, t.settings.cellularDownloadBlocked);
}
} catch (e) {
appLogger.e('Failed to queue playlist download', error: e);
if (context.mounted) {
showErrorSnackBar(context, t.messages.errorLoading(error: e.toString()));
}
}
}
/// Handle download action
Future<void> _handleDownload(BuildContext context) async {
final downloadProvider = Provider.of<DownloadProvider>(context, listen: false);
@@ -1115,15 +1157,16 @@ class MediaContextMenuState extends State<MediaContextMenu> {
final client = _getClientForItem();
try {
final versionConfig = await resolveDownloadVersion(context, metadata, client);
if (versionConfig == null) return;
if (!context.mounted) return;
final count = await showDownloadOptionsAndQueue(
context,
metadata: metadata,
client: client,
downloadProvider: downloadProvider,
);
if (count == null || !context.mounted) return;
final count = await downloadProvider.queueDownload(metadata, client, versionConfig: versionConfig);
if (context.mounted) {
final message = count > 1 ? t.downloads.episodesQueued(count: count) : t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
}
final message = count > 1 ? t.downloads.episodesQueued(count: count) : t.downloads.downloadQueued;
showSuccessSnackBar(context, message);
} on CellularDownloadBlockedException {
if (context.mounted) {
showErrorSnackBar(context, t.settings.cellularDownloadBlocked);
@@ -497,7 +497,7 @@ class DesktopVideoControlsState extends State<DesktopVideoControls> {
// Live TV: epoch-based seeking via onLiveSeek
if (_isLive && widget.onLiveSeek != null && widget.currentPositionEpoch != null) {
final stepSeconds = (10.0 * effectiveMultiplier).clamp(1, 300).round();
final stepSeconds = (widget.seekTimeSmall * effectiveMultiplier).clamp(1, 300).round();
final targetEpoch = widget.currentPositionEpoch! + (isForward ? stepSeconds : -stepSeconds);
widget.onLiveSeek!(targetEpoch);
widget.onFocusActivity?.call();
@@ -506,9 +506,8 @@ class DesktopVideoControlsState extends State<DesktopVideoControls> {
if (duration.inMilliseconds <= 0) return KeyEventResult.handled;
// Base step: 0.5% of duration, minimum 500ms, maximum 15s
final baseStepMs = (duration.inMilliseconds * 0.005).clamp(500, 15000).toInt();
final stepMs = (baseStepMs * effectiveMultiplier).clamp(500, 60000).toInt();
final baseStepMs = widget.seekTimeSmall * 1000;
final stepMs = (baseStepMs * effectiveMultiplier).clamp(500, 120000).toInt();
final step = Duration(milliseconds: stepMs);
final newPosition = isForward ? position + step : position - step;
+13 -13
View File
@@ -312,6 +312,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
bool _videoPlayerNavigationEnabled = false;
// Performance overlay
bool _showPerformanceOverlay = false;
bool _autoHidePerformanceOverlay = true;
// Long-press 2x speed state
bool _isLongPressing = false;
// Subtitle visibility toggle state
@@ -603,6 +604,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
_autoSkipDelay = settingsService.getAutoSkipDelay();
_videoPlayerNavigationEnabled = settingsService.getVideoPlayerNavigationEnabled();
_showPerformanceOverlay = settingsService.getShowPerformanceOverlay();
_autoHidePerformanceOverlay = settingsService.getAutoHidePerformanceOverlay();
_clickVideoTogglesPlayback = settingsService.getClickVideoTogglesPlayback();
});
@@ -682,19 +684,9 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
widget.onCycleSubtitleTrack?.call();
}
void _nextChapter() {
// Go to next chapter - this would use your existing chapter navigation
if (widget.onNext != null) {
widget.onNext!();
}
}
void _nextChapter() => _seekToNextChapter();
void _previousChapter() {
// Go to previous chapter - this would use your existing chapter navigation
if (widget.onPrevious != null) {
widget.onPrevious!();
}
}
void _previousChapter() => _seekToPreviousChapter();
@override
void dispose() {
@@ -1917,6 +1909,10 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
final isHorizontal = key == LogicalKeyboardKey.arrowLeft || key == LogicalKeyboardKey.arrowRight;
if (isHorizontal) {
_showControlsWithTimelineFocus();
if (widget.canControl) {
final forward = key == LogicalKeyboardKey.arrowRight;
unawaited(_seekByTime(forward: forward));
}
} else {
_showControlsWithFocus();
}
@@ -2201,7 +2197,11 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
curve: Curves.easeInOut,
top: _showControls && isMobile ? 80.0 : 16.0,
left: 16,
child: IgnorePointer(child: PlayerPerformanceOverlay(player: widget.player)),
child: AnimatedOpacity(
opacity: (!_autoHidePerformanceOverlay || _showControls || _forceShowControls) ? 1.0 : 0.0,
duration: const Duration(milliseconds: 200),
child: IgnorePointer(child: PlayerPerformanceOverlay(player: widget.player)),
),
),
// Screen lock overlay - absorbs all touches when active
if (_isScreenLocked)
@@ -236,7 +236,7 @@ class TrackChapterControls extends StatelessWidget {
buttonIndex++;
// Combined audio & subtitles button
if (_hasMultipleAudioTracks(tracks) || _hasSubtitles(tracks)) {
{
final currentIndex = buttonIndex;
final hasSubs = _hasSubtitles(tracks);
final selectedSub = player.state.track.subtitle;
@@ -477,7 +477,7 @@ class TrackChapterControls extends StatelessWidget {
/// Calculate total button count for navigation
int _getButtonCount(Tracks? tracks, bool isMobile, bool isDesktop) {
int count = 1; // Settings button always shown
if (_hasMultipleAudioTracks(tracks) || _hasSubtitles(tracks)) count++;
count++; // Audio & subtitles button always shown
if (chapters.isNotEmpty && !hideChaptersAndQueue) count++;
if (showQueueButton && onQueueItemSelected != null && !hideChaptersAndQueue) count++;
if (availableVersions.length > 1 && onSwitchVersion != null) count++;
@@ -489,11 +489,6 @@ class TrackChapterControls extends StatelessWidget {
return count;
}
bool _hasMultipleAudioTracks(Tracks? tracks) {
if (tracks == null) return false;
return TrackFilterHelper.hasMultipleTracks<AudioTrack>(tracks.audio);
}
bool _hasSubtitles(Tracks? tracks) {
if (tracks == null) return false;
return TrackFilterHelper.hasTracks<SubtitleTrack>(tracks.subtitle);
+9 -2
View File
@@ -4,6 +4,9 @@ PODS:
- Sparkle
- connectivity_plus (0.0.1):
- FlutterMacOS
- cupertino_http (0.0.1):
- Flutter
- FlutterMacOS
- device_info_plus (0.0.1):
- FlutterMacOS
- file_picker (0.0.1):
@@ -21,7 +24,7 @@ PODS:
- screen_retriever_macos (0.0.1):
- FlutterMacOS
- Sentry/HybridSDK (8.58.0)
- sentry_flutter (9.15.0):
- sentry_flutter (9.16.0):
- Flutter
- FlutterMacOS
- Sentry/HybridSDK (= 8.58.0)
@@ -69,6 +72,7 @@ PODS:
DEPENDENCIES:
- auto_updater_macos (from `Flutter/ephemeral/.symlinks/plugins/auto_updater_macos/macos`)
- connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`)
- cupertino_http (from `Flutter/ephemeral/.symlinks/plugins/cupertino_http/darwin`)
- device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`)
- file_picker (from `Flutter/ephemeral/.symlinks/plugins/file_picker/macos`)
- FlutterMacOS (from `Flutter/ephemeral`)
@@ -97,6 +101,8 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/auto_updater_macos/macos
connectivity_plus:
:path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos
cupertino_http:
:path: Flutter/ephemeral/.symlinks/plugins/cupertino_http/darwin
device_info_plus:
:path: Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos
file_picker:
@@ -133,6 +139,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
auto_updater_macos: 3a42f1a06be6981f1a18be37e6e7bf86aa732118
connectivity_plus: 4adf20a405e25b42b9c9f87feff8f4b6fde18a4e
cupertino_http: 94ac07f5ff090b8effa6c5e2c47871d48ab7c86c
device_info_plus: 4fb280989f669696856f8b129e4a5e3cd6c48f76
file_picker: 7584aae6fa07a041af2b36a2655122d42f578c1a
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
@@ -142,7 +149,7 @@ SPEC CHECKSUMS:
package_info_plus: f0052d280d17aa382b932f399edf32507174e870
screen_retriever_macos: 452e51764a9e1cdb74b3c541238795849f21557f
Sentry: d587a8fe91ca13503ecd69a1905f3e8a0fcf61be
sentry_flutter: 8939e491bc1511868118c96cae47d945e6f69798
sentry_flutter: 31101687061fb85211ebab09ce6eb8db4e9ba74f
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
Sparkle: f4355f9ebbe9b7d932df4980d70f13922ac97b2a
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0

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