Initial commit to Gitea

This commit is contained in:
2026-07-07 13:56:09 +02:00
parent 0dd018bbc6
commit 631559f134
13 changed files with 4417 additions and 1915 deletions
+16 -11
View File
@@ -6,7 +6,7 @@ Web-basierter Downloader für Streaming-Seiten. Aus xStream (Kodi Addon) extrahi
```bash
cd xstreamDownloader
python3 mini_app.py
python3 app.py
# → http://localhost:8765
```
@@ -21,13 +21,14 @@ python3 mini_app.py
```
xstreamDownloader/
├── mini_app.py # Flask-Server (API + Web-Interface)
├── web/index.html # Single-Page Frontend (Vanilla JS)
├── app.py # Flask-Server (API + Web-Interface, XBMC-konformer Wrapper)
├── web/index.html # Single-Page Frontend (Vanilla JS)
├── xstream/
│ ├── sites/ # Site-Plugins (eines pro Streaming-Seite)
│ └── resources/lib/ # xStream Core (GUI, Player, Handler)
├── cookies/ # Session-Cookies für authentifizierte Sites
── resources/ # Kodi settings.xml
│ ├── sites/ # Site-Plugins (eines pro Streaming-Seite)
│ └── resources/lib/ # xStream Core (GUI, Player, Handler)
├── deps/ # Abhängigkeiten (resolveurl, requests, six, kodi_six, pyaes)
── cookies/ # Session-Cookies für authentifizierte Sites
└── downloads/ # Heruntergeladene Dateien
```
## API Endpoints
@@ -36,12 +37,16 @@ xstreamDownloader/
|----------|--------------|
| `GET /api/sites` | Liste aller Sites |
| `GET /api/sites/<id>/entries` | Einträge einer Site |
| `GET /api/sites/<id>/hoster/<entry_id>` | Hoster für einen Eintrag |
| `POST /api/download` | Download starten |
| `GET /api/sites/<id>/search?q=...` | Suche auf einer Site |
| `GET /api/sites/<id>/hosters?url=...` | Hoster für einen Eintrag |
| `GET /api/resolve?url=...` | URL auflösen |
| `POST /api/download?url=...&title=...` | Download starten |
| `GET /api/downloads` | Download-Status |
| `GET /api/downloads/<id>/file` | Download-Datei herunterladen |
## Tech Stack
- **Backend**: Python 3, Flask
- **Backend**: Python 3, Flask, Multiprocessing
- **Frontend**: Vanilla JS, CSS Grid
- **Scraping**: xbmcjson/xStream Core (aus Kodi Addon extrahiert)
- **Scraping**: xstream Core (aus Kodi Addon extrahiert)
- **XBMC-Wrapper**: Mock-Module für xbmc/xbmcgui/xbmcplugin/xbmcvfs/xbmcaddon