CoolFace
Apppublic

rtgcortex/magpie-main

sourceHugging Faceupdated 17d agoView on Hugging Face
0likes
App README

Magpie API

Flask backend for the Magpie app. Handles TMDB feed, search, stream resolution, and download URL generation.

Endpoints

MethodPathDescription
GET/api/feedTrending, popular movies/TV, top rated
POST/api/searchTMDB multi-search
POST/api/seasonsTV season list via TVMaze
POST/api/episodesEpisode list for a season
POST/api/resolutionsAvailable quality options
POST/api/playResolve proxied stream URL
POST/api/play-rawResolve raw stream URL + headers
POST/api/download-urlReturn raw m3u8 + referer for on-device HLS download
GET/proxyEncrypted URL proxy for TMDB images and HLS segments

Environment Variables

Set these in the HF Space secrets panel:

VariableDescription
TMDB_TOKENTMDB API read access token
PROXY_KEYFernet key for URL encryption (auto-generated on first run if not set)
MAGPIE_BASE_URLPublic URL of this space e.g. https://rtgcortex-magpie-main.hf.space