TV-App komplett ueberarbeitet: i18n (DE/EN), Multi-User Quick-Switch, 3 Themes (Dark/Medium/Light), 3 Ansichten (Grid/Liste/Detail), Filter (Quellen/Genre/Rating/Sortierung), Merkliste, 5-Sterne-Bewertung, Watch-Status, Player-Overlay (Audio/Untertitel/Qualitaet/Naechste Episode), Episoden-Thumbnails, Suchverlauf, Queue-Bugfix (delete_source). 5 neue DB-Tabellen, 10+ neue API-Endpunkte, ~3800 neue Zeilen Code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
96 lines
4.6 KiB
HTML
96 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="theme-color" content="#000000">
|
|
<link rel="stylesheet" href="/static/tv/css/tv.css">
|
|
<title>{{ title }} - VideoKonverter TV</title>
|
|
</head>
|
|
<body class="player-body">
|
|
<div class="player-wrapper" id="player-wrapper">
|
|
<!-- Header (ausblendbar) -->
|
|
<div class="player-header" id="player-header">
|
|
<a href="javascript:history.back()" class="player-back" data-focusable>❮ {{ t('player.back') }}</a>
|
|
<span class="player-title">{{ title }}</span>
|
|
</div>
|
|
|
|
<!-- Video -->
|
|
<video id="player-video" autoplay playsinline></video>
|
|
|
|
<!-- Controls (ausblendbar) -->
|
|
<div class="player-controls" id="player-controls">
|
|
<div class="player-progress" id="player-progress">
|
|
<div class="player-progress-bar" id="player-progress-bar"></div>
|
|
</div>
|
|
<div class="player-buttons">
|
|
<button class="player-btn" id="btn-play" data-focusable>▶</button>
|
|
<span class="player-time" id="player-time">0:00 / 0:00</span>
|
|
<span class="player-spacer"></span>
|
|
<button class="player-btn" id="btn-settings" data-focusable title="{{ t('player.settings') }}">⚙</button>
|
|
{% if next_video %}
|
|
<button class="player-btn" id="btn-next" data-focusable title="{{ t('player.next_episode') }}">⏭</button>
|
|
{% endif %}
|
|
<button class="player-btn" id="btn-fullscreen" data-focusable>⛶</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Einstellungen-Overlay -->
|
|
<div class="player-overlay" id="player-overlay" style="display:none">
|
|
<div class="player-overlay-panel">
|
|
<div class="player-overlay-section" id="overlay-audio"></div>
|
|
<div class="player-overlay-section" id="overlay-subs"></div>
|
|
<div class="player-overlay-section" id="overlay-quality"></div>
|
|
<div class="player-overlay-section" id="overlay-speed"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Naechste Episode Overlay -->
|
|
{% if next_video %}
|
|
<div class="player-next-overlay" id="next-overlay" style="display:none">
|
|
<div class="player-next-card">
|
|
<p class="player-next-title" id="next-title">{{ t('player.next_episode') }}</p>
|
|
<p class="player-next-name">{{ next_title }}</p>
|
|
<p class="player-next-countdown" id="next-countdown"></p>
|
|
<div class="player-next-buttons">
|
|
<button class="tv-play-btn" id="btn-next-play" data-focusable>{{ t('player.skip') }}</button>
|
|
<button class="player-btn-cancel" id="btn-next-cancel" data-focusable>{{ t('player.cancel') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Schaust du noch? Overlay -->
|
|
<div class="player-still-watching" id="still-watching-overlay" style="display:none">
|
|
<div class="player-next-card">
|
|
<p class="player-next-title">{{ t('player.still_watching') }}</p>
|
|
<div class="player-next-buttons">
|
|
<button class="tv-play-btn" id="btn-still-yes" data-focusable>{{ t('player.continue') }}</button>
|
|
<button class="player-btn-cancel" id="btn-still-no" data-focusable>{{ t('player.stop') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/tv/js/player.js"></script>
|
|
<script>
|
|
initPlayer({
|
|
videoId: {{ video.id }},
|
|
startPos: {{ start_pos }},
|
|
duration: {{ video.duration_sec or 0 }},
|
|
{% if next_video %}
|
|
nextVideoId: {{ next_video.id }},
|
|
nextUrl: "/tv/player?v={{ next_video.id }}",
|
|
{% endif %}
|
|
autoplay: {{ 'true' if user.autoplay_enabled else 'false' }},
|
|
autoplayCountdown: {{ user.autoplay_countdown_sec or 10 }},
|
|
autoplayMax: {{ user.autoplay_max_episodes or 0 }},
|
|
preferredAudio: "{{ user.preferred_audio_lang or 'deu' }}",
|
|
preferredSub: "{{ user.preferred_subtitle_lang or '' }}",
|
|
subtitlesEnabled: {{ 'true' if user.subtitles_enabled else 'false' }},
|
|
soundMode: "{{ client_sound_mode or 'stereo' }}",
|
|
streamQuality: "{{ client_stream_quality or 'hd' }}",
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|