The content of this script is created strictly for educational purposes. Use of the Add-on is at your own risk. This Add-on, written in Python, serves as an API for stremio. There is no affiliation with any scraping sites.
-
Provides catalogs for multiple languages: Tamil, Hindi, Malayalam, Kannada, English, and dubbed movies & series.
-
Supports streams for playback with torrent, Real Debrid, and Seedr integration.
- Install Stremio from here.
- Navigate to Media Fusion and click on the 'Configure Add-on' button.
- Python: This project uses Python version 3.11. Ensure you have it installed.
- MongoDB: Set up a MongoDB server. You can use MongoDB Atlas to create a free MongoDB cluster.
- mkcert: To set up local HTTPS, you'll need to use mkcert to generate SSL certificates. If not installed, get it from here.
-
Pipenv: Use Pipenv for managing project dependencies. If you don't have it installed, you can install it with:
pip install pipenv
-
Clone: Clone this repository.
git clone https://github.com/mhdzumair/MediaFusion
-
Environment Variables: Create a
.env
file in the root directory with the following variables:MONGO_URI=<Your_MongoDB_URI> SECRET_KEY=<Your_Random_32_Character_Secret> HOST_URL=https://localhost:8443
-
Local HTTPS Setup:
- Navigate to the MediaFusion directory.
- Generate local SSL certificates using mkcert:
mkcert -install mkcert localhost
This will generate two files: localhost.pem and localhost-key.pem.
-
Run Servers:
- To serve your application over HTTPS on port 8443:
pipenv run uvicorn main:app --host 0.0.0.0 --port 8443 --ssl-keyfile localhost-key.pem --ssl-certfile localhost.pem
- Since Stremio doesn't support localhost HTTPS servers to install add-on, also run an HTTP server on port 8000:
pipenv run uvicorn main:app --host 0.0.0.0 --port 8000
-
For scraping instructions: refer to the scrapping README.
- Stremio Generic Add-on Guide
- Stremio Add-on SDK API docs
- Deploy Stremio Addon
- FastAPI
- beautifulsoup4
- cinemagoer
- beanie
- parse-torrent-title
- torrentio-scraper Stremio Add-on
pipenv run uvicorn --host 0.0.0.0 --port 8000 api.main:app