Skip to content

Commit dacb791

Browse files
committed
Merge rewrite into main by overwriting files
1 parent 399d858 commit dacb791

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4297
-3189
lines changed

.env-sample

+35-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
1-
ADDON_ID=stremio.comet.fast # for Stremio
2-
ADDON_NAME=Comet # for Stremio
3-
FASTAPI_HOST=0.0.0.0
4-
FASTAPI_PORT=8000
5-
FASTAPI_WORKERS=1 # remove to destroy CPU -> max performances :)
6-
DASHBOARD_ADMIN_PASSWORD=CHANGE_ME # The password to access the dashboard with active connections and soon more...
7-
DATABASE_TYPE=sqlite # or postgresql if you know what you're doing
8-
DATABASE_URL=username:password@hostname:port # to connect to PostgreSQL
9-
DATABASE_PATH=data/comet.db # only change it if you know what it is - folders in path must exist - ignored if PostgreSQL used
10-
CACHE_TTL=86400 # cache duration in seconds
11-
DEBRID_PROXY_URL=http://127.0.0.1:1080 # https://github.com/cmj2002/warp-docker to bypass Debrid Services and Torrentio server IP blacklist
12-
INDEXER_MANAGER_TYPE=None # jackett or prowlarr or None if you want to disable it completely and use Zilean or Torrentio
13-
INDEXER_MANAGER_URL=http://127.0.0.1:9117
14-
INDEXER_MANAGER_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
15-
INDEXER_MANAGER_TIMEOUT=60 # maximum time to obtain search results from indexer manager in seconds
16-
INDEXER_MANAGER_INDEXERS='["EXAMPLE1_CHANGETHIS", "EXAMPLE2_CHANGETHIS"]' # for jackett, get the names from https://github.com/Jackett/Jackett/tree/master/src/Jackett.Common/Definitions - for prowlarr you can write them like on the web dashboard
17-
GET_TORRENT_TIMEOUT=5 # maximum time to obtain the torrent info hash in seconds
18-
ZILEAN_URL=None # for DMM search - https://github.com/iPromKnight/zilean - ex: http://127.0.0.1:8181
19-
ZILEAN_TAKE_FIRST=500 # only change it if you know what it is
20-
SCRAPE_TORRENTIO=False # scrape Torrentio
21-
SCRAPE_MEDIAFUSION=False # scrape MediaFusion - has better results for Indian content
22-
MEDIAFUSION_URL=https://mediafusion.elfhosted.com # Allows you to scrape custom instances of MediaFusion
23-
PROXY_DEBRID_STREAM=False # Proxy Debrid Streams (very useful to use your debrid service on multiple IPs at same time)
24-
PROXY_DEBRID_STREAM_PASSWORD=CHANGE_ME # Secret password to enter on configuration page to prevent people from abusing your debrid stream proxy
25-
PROXY_DEBRID_STREAM_MAX_CONNECTIONS=-1 # IP-Based connection limit for the Debrid Stream Proxy (-1 = disabled)
26-
PROXY_DEBRID_STREAM_DEBRID_DEFAULT_SERVICE=realdebrid # if you want your users who use the Debrid Stream Proxy not to have to specify Debrid information, but to use the default one instead
27-
PROXY_DEBRID_STREAM_DEBRID_DEFAULT_APIKEY=CHANGE_ME # if you want your users who use the Debrid Stream Proxy not to have to specify Debrid information, but to use the default one instead
28-
TITLE_MATCH_CHECK=True # disable if you only use Torrentio / MediaFusion and are sure you're only scraping good titles, for example (keep it True if Zilean is enabled)
29-
REMOVE_ADULT_CONTENT=False # detect and remove adult content
30-
STREMTHRU_DEFAULT_URL=None # if you want your users to use StremThru without having to specify it
31-
CUSTOM_HEADER_HTML=None # only set it if you know what it is
1+
ADDON_ID=stremio.comet.fast # for Stremio
2+
ADDON_NAME=Comet # for Stremio
3+
FASTAPI_HOST=0.0.0.0
4+
FASTAPI_PORT=8000
5+
FASTAPI_WORKERS=1
6+
USE_GUNICORN=True # will use uvicorn if False or if on Windows
7+
DASHBOARD_ADMIN_PASSWORD=CHANGE_ME # The password to access the dashboard with active connections and soon more...
8+
DATABASE_TYPE=sqlite # or postgresql if you're making a Comet cluster
9+
DATABASE_URL=username:password@hostname:port # to connect to PostgreSQL
10+
DATABASE_PATH=data/comet.db # only change it if you know what it is - folders in path must exist - ignored if PostgreSQL used
11+
METADATA_CACHE_TTL=2592000 # metadata cache duration in seconds (30 days by default)
12+
TORRENT_CACHE_TTL=1296000 # torrent cache duration in seconds (15 days by default)
13+
DEBRID_CACHE_TTL=86400 # debrid availability cache duration in seconds (1 day by default)
14+
DEBRID_PROXY_URL=http://127.0.0.1:1080 # https://github.com/cmj2002/warp-docker to bypass Debrid Services and Torrentio server IP blacklist
15+
INDEXER_MANAGER_TYPE=none # jackett or prowlarr or none if you want to disable it completely and use Zilean or Torrentio
16+
INDEXER_MANAGER_URL=http://127.0.0.1:9117
17+
INDEXER_MANAGER_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18+
INDEXER_MANAGER_TIMEOUT=60 # maximum time to obtain search results from indexer manager in seconds
19+
INDEXER_MANAGER_INDEXERS='["EXAMPLE1_CHANGETHIS", "EXAMPLE2_CHANGETHIS"]' # for jackett, get the names from https://github.com/Jackett/Jackett/tree/master/src/Jackett.Common/Definitions - for prowlarr you can write them like on the web dashboard
20+
GET_TORRENT_TIMEOUT=5 # maximum time to obtain the torrent info hash in seconds
21+
DOWNLOAD_TORRENT_FILES=False # set to True to enable torrent file retrieval instead of using only magnet link info (infohash and sources, ensuring file index is included in results for Jackett and Prowlarr torrents)
22+
SCRAPE_ZILEAN=False # scrape Zilean/DMM
23+
ZILEAN_URL=https://zilean.elfhosted.com # for DMM search - https://github.com/iPromKnight/zilean - ex: http://127.0.0.1:8181
24+
SCRAPE_TORRENTIO=False # scrape Torrentio
25+
TORRENTIO_URL=https://torrentio.strem.fun # or https://knightcrawler.elfhosted.com if you prefer to scrape the ElfHosted KnightCrawler instance
26+
SCRAPE_MEDIAFUSION=False # scrape MediaFusion - has better results for Indian content
27+
MEDIAFUSION_URL=https://mediafusion.elfhosted.com # Allows you to scrape custom instances of MediaFusion
28+
PROXY_DEBRID_STREAM=False # Proxy Debrid Streams (very useful to use your debrid service on multiple IPs at same time)
29+
PROXY_DEBRID_STREAM_PASSWORD=CHANGE_ME # Secret password to enter on configuration page to prevent people from abusing your debrid stream proxy
30+
PROXY_DEBRID_STREAM_MAX_CONNECTIONS=-1 # IP-Based connection limit for the Debrid Stream Proxy (-1 = disabled)
31+
PROXY_DEBRID_STREAM_DEBRID_DEFAULT_SERVICE=realdebrid # if you want your users who use the Debrid Stream Proxy not to have to specify Debrid information, but to use the default one instead
32+
PROXY_DEBRID_STREAM_DEBRID_DEFAULT_APIKEY=CHANGE_ME # if you want your users who use the Debrid Stream Proxy not to have to specify Debrid information, but to use the default one instead
33+
REMOVE_ADULT_CONTENT=False # detect and remove adult content
34+
CUSTOM_HEADER_HTML=None # only set it if you know what it is
35+
STREMTHRU_URL=https://stremthru.13377001.xyz # StremThru acts as a proxy between Comet and debrid services to support them all, so you must have it

.github/workflows/docker-build-push.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
# release:
8-
# types: [created]
7+
- rewrite
98
workflow_dispatch:
109

1110
jobs:
@@ -42,6 +41,19 @@ jobs:
4241
username: ${{ secrets.DOCKER_HUB_USERNAME }}
4342
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
4443

44+
- name: Get branch name
45+
id: branch-name
46+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
47+
48+
- name: Set Docker tags
49+
id: docker_tags
50+
run: |
51+
if [ "${{ steps.branch-name.outputs.branch }}" = "main" ]; then
52+
echo "tags=ghcr.io/g0ldyy/comet:latest,docker.io/g0ldyy/comet:latest" >> $GITHUB_OUTPUT
53+
else
54+
echo "tags=ghcr.io/g0ldyy/comet:${{ steps.branch-name.outputs.branch }},docker.io/g0ldyy/comet:${{ steps.branch-name.outputs.branch }}" >> $GITHUB_OUTPUT
55+
fi
56+
4557
- name: Build and push Docker image
4658
uses: docker/build-push-action@v5.3.0
4759
with:
@@ -51,6 +63,4 @@ jobs:
5163
push: true
5264
cache-from: type=gha
5365
cache-to: type=gha,mode=max
54-
tags: |
55-
ghcr.io/g0ldyy/comet:latest
56-
docker.io/g0ldyy/comet:latest
66+
tags: ${{ steps.docker_tags.outputs.tags }}

0 commit comments

Comments
 (0)