feat: jellyfin

This commit is contained in:
edde746
2026-05-01 01:20:36 +02:00
parent 4080c812d2
commit 31d2d9dc98
408 changed files with 56022 additions and 13747 deletions
+10 -2
View File
@@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -uo pipefail
# Git sets GIT_DIR (and friends) for hook invocations. Inside `flutter pub
# run`, that leaks into Flutter's own SDK-version probe (`git describe` from
# Flutter's checkout) and makes Flutter misreport its version as
# `1.35.1-0.0.pre-1`, which then fails dependency resolution. Strip those
# vars so the script behaves the same when invoked from a hook as it does
# from a plain shell.
unset GIT_DIR GIT_INDEX_FILE GIT_WORK_TREE GIT_PREFIX
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$ROOT"
@@ -74,7 +82,7 @@ if ! have_dart_code_linter; then
skip "dart_code_linter unresolved — run 'flutter pub get'"
else
out="$(mktemp)"
dart run dart_code_linter:metrics check-unused-code lib >"$out" 2>&1 || true
flutter pub run dart_code_linter:metrics check-unused-code lib >"$out" 2>&1 || true
if grep -qi "no unused code found" "$out"; then
ok "none"
else
@@ -91,7 +99,7 @@ if ! have_dart_code_linter; then
skip "dart_code_linter unresolved — run 'flutter pub get'"
else
out="$(mktemp)"
dart run dart_code_linter:metrics check-unused-files lib >"$out" 2>&1 || true
flutter pub run dart_code_linter:metrics check-unused-files lib >"$out" 2>&1 || true
if grep -qi "no unused files found" "$out"; then
ok "none"
else
+1
View File
@@ -5,6 +5,7 @@
///
/// Downloads the files automatically if not provided.
library;
import 'dart:io';
// ---------------------------------------------------------------------------