This commit is contained in:
Marek
2026-04-05 21:44:43 +02:00
parent f269271c6e
commit a67e1393d7
3 changed files with 39 additions and 24 deletions

View File

@@ -1,11 +1,13 @@
# Browser Extension
- Content Script — YouTube-DOM auslesen, Videodaten extrahieren
- Background Script — Daten gruppiert an Server senden (POST /videos)
- Popup — Profil vom Server laden und auswaehlen
# Server
## API
- POST /videos — Video-Batch empfangen, Duplikate entfernen
- GET /videos — alle Videos abrufen
- GET /videos/downloaded — heruntergeladene Videos abrufen
- POST /videos — Video-Batch empfangen, Duplikate entfernen, Profil zuordnen
- GET /videos — alle Videos abrufen (optional nach Profil filtern)
- GET /profiles — alle Profile abrufen
- GET /videos/downloaded — heruntergeladene Videos abrufen (optional nach Profil filtern)
- POST /videos/{id}/download — Download triggern
- GET /videos/{id}/stream — Video streamen
- GET /videos/{id}/file — Video-Datei zum Download ausliefern
@@ -15,6 +17,8 @@
- StreamService — Live-Streaming via yt-dlp + ffmpeg
## Model
- Video — id, title, youtuber, thumbnail_url, youtube_url, file_path
- Profile — id, name
- video_profiles — video_id, profile_id (Many-to-Many)
# App
## Screens
- AllVideosScreen — alle Videos als Cards
@@ -26,6 +30,7 @@
## Services
- LocalStorageService — Videos lokal speichern, pruefen, loeschen
## API
- ServerApi — kommuniziert mit FastAPI (GET /videos, POST /download, GET /stream, GET /videos/{id}/file)
- ServerApi — kommuniziert mit FastAPI (GET /profiles, GET /videos, POST /download, GET /stream, GET /videos/{id}/file)
## Model
- Video — id, title, youtuber, thumbnailUrl, youtubeUrl, isDownloaded, localFilePath
- Video — id, title, youtuber, thumbnailUrl, youtubeUrl, isDownloaded, localFilePath, profileIds
- Profile — id, name