H4nSoloandClaude Opus 5.5 08a72e8d5e Sicherheits-Fixes, Wikipedia-Bildcache, Tests, requirements.txt und Changelog
- highlight-Filter maskiert HTML (gespeichertes XSS, kaputtes Layout bei < und &)
- video_melden: 404 bei unbekannter Folge statt 500; X-Forwarded-For nur von
  eigenen Proxys (TRUSTED_PROXIES aus .env); Speichern in Transaktion mit Zeilensperre
- gd/wikipedia.py: Profilbilder lokal in media/wiki_thumbs, Prüfung alle 7 Tage,
  Neu-Download nur bei geänderter SHA1; neue Route /gd/team/<id>/bild/;
  ersetzt die doppelten Abfragen in views.py und serializers.py
- 27 Tests für gd und intern; Tests laufen auf SQLite im Arbeitsspeicher
- requirements.txt und Changelog.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:04:16 +02:00
2026-02-16 19:50:00 +01:00
2026-02-09 18:08:25 +01:00

Genial Daneben - Das digitale Archiv & Statistik-Zentrum

Hinweis: Dieses Dokument ist zweisprachig verfasst. Die deutsche Fassung befindet sich oben, gefolgt von der englischen Version darunter.
Note: This document is bilingual. You will find the German version at the top, followed by the English version below.


🇩🇪 DEUTSCHE FASSUNG

📌 Die Vision

Dieses Projekt ist die Antwort auf die Frage: "Wer ist eigentlich der klügste Kopf in der Geschichte von Genial Daneben?" Was als einfache Idee begann, ist zu einem umfassenden Archiv-System herangewachsen, das weit über eine simple Liste hinausgeht. Es ist ein Werkzeug zur Analyse, zur Nostalgie und zur präzisen statistischen Erfassung einer der erfolgreichsten deutschen Comedy-Shows. Jede Folge, jeder Gast und jede noch so skurrile Zuschauerfrage findet hier ihren rechtmäßigen Platz.

📜 Die Entstehungsgeschichte

Das Projekt entstand aus der Leidenschaft für das Format und dem Wunsch nach Ordnung im Chaos der Jahrzehnte. Während viele Infos zu alten Folgen im Netz verstreut oder unvollständig sind, war das Ziel hier von Anfang an: Maximale Datentiefe.

Von der ersten Zeile Code an stand fest: Es reicht nicht zu wissen, dass eine Frage gelöst wurde. Wir müssen wissen, wer sie gelöst hat, wie sie gelöst wurde (Solo-Leistung oder Team-Arbeit) und auf welchem Sitzplatz der Gast dabei saß. Aus diesem Anspruch heraus entwickelte sich ein komplexes Django-Backend, das heute in der Lage ist, tausende Datenpunkte in Echtzeit zu verknüpfen.

🛠 Kernfunktionen im Detail

1. Intelligente Folgen- & Panel-Verwaltung

Das Herzstück des Systems. Hier wird nicht nur stumpf protokolliert.

  • Präzise Besetzung: Jede Folge wird mit ihrem exakten Panel (5 Personen) verknüpft.
  • Sitzordnung & Rollen: Das System unterscheidet zwischen Stammbesetzung (Hella von Sinnen & Bernhard Hoëcker) und Gästen, inklusive ihrer exakten Sitzposition (1 bis 3).
  • Dynamische Chronologie: Dank der Jahres-Filter und des Tab-Systems lässt sich die Entwicklung der Show über Jahrzehnte hinweg lückenlos verfolgen.

2. Die Statistik-Engine (Erfolgs-Metriken)

Die Engine berechnet im Hintergrund komplexe Quoten, die jeden Auftritt bewerten:

  • Gesamt-Erfolgsquote: Prozentsatz der Fragen, an deren Lösung der Panelist beteiligt war, gemessen an allen Fragen, die während seiner Anwesenheit gestellt wurden.
  • Solo-Leistung vs. Kollektiv: Einzigartig ist die Trennung der Erfolge. War es ein einsamer Geniestreich (Solo)? Wurde im kleinen Kreis gelöst (Team)? Oder war es eine Gemeinschaftsleistung des gesamten Plenums?
  • Farbleit-System: Zur schnellen visuellen Analyse sind alle Erfolge farblich kodiert (Gelb = Solo, Blau = Team, Grün = Plenum).

3. Hochleistungs-Suche mit Kontext-Highlighting

Das Archiv ist durchsuchbar wie eine eigene Enzyklopädie.

  • Volltext-Index: Suche nach Stichworten in Fragen und Antworten gleichermaßen.
  • Visual Highlighting: Der Suchbegriff wird direkt im Ergebnis gelb markiert, sodass man sofort sieht, in welchem Kontext die Frage stand.
  • Gäste-Suche: Finde nicht nur Fragen, sondern auch Personen und deren persönliche Erfolgsstatistiken.

4. Individuelle Gast-Historie

Jeder Gast erhält ein dynamisches Profil.

  • 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.

✨ 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
    git clone <repo-url>
    cd <projektordner>
    
  2. Virtuelle Umgebung anlegen
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Abhängigkeiten installieren
    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:
    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:
    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
    python manage.py migrate
    
  6. Superuser anlegen (optional, aber empfohlen)
    python manage.py createsuperuser
    
  7. Lokalen Server starten
    python manage.py runserver
    
    Danach ist die App unter http://127.0.0.1:8000 erreichbar.

⚠️ Disclaimer

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).
  • Es besteht keine offizielle Verbindung zwischen diesem Software-Projekt und den Urhebern der Sendung.
  • Alle eingetragenen Daten auf der Testseite (https://gd.mgc4you.de/gd) wurden manuell zusammengetragen. Eine Kopie des Archivinhalts kann bei Interesse manuell über die API-Schnittstelle (https://gd.mgc4you.de/gd/api/v1, JSON-Format) eigenhändig kopiert und eingefügt werden. Es wird keine Haftung für Vollständigkeit oder Fehler übernommen.

📄 Lizenz & Urheberrecht

Dieses System wurde exklusiv für die private Nutzung entwickelt. Copyright (c) 2026. Konzeption & Entwicklung: Archiv-Projekt Genial Daneben. Alle Rechte vorbehalten. Keine unautorisierte Vervielfältigung oder kommerzielle Nutzung.


🇺🇸 ENGLISH VERSION

📌 The Vision

This project is the answer to the question: "Who is actually the brightest mind in the history of Genial Daneben?" What started as a simple idea has grown into a comprehensive archiving system that goes far beyond a simple list. It is a tool for analysis, nostalgia, and the precise statistical recording of one of Germany's most successful comedy shows. Every episode, every guest, and every bizarre viewer question finds its rightful place here.

📜 The Story Behind

The project was born out of a passion for the format and the desire for order within the chaos of decades of broadcasting. While much information about old episodes is scattered or incomplete online, the goal here was clear from the start: Maximum data depth.

From the very first line of code, it was certain: it is not enough to know that a question was solved. We need to know who solved it, how it was solved (solo performance or teamwork), and which seat the guest was occupied at the time. This demand led to the development of a complex Django backend capable of linking thousands of data points in real-time.

🛠 Core Features in Detail

1. Intelligent Episode & Panel Management

The heart of the system. More than just a simple log.

  • Precise Casting: Every episode is linked to its exact panel (5 people).
  • Seating & Roles: The system distinguishes between permanent panelists (Hella von Sinnen & Bernhard Hoëcker) and guests, including their exact seating positions (1 to 3).
  • Dynamic Chronology: Thanks to year filters and a tabbed system, the show's development can be tracked seamlessly across decades.

2. The Statistics Engine (Performance Metrics)

The engine calculates complex rates in the background to evaluate every appearance:

  • Overall Success Rate: The percentage of questions the panelist helped solve, measured against all questions asked during their presence.
  • Solo Performance vs. Collective: A unique feature is the separation of achievements. Was it a lonely stroke of genius (Solo)? Was it solved in a small group (Team)? Or was it a collective effort by the entire plenum?
  • Color Guidance System: For quick visual analysis, all successes are color-coded (Yellow = Solo, Blue = Team, Green = Plenum).

3. High-Performance Search with Context Highlighting

The archive is searchable like a dedicated encyclopedia.

  • Full-Text Index: Search for keywords in both questions and answers.
  • Visual Highlighting: The search term is highlighted in yellow directly within the results, showing the context of the question immediately.
  • Guest Search: Find not only questions but also individuals and their personal success statistics.

4. Individual Guest History

Every guest receives a dynamic profile.

  • 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.

✨ 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
    git clone <repo-url>
    cd <project-folder>
    
  2. Create a virtual environment
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install required dependencies
    python -m pip install --upgrade pip
    pip install Django djangorestframework python-dotenv mysqlclient requests beautifulsoup4
    
    On Linux, MySQL support may require system development packages:
    sudo apt install python3-dev default-libmysqlclient-dev build-essential
    
  4. Create a .env file in the project root and set your values:
    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
    python manage.py migrate
    
  6. Create an admin user (optional but recommended)
    python manage.py createsuperuser
    
  7. Start the development server
    python manage.py runserver
    
    The app is then available at http://127.0.0.1:8000.

⚠️ Disclaimer

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).
  • There is no official connection between this software project and the creators of the show.
  • All data entered on the test page (https://gd.mgc4you.de/gd) was collected manually. A copy of the archive content can be copied and pasted manually via the API interface (https://gd.mgc4you.de/gd/api/v1, JSON format) if desired. No liability is assumed for completeness or errors.

This system was developed exclusively for private use. Copyright (c) 2026. Conception & Development: Genial Daneben Archive Project. All rights reserved. No unauthorized reproduction or commercial use.


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

Added

  • Community Video Reporting System (gd app): Decentralized "Broken Video" reporting for YouTube.
    • Crowdsourced Validation: Implemented a "3-Strike Rule" via melde_count.
    • Anti-Spam: Integrated browser cookies and IP-logging (reporter_ips) to prevent manipulation.
  • REST API Integration (gd app): Added v1 API functionality using Django REST Framework for Episode and Team data.
  • Environmental Configuration (Main Project): Implemented .env support for secure management of sensitive data (Secret Keys, DB credentials, Jellyfin URLs).
  • [WIP] Reporting Engine (Main Project): Added a test-phase script for automated report generation and data analysis.

Changed

  • Episode Management (intern app):
    • Enhanced the Episode Creation Form with a dedicated Media Data section.
    • Improved UX by enlarging the Answer text fields for better readability during data entry.
  • Archive List (intern app): Updated the episode list view with status icons for Jellyfin and YouTube availability.
  • Messaging & UI (gd app):
    • Relocated system messages to a fixed-position floating layer (Top-Right) with a 5-second auto-close timer.
    • Improved Episode Detail layout for better content hierarchy and video integration.
  • Dashboard Refinement (gd app): Updated header information and adjusted statistics to exclude moderator/pseudo-member data.
  • Global Styles (Base Template): Added JavaScript enhancements to support dynamic icon rendering across different modules.
  • Namespace Migration: Switched all routing to the gd: namespace for scalability.

Fixed

  • Database Schema: Migrated FolgenZusatzInfo to include reporting metadata (melde_count, gemeldet_am, reporter_ips).
  • Ranking Accuracy: Refined SQL queries to correctly filter out "Hugo Egon Balder" and "Unknown" from solve-rate statistics.
S
Description
No description provided
Readme
2 MiB
0 Stars 1 Watchers 0 Forks
Languages
HTML 60.3%
Python 39.7%