βοΈ Comet - Discord
- π§ Work in Progress: This is a fork of the official Comet repository. It will be abandoned once all features are implemented in the original repo.
- β¨ Primary Goal: Add uncached support and enhance features.
- π οΈ Stay Updated: Check the current progress and updates in the todo.md.
β οΈ Caution: Stuff might break frequently as this is under active development!
- π Advanced Language Search: Search in multiple languages.
- π§ Advanced Sorting and Preferences: Sort by language, rank, seeders, size, or completion.
- π Advanced Binge Watching: Advanced recognition of binge groups, allows for even single usenet files to be binged.
- ποΈ Customizable Results: Customize how results are shown in Stremio (Result Order).
- π Config Encryption: Secure your configuration via the
TOKEN
environment variable. - ποΈ Debrid Catalog: View your recently uploaded files in Stremio as catalog
- π° Usenet Support: Supports usenet caching by using usenet indexer from prowlarr and torbox.
- β¬οΈ Auto Cache Next: Automatically starts caching next episode.
- π Improved URL Handling:
- Shortened URLs with filenames included.
- Use the
TOKEN
environment variable for even shorter playback URLs, improving player compatibility. - Highly recommended even if encryption is not needed! As this improved player compatibility
- π Updates and Progress: For detailed notes, see todo.md.
Provider | Status | Notes | Supports Catalog |
---|---|---|---|
Real Debrid | β Full Support | π Seasons limit + β¨ DEBRID_TAKE_FIRST | β Allows catalog view |
All Debrid | β Full Support | π Seasons limit + β¨ DEBRID_TAKE_FIRST | β Allows catalog view |
Premiumize | β Full Support | π Seasons limit | β |
Debrid Link | β Full Support | β¨ DEBRID_TAKE_FIRST | β Allows catalog view |
Torbox | β Full Support + π° Usenet Support | π Seasons limit + β¬οΈ Auto Cache Next + β¨ DEBRID_TAKE_FIRST + | β Allows catalog view |
- β Full Support: The provider supports uncached torrent functionality.
- β Unsupported: The provider currently does not support uncached torrents.
- π Seasons Limit: For TV shows, torrents containing entire seasons must fully download before playback begins; individual episodes cannot be played as they complete. This is a technical limitation of the provider.
- β¨ DEBRID_TAKE_FIRST: Supports the environment variable to explicitly return the first e.g., 100 files from the provider, useful for private torrents uploaded via DebridMediaManager or the provider's UI.
- π§ Work in Progress: Feature planned but not yet available.
- β Supports Catalog: Allows viewing and playing recently uploaded debrid files in Stremio under e.g. Discover -> Others -> Comet RealDebrid.
- π° Usenet Support: Supports usenet caching by using usenet indexer from prowlarr.
- β¬οΈ Auto Cache Next: Supports auto caching next episode.
- β Does Not Support Catalog: The provider does not have catalog integration in Stremio.
- Add torrentio to the
INDEXER_MANAGER_INDEXERS
environment variable - Navigate to the Configuration Page.
- Add Torrentio under the Indexers Uncached section.
- π Done! Torrentio will now show uncached torrents.
- Go to the Configuration Page.
- Select under Indexers the indexers you want to enable.
- Under Indexers Uncached, choose the indexers you want to be considered for uncached torrents.
- By default, all uncached torrents are grouped under the Uncached Resolution category.
- If you prefer uncached torrents to be sorted and treated like normal torrents:
- Deselect Uncached under the Resolutions section on the Configuration Page.
- This allows for sorting by resolution to function normally.
- Only Torbox + Prowlarr Supports watching usenet files.
- This is in many aspects better then torrents as its not limited to seeders and peers meaning every file can be nearly always cached.
- Example usenet setup using torbox + prowlarr
- Add a usenet indexer to Prowlarr like scenenzbs
- Add the created Indexer Name to the INDEXER_MANAGER_INDEXERS environment variable
- Visit the Web Ui and select the added indexers under Indexers and Indexers Uncached
- Optionally adjust the USENET_REFRESH_ATTEMPTS env. By default this is 10 and seems to be more then enough for the Torbox pro plan download speed.
- π Done! Comet will now show the usenet results of Prowlarr and use Torbox to cache and stream.
π‘ Note: This setup allows for even Uncached files to seem cached. Because the usenet files are not speed restricted by seeders or peers, it allows in combination with Torbox Pro 80 Gbps download speed to add single Episodes with a size of e.g. 2 GB, which are then instantly downloaded. The USENET_REFRESH_ATTEMPTS parameter checks every 4 secondsβup to USENET_REFRESH_ATTEMPTS timesβwhether the file is ready for streaming; if the file is ready before the last attempt, Stremio begins playback immediately. Meaning in Stremio only a longer loading screen is experienced then usual. This, in combination with the Advanced Binge Watching which allows for Single files to be binged watched and not like usually with torrents which require the whole torrent to be one Season, guarantees a smooth watching experience. Of course this can as well fail if file names are inconsistent across episodes or the usenet file is broken and cant be repaired.
- Default Behavior: Comet compares torrent titles to all languages by default.
- Language Preference:
- To sort specific languages to the top, select them under Language Preference.
- Prowlarr/Jackett/Zilean:
- To search these in additional languages, enable Language Search for your desired languages.
β οΈ Note: Selecting many languages may significantly increase search time.
- This determines the order in which results are displayed.
- To customize:
- Deselect all options.
- Select the options in the order you prefer.
- Navigate to Discover -> Others -> Comet {Debrid Provider} in Stremio to view and play recently uploaded files from your Debrid account.
- Enjoy seamless access to your debrid uploads directly in Stremio. π
π‘ Note: If the catalog does not show up, try removing and re-adding the Comet addon in Stremio.
- Sorting follows a fixed hierarchical order:
- Resolution: Torrents are grouped and sorted by resolution.
- Primary Sort: Within each resolution, torrents are sorted by rank, seeders, or size based on the selected type.
- Completion: Complete torrents are prioritized within their resolution group while maintaining the primary sort order.
- Cached Preference: Cached torrents are moved to the top within their resolution if Uncached is deselected as Resolution, preserving their order.
- Language Preference: Torrents matching preferred languages are prioritized and moved to the top within their resolution group in the order specified in the configuration.
- π Proxy Debrid Streams: The only Stremio addon that proxies Debrid streams, enabling multiple IPs to use the same account simultaneously!
- π IP-Based Connection Limit: Max connection limit and dashboard for Debrid stream proxying.
- 𧩠Indexer Support:
- Jackett and Prowlarr: Set the
INDEXER_MANAGER_TYPE
environment variable tojackett
orprowlarr
. - Zilean (DMM Scraper): Unlock even more torrent results.
- Torrentio (Scraper): Additional torrent sources.
- Jackett and Prowlarr: Set the
- β‘ Smart Features:
- Caching System: Supports SQLite/PostgreSQL.
- Smart Torrent Ranking: Powered by RTN.
- Proxy Support: Bypass Debrid restrictions effortlessly.
- πΎ Debrid Services Supported:
- Real-Debrid, All-Debrid, Premiumize, TorBox, and Debrid-Link.
- π― Direct Torrent Support: Activate direct torrents by not specifying a Debrid API Key (uses cached results from other users).
- π₯ Kitsu Integration: Enjoy anime content with Kitsu support.
- π Adult Content Filter: Control content visibility with filtering options.
To customize your Comet experience, review the available environment variables.
For a full docker example check the docker-compose.yaml and .stack-env.
- Clone the repository:
git clone https://github.com/Zaarrg/comet-uncached cd comet-uncached
- Install dependencies:
pip install poetry poetry install
- Start Comet:
poetry run python -m comet.main
-
Run the Docker image after modifying the environment variables:
docker run --name comet -p 8000:8000 -d \ -e FASTAPI_HOST=0.0.0.0 \ -e FASTAPI_PORT=8000 \ -e FASTAPI_WORKERS=1 \ -e CACHE_TTL=86400 \ -e DEBRID_PROXY_URL=http://127.0.0.1:1080 \ -e INDEXER_MANAGER_TYPE=jackett \ -e INDEXER_MANAGER_URL=http://127.0.0.1:9117 \ -e INDEXER_MANAGER_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \ -e INDEXER_MANAGER_INDEXERS='["EXAMPLE1_CHANGETHIS", "EXAMPLE2_CHANGETHIS", "torrentio"]' \ -e INDEXER_MANAGER_TIMEOUT=30 \ -e TOKEN=XXXXXXXXXX \ -e GET_TORRENT_TIMEOUT=5 \ ghcr.io/zaarrg/comet-uncached:latest
-
To update your container:
- Find the existing container:
docker ps
- Stop and remove it:
docker stop <CONTAINER_ID> docker rm <CONTAINER_ID>
- Pull the latest version:
docker pull ghcr.io/zaarrg/comet-uncached:latest
- Re-run the Docker command.
- Find the existing container:
- Copy the
docker-compose.yaml
file to a directory. - Copy
env-sample
to.env
in the same directory. - Pull the latest version:
docker compose pull
- Start the container:
docker compose up -d
To bypass Real-Debrid's (or AllDebrid's) IP blacklist, start a Cloudflare-Warp container.