Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13c237ac93 | ||
|
|
99ddc95664 |
No files matched your search
@@ -40,6 +40,69 @@ Jeder Gast erhält ein dynamisches Profil.
|
|||||||
* **Persönliches Dashboard:** Eine Auflistung aller Auftritte, sortiert nach Jahren.
|
* **Persönliches Dashboard:** Eine Auflistung aller Auftritte, sortiert nach Jahren.
|
||||||
* **Erfolgs-Matrix:** Eine detaillierte Tabelle, die zeigt, welche spezifische Frage der Gast in welcher Folge gelöst hat, verlinkt direkt zur jeweiligen Folgen-Detailseite.
|
* **Erfolgs-Matrix:** Eine detaillierte Tabelle, die zeigt, welche spezifische Frage der Gast in welcher Folge gelöst hat, verlinkt direkt zur jeweiligen Folgen-Detailseite.
|
||||||
|
|
||||||
|
### ✨ Aktuelle Erweiterungen aus der Git-History
|
||||||
|
Seit den jüngsten Commits wurde das Archiv um mehrere Praxisfunktionen erweitert, die vor allem den Alltag der Datenerfassung und die Darstellung auf der Website vereinfachen:
|
||||||
|
* **Kategorien & Fragedauer:** Fragen lassen sich zusätzlich nach Kategorien einordnen und mit der Dauer der jeweiligen Frage dokumentieren.
|
||||||
|
* **Frage-Einsender & Einsender-Analyse:** Die Herkunft der Frage wird erfasst und im Detail angezeigt, inklusive Analyse- und Übersichtsseiten im Intern-Bereich.
|
||||||
|
* **Team-API & detaillierte Team-Profile:** Die Team-Ansichten wurden um zusätzliche Statistiken, Wikipedia-Links und Profilbilder erweitert.
|
||||||
|
* **Medien- und Reporting-Funktionen:** Es gibt einen Reporting-Mechanismus für fehlerhafte Videos, inklusive Zählung, Anti-Spam-Maßnahmen und Statusanzeigen für YouTube/Jellyfin.
|
||||||
|
* **Player-Verbesserungen:** Lautstärke wird für Jellyfin und YouTube gespeichert, damit die Wiedergabe beim erneuten Aufruf konsistent bleibt.
|
||||||
|
* **UI-Polishing & Ordnung:** Das Frontend wurde deutlich überarbeitet, inklusive besserer Layouts, klarerer Überschriften und einer konsistenten Routing-/Template-Struktur.
|
||||||
|
|
||||||
|
### 🚀 Installation & Setup
|
||||||
|
So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und einer `.env`-Datei:
|
||||||
|
|
||||||
|
1. Repository klonen
|
||||||
|
```bash
|
||||||
|
git clone <repo-url>
|
||||||
|
cd <projektordner>
|
||||||
|
```
|
||||||
|
2. Virtuelle Umgebung anlegen
|
||||||
|
```bash
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
```
|
||||||
|
3. Abhängigkeiten installieren
|
||||||
|
```bash
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install Django djangorestframework python-dotenv mysqlclient requests beautifulsoup4
|
||||||
|
```
|
||||||
|
Falls du eine MariaDB/MySQL-Installation nutzt, können zusätzlich die System-Header nötig sein:
|
||||||
|
```bash
|
||||||
|
sudo apt install python3-dev default-libmysqlclient-dev build-essential
|
||||||
|
```
|
||||||
|
4. `.env` anlegen
|
||||||
|
Im Projektroot eine Datei namens `.env` erstellen und die folgenden Variablen ergänzen:
|
||||||
|
```env
|
||||||
|
DEBUG=True
|
||||||
|
SECRET_KEY='dein-sehr-geheimes-schluesselwort'
|
||||||
|
ALLOWED_HOSTS='localhost,127.0.0.1'
|
||||||
|
CSRF_TRUSTED_ORIGINS='http://localhost:8000'
|
||||||
|
|
||||||
|
DB_NAME='deine_datenbank'
|
||||||
|
DB_USER='dein_db_user'
|
||||||
|
DB_PASSWORD='dein_db_passwort'
|
||||||
|
DB_HOST='localhost'
|
||||||
|
DB_PORT='3306'
|
||||||
|
|
||||||
|
JELLYFIN_URL='http://localhost:8096'
|
||||||
|
JELLYFIN_API_KEY='dein_jellyfin_api_key'
|
||||||
|
```
|
||||||
|
Wichtig: Die Werte müssen zur eigenen Umgebung passen. Die Datei wird automatisch per `python-dotenv` geladen.
|
||||||
|
5. Datenbank migrieren
|
||||||
|
```bash
|
||||||
|
python manage.py migrate
|
||||||
|
```
|
||||||
|
6. Superuser anlegen (optional, aber empfohlen)
|
||||||
|
```bash
|
||||||
|
python manage.py createsuperuser
|
||||||
|
```
|
||||||
|
7. Lokalen Server starten
|
||||||
|
```bash
|
||||||
|
python manage.py runserver
|
||||||
|
```
|
||||||
|
Danach ist die App unter `http://127.0.0.1:8000` erreichbar.
|
||||||
|
|
||||||
### ⚠️ Disclaimer
|
### ⚠️ Disclaimer
|
||||||
Dieses Projekt ist ein rein privates Fan-Projekt und dient Archiv- sowie statistischen Zwecken.
|
Dieses Projekt ist ein rein privates Fan-Projekt und dient Archiv- sowie statistischen Zwecken.
|
||||||
* Alle Rechte an der Marke "Genial Daneben", dem Logo und den Inhalten der Sendung liegen bei den jeweiligen Rechteinhabern (Produktionsfirmen/Sender).
|
* Alle Rechte an der Marke "Genial Daneben", dem Logo und den Inhalten der Sendung liegen bei den jeweiligen Rechteinhabern (Produktionsfirmen/Sender).
|
||||||
@@ -86,6 +149,68 @@ Every guest receives a dynamic profile.
|
|||||||
* **Personal Dashboard:** A list of all appearances, sorted by year.
|
* **Personal Dashboard:** A list of all appearances, sorted by year.
|
||||||
* **Success Matrix:** A detailed table showing exactly which question the guest solved in which episode, linked directly to the respective episode detail page.
|
* **Success Matrix:** A detailed table showing exactly which question the guest solved in which episode, linked directly to the respective episode detail page.
|
||||||
|
|
||||||
|
### ✨ Recent Feature Additions from the Git History
|
||||||
|
Recent commits expanded the archive with several practical improvements focused on everyday data entry and presentation:
|
||||||
|
* **Categories & Question Duration:** Questions can now be categorized and their duration recorded for better analysis.
|
||||||
|
* **Question Sender & Sender Analysis:** The origin of each question is tracked and displayed in detail, including dedicated analysis and overview pages in the internal area.
|
||||||
|
* **Team API & richer team profiles:** Team views include extra statistics, Wikipedia links, and profile images.
|
||||||
|
* **Media & reporting features:** A reporting workflow for broken videos was added, including counting logic, anti-spam measures, and status indicators for YouTube/Jellyfin.
|
||||||
|
* **Player improvements:** Playback volume is saved for Jellyfin and YouTube so the viewing experience remains consistent across reloads.
|
||||||
|
* **UI polishing & structure:** The frontend was refined with clearer layouts, better hierarchy, and a more consistent routing/template setup.
|
||||||
|
|
||||||
|
### 🚀 Installation & Setup
|
||||||
|
Follow these steps to install the project locally in a clean Python environment using a `.env` configuration file:
|
||||||
|
|
||||||
|
1. Clone the repository
|
||||||
|
```bash
|
||||||
|
git clone <repo-url>
|
||||||
|
cd <project-folder>
|
||||||
|
```
|
||||||
|
2. Create a virtual environment
|
||||||
|
```bash
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
```
|
||||||
|
3. Install required dependencies
|
||||||
|
```bash
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install Django djangorestframework python-dotenv mysqlclient requests beautifulsoup4
|
||||||
|
```
|
||||||
|
On Linux, MySQL support may require system development packages:
|
||||||
|
```bash
|
||||||
|
sudo apt install python3-dev default-libmysqlclient-dev build-essential
|
||||||
|
```
|
||||||
|
4. Create a `.env` file in the project root and set your values:
|
||||||
|
```env
|
||||||
|
DEBUG=True
|
||||||
|
SECRET_KEY='your-super-secret-key'
|
||||||
|
ALLOWED_HOSTS='localhost,127.0.0.1'
|
||||||
|
CSRF_TRUSTED_ORIGINS='http://localhost:8000'
|
||||||
|
|
||||||
|
DB_NAME='your_database'
|
||||||
|
DB_USER='your_db_user'
|
||||||
|
DB_PASSWORD='your_db_password'
|
||||||
|
DB_HOST='localhost'
|
||||||
|
DB_PORT='3306'
|
||||||
|
|
||||||
|
JELLYFIN_URL='http://localhost:8096'
|
||||||
|
JELLYFIN_API_KEY='your_jellyfin_api_key'
|
||||||
|
```
|
||||||
|
These values are loaded automatically via `python-dotenv`.
|
||||||
|
5. Apply database migrations
|
||||||
|
```bash
|
||||||
|
python manage.py migrate
|
||||||
|
```
|
||||||
|
6. Create an admin user (optional but recommended)
|
||||||
|
```bash
|
||||||
|
python manage.py createsuperuser
|
||||||
|
```
|
||||||
|
7. Start the development server
|
||||||
|
```bash
|
||||||
|
python manage.py runserver
|
||||||
|
```
|
||||||
|
The app is then available at `http://127.0.0.1:8000`.
|
||||||
|
|
||||||
### ⚠️ Disclaimer
|
### ⚠️ Disclaimer
|
||||||
This project is a purely private fan project for archival and statistical purposes.
|
This project is a purely private fan project for archival and statistical purposes.
|
||||||
* All rights to the "Genial Daneben" brand, the logo, and the show's content belong to the respective rights holders (production companies/broadcasters).
|
* All rights to the "Genial Daneben" brand, the logo, and the show's content belong to the respective rights holders (production companies/broadcasters).
|
||||||
@@ -99,6 +224,22 @@ This system was developed exclusively for private use.
|
|||||||
|
|
||||||
# Changelog - Genial Daneben Archive:
|
# Changelog - Genial Daneben Archive:
|
||||||
|
|
||||||
|
## [Aktuell] - Feature-Updates aus der Git-History
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- **Kategorien & Fragedauer:** Neue Felder für Kategorien und die Laufzeit einzelner Fragen.
|
||||||
|
- **Frage-Einsender:** Erfassung und Analyse des Einsenders pro Frage.
|
||||||
|
- **Team-API:** Erweiterte API-Auskunft zu Teams, Statistiken und Wikipedia-/Profilbildern.
|
||||||
|
- **Video-Reporting:** Meldung fehlerhafter Videos mit Zählung, Anti-Spam-Checks und Medienstatus.
|
||||||
|
- **Player-Verbesserung:** Lautstärke wird für YouTube/Jellyfin gespeichert.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- **UI/UX-Polish:** Verbesserte Layouts, bessere Überschriften, konsistentere Templates und Routing.
|
||||||
|
- **Internes Datenmanagement:** Mehrere Admin-/Analyseansichten für Kategorien, Einsender und Medienstatus.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Datenkonsistenz:** Verbesserte Ausgabe im Detailbereich, Filterlogik und Darstellung statistischer Inhalte.
|
||||||
|
|
||||||
## [2026-02-16] - Weekly Sprint: Backend Tools & System Architecture
|
## [2026-02-16] - Weekly Sprint: Backend Tools & System Architecture
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+14
-2
@@ -129,11 +129,23 @@ class EinsenderSerializer(serializers.ModelSerializer):
|
|||||||
class FrageSerializer(serializers.ModelSerializer):
|
class FrageSerializer(serializers.ModelSerializer):
|
||||||
antwort = FrageAntwortSerializer(read_only=True)
|
antwort = FrageAntwortSerializer(read_only=True)
|
||||||
einsender = EinsenderSerializer(read_only=True)
|
einsender = EinsenderSerializer(read_only=True)
|
||||||
|
kategorien = serializers.SlugRelatedField(many=True, read_only=True, slug_field='name')
|
||||||
|
dauer_sekunden = serializers.IntegerField(read_only=True)
|
||||||
|
dauer_minuten = serializers.SerializerMethodField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Frage
|
model = Frage
|
||||||
# Frage, ob Zuschauerfrage, Einsender und Antwort ausgeben
|
# Frage, ob Zuschauerfrage, Einsender, Antwort, Kategorien und Dauer ausgeben
|
||||||
fields = ['frage_text', 'zuschauer_frage', 'einsender', 'antwort']
|
fields = ['frage_text', 'zuschauer_frage', 'einsender', 'antwort', 'kategorien', 'dauer_sekunden', 'dauer_minuten']
|
||||||
|
|
||||||
|
def get_dauer_minuten(self, obj):
|
||||||
|
if obj.dauer_sekunden is None:
|
||||||
|
return None
|
||||||
|
# Minuten als Dezimalzahl mit 2 Nachkommastellen
|
||||||
|
try:
|
||||||
|
return round(obj.dauer_sekunden / 60.0, 2)
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
|
|
||||||
class FolgenZusatzInfoSerializer(serializers.ModelSerializer):
|
class FolgenZusatzInfoSerializer(serializers.ModelSerializer):
|
||||||
"""YT-Link und freie Folgen-Infos"""
|
"""YT-Link und freie Folgen-Infos"""
|
||||||
|
|||||||
Reference in new issue
Block a user