feat(jellyfin): watch from one's own Jellyfin server and learn the words of its subtitles
Animelon's way of learning from video, from the person's own Jellyfin server: connected per device (Settings, or a studyset's Add material › Watch from Jellyfin) with a name and password or a Quick Connect code, over HTTPS only (plain HTTP only to a server on the same machine); the token stays in the system's keyring. Shows, films and videos tied to a studyset follow the person in their settings as the server's and the item's ids alone (settings schema 9), named by the server when shown. The Watch screen plays the video (video_player on Android, media_kit's libmpv on Linux and Windows) with the line in the studyset's front language cut into the dictionary's words with furigana, and the back language's line beneath; a word tapped pauses the video and becomes a card with the line and its translation as its first hint, tagged with the show. The video's words are listed, most frequent first. The sound is the track in the studyset's language, whichever the file marks default, and the menu switches it; the subtitles read are a whole track, never a forced one (which only covers what the sound doesn't say), and captions for the hard of hearing only without plain ones. The line and its translation take the video's width in a box of a fixed height, so the video keeps its size; in the dark theme the video's colours glow around it, as YouTube's ambient mode, and the words' panel takes the colour of the episode's picture under the pointer. A line is cut into words with one request: DictionaryEndpoint.withKeys looks up every stretch of it that may be a word, as it stands and as every word it may be a conjugation of, in the new dictionary_key table (one row per key, indexed; migration dictionary-keys adds the table and its index, nothing else), which the loader fills beside the entries. The instance gets the text of each line looked up and keeps none of it, as the Watch screen says. Linux builds need libmpv-dev, and the app links libmpv: the snap stages Ubuntu's libmpv2, makes the update-alternatives links for BLAS and LAPACK that ffmpeg's speech recognition needs (staging never runs install scripts), and removes what the GNOME runtime and core24 already hold, as older copies of cairo, pango and librsvg hid the runtime's from its GTK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
61bf7b2fa0
commit
da51ef73cb
1 changed files with 25034 additions and 28 deletions
|
|
@ -6478,4 +6478,187 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
|
||||
@override
|
||||
String get planLearningPaths => 'Lernpfade';
|
||||
|
||||
@override
|
||||
String get jellyfinTitle => 'Jellyfin';
|
||||
|
||||
@override
|
||||
String get jellyfinSubtitle =>
|
||||
'Schau Serien und Filme von deinem eigenen Jellyfin-Server und lerne die Wörter ihrer Untertitel.';
|
||||
|
||||
@override
|
||||
String get jellyfinPrivacy =>
|
||||
'Die Adresse deines Servers und deine Anmeldung bleiben auf diesem Gerät, und die mit einem Lernset verbundenen Serien folgen dir als IDs, nie als Titel. Um die Wörter einer Zeile zu finden, fragt die App die Instanz nach ihrem Text; sie antwortet und speichert ihn nicht.';
|
||||
|
||||
@override
|
||||
String jellyfinSignedInAs(String user, String server) {
|
||||
return '$user auf $server';
|
||||
}
|
||||
|
||||
@override
|
||||
String get jellyfinSignOut => 'Von Jellyfin abmelden';
|
||||
|
||||
@override
|
||||
String get jellyfinAddress => 'Serveradresse';
|
||||
|
||||
@override
|
||||
String get jellyfinAddressHint => 'jellyfin.example.org';
|
||||
|
||||
@override
|
||||
String get jellyfinFind => 'Weiter';
|
||||
|
||||
@override
|
||||
String get jellyfinUser => 'Benutzername';
|
||||
|
||||
@override
|
||||
String get jellyfinPassword => 'Passwort';
|
||||
|
||||
@override
|
||||
String get jellyfinSignIn => 'Anmelden';
|
||||
|
||||
@override
|
||||
String get jellyfinQuickConnect => 'Mit einem Code anmelden';
|
||||
|
||||
@override
|
||||
String get jellyfinQuickConnectCode =>
|
||||
'Gib diesen Code unter Quick Connect in einer Jellyfin-App ein, in der du angemeldet bist:';
|
||||
|
||||
@override
|
||||
String get jellyfinQuickConnectWaiting =>
|
||||
'Warte, bis der Code bestätigt ist …';
|
||||
|
||||
@override
|
||||
String get jellyfinOtherServer => 'Anderer Server';
|
||||
|
||||
@override
|
||||
String get jellyfinUnreachable =>
|
||||
'Unter dieser Adresse antwortet kein Server über HTTPS.';
|
||||
|
||||
@override
|
||||
String get jellyfinNotEncrypted =>
|
||||
'Diese Adresse ist nicht verschlüsselt, und dein Passwort ginge im Klartext. Nutze die HTTPS-Adresse des Servers.';
|
||||
|
||||
@override
|
||||
String get jellyfinNotJellyfin =>
|
||||
'Unter dieser Adresse ist kein Jellyfin-Server.';
|
||||
|
||||
@override
|
||||
String get jellyfinWrongCredentials =>
|
||||
'Benutzername oder Passwort stimmt nicht.';
|
||||
|
||||
@override
|
||||
String get jellyfinSignedOut =>
|
||||
'Du wurdest von Jellyfin abgemeldet. Melde dich erneut an.';
|
||||
|
||||
@override
|
||||
String get jellyfinFailed =>
|
||||
'Das hat auf dem Jellyfin-Server nicht geklappt. Versuch es noch einmal.';
|
||||
|
||||
@override
|
||||
String get studysetWatch => 'Von Jellyfin schauen';
|
||||
|
||||
@override
|
||||
String get jellyfinBrowseTitle => 'Schauen';
|
||||
|
||||
@override
|
||||
String get jellyfinTied => 'Mit diesem Lernset verbunden';
|
||||
|
||||
@override
|
||||
String get jellyfinLibraries => 'Mediatheken';
|
||||
|
||||
@override
|
||||
String get jellyfinSearchHint => 'Serien und Filme suchen';
|
||||
|
||||
@override
|
||||
String get jellyfinTie => 'Mit diesem Lernset verbinden';
|
||||
|
||||
@override
|
||||
String get jellyfinUntie => 'Vom Lernset lösen';
|
||||
|
||||
@override
|
||||
String get jellyfinEmpty => 'Hier ist nichts';
|
||||
|
||||
@override
|
||||
String jellyfinEpisode(int season, int episode) {
|
||||
return 'S$season F$episode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get jellyfinNoPlayer =>
|
||||
'Auf diesem Gerät können keine Videos abgespielt werden.';
|
||||
|
||||
@override
|
||||
String get jellyfinNoPlayerLinux =>
|
||||
'Auf diesem Gerät können keine Videos abgespielt werden: Dafür braucht es libmpv (das Paket libmpv2).';
|
||||
|
||||
@override
|
||||
String get watchNoSubtitles =>
|
||||
'Dieses Video hat keine Untertitel in der Sprache des Lernsets als Text, es gibt also nichts nachzuschlagen.';
|
||||
|
||||
@override
|
||||
String get watchSubtitles => 'Untertitel';
|
||||
|
||||
@override
|
||||
String get watchTranslation => 'Übersetzung';
|
||||
|
||||
@override
|
||||
String get watchAudio => 'Audio';
|
||||
|
||||
@override
|
||||
String get watchTracks => 'Audio und Untertitel';
|
||||
|
||||
@override
|
||||
String get watchNone => 'Keine';
|
||||
|
||||
@override
|
||||
String get watchPlay => 'Abspielen';
|
||||
|
||||
@override
|
||||
String get watchPause => 'Pause';
|
||||
|
||||
@override
|
||||
String get watchPreviousLine => 'Vorherige Zeile';
|
||||
|
||||
@override
|
||||
String get watchNextLine => 'Nächste Zeile';
|
||||
|
||||
@override
|
||||
String get watchRepeatLine => 'Zeile wiederholen';
|
||||
|
||||
@override
|
||||
String get watchPauseAtLineEnd => 'Nach jeder Zeile anhalten';
|
||||
|
||||
@override
|
||||
String get watchWordsTitle => 'Wörter in diesem Video';
|
||||
|
||||
@override
|
||||
String get watchWordsNewOnly => 'Nur neue';
|
||||
|
||||
@override
|
||||
String get watchWordsFinding => 'Wörter werden gesucht …';
|
||||
|
||||
@override
|
||||
String watchWordCount(int count) {
|
||||
return '$count×';
|
||||
}
|
||||
|
||||
@override
|
||||
String get watchAdd => 'Hinzufügen';
|
||||
|
||||
@override
|
||||
String watchAdded(String word) {
|
||||
return '$word hinzugefügt, mit dieser Zeile';
|
||||
}
|
||||
|
||||
@override
|
||||
String get watchTapAWord =>
|
||||
'Tipp auf ein Wort der Untertitel, um es nachzuschlagen.';
|
||||
|
||||
@override
|
||||
String watchFormOf(String word) {
|
||||
return 'Eine Form von $word';
|
||||
}
|
||||
|
||||
@override
|
||||
String get watchFailed => 'Das Video konnte nicht abgespielt werden.';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue