forked from LimeDrive/stream-fusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'LimeDrive:develop' into develop
- Loading branch information
Showing
48 changed files
with
1,730 additions
and
2,969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,76 @@ | ||
# TODO: | ||
version: "3.8" | ||
|
||
services: | ||
|
||
stream-fusion: | ||
image: ghcr.io/limedrive/stream-fusion:develop | ||
container_name: stream-fusion | ||
environment: | ||
SECRET_API_KEY: 'superkey_that_can_be_changed' | ||
TMDB_API_KEY: 'REDATED' | ||
FLARESOLVERR_HOST: flaresolverr | ||
JACKETT_HOST: jackett | ||
JACKETT_API_KEY: 'REDACTED' | ||
ZILEAN_URL: 'http://zilean:8181' | ||
REDIS_HOST: redis | ||
REDIS_PORT: 6379 | ||
LOG_LEVEL: DEBUG | ||
LOG_REDACTED: False | ||
TZ: Europe/London | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ./stream-fusion:/app/config | ||
depends_on: | ||
- redis | ||
- zilean | ||
- jackett | ||
- flaresolverr | ||
restart: unless-stopped | ||
|
||
redis: | ||
image: redis:latest | ||
container_name: redis | ||
expose: | ||
- 6379 | ||
volumes: | ||
- ./redis:/data | ||
command: redis-server --appendonly yes | ||
restart: unless-stopped | ||
|
||
zilean: | ||
image: ipromknight/zilean:v1.0.17 # Latest version without ElasticSearch | ||
restart: unless-stopped | ||
expose: | ||
- 8181 | ||
volumes: | ||
- zilean_data:/app/data | ||
|
||
flaresolverr: | ||
image: ghcr.io/flaresolverr/flaresolverr:latest | ||
container_name: flaresolverr | ||
environment: | ||
- LOG_LEVEL=${LOG_LEVEL:-info} | ||
- LOG_HTML=${LOG_HTML:-false} | ||
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none} | ||
- TZ=Europe/London | ||
expose: | ||
- 8191 | ||
restart: unless-stopped | ||
|
||
jackett: | ||
image: lscr.io/linuxserver/jackett:latest | ||
container_name: jackett | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- TZ=Europe/London | ||
volumes: | ||
- ./jackett:/config | ||
- ./blackhole:/downloads | ||
ports: | ||
- 9117:9117 | ||
restart: unless-stopped | ||
|
||
volumes: | ||
zilean_data: |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# FlareSolverr Module | ||
from .solver import FlareSolverr | ||
|
||
__all__ = ['FlareSolverr'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
from dataclasses import dataclass | ||
from typing import List | ||
|
||
|
||
@dataclass | ||
class FlareSolverOK: | ||
startTimestamp: int | ||
endTimestamp: int | ||
version: str | ||
status: str | ||
message: str | ||
|
||
@classmethod | ||
def from_dict(cls, dct): | ||
return cls( | ||
dct["startTimestamp"], | ||
dct["endTimestamp"], | ||
dct["version"], | ||
dct["status"], | ||
dct["message"] | ||
) | ||
|
||
|
||
@dataclass | ||
class SessionsListResponse: | ||
startTimestamp: int | ||
endTimestamp: int | ||
version: str | ||
status: str | ||
message: str | ||
sessions: List[str] | ||
|
||
@classmethod | ||
def from_dict(cls, dct): | ||
return cls( | ||
dct["startTimestamp"], | ||
dct["endTimestamp"], | ||
dct["version"], | ||
dct["status"], | ||
dct["message"], | ||
dct["sessions"] | ||
) | ||
|
||
|
||
@dataclass | ||
class SesssionCreateResponse: | ||
startTimestamp: int | ||
endTimestamp: int | ||
version: str | ||
status: str | ||
message: str | ||
session: str | ||
|
||
@classmethod | ||
def from_dict(cls, dct): | ||
return cls( | ||
dct["startTimestamp"], | ||
dct["endTimestamp"], | ||
dct["version"], | ||
dct["status"], | ||
dct["message"], | ||
dct["session"] | ||
) | ||
|
||
|
||
@dataclass | ||
class Solution: | ||
url: str | ||
status: int | ||
cookies: dict | ||
user_agent: str | ||
headers: dict | ||
response: str | ||
|
||
@classmethod | ||
def from_dict(cls, dct: dict): | ||
return cls( | ||
dct["url"], | ||
dct["status"], | ||
dct["cookies"], | ||
dct["userAgent"], | ||
dct["headers"], | ||
dct["response"] | ||
) | ||
|
||
|
||
@dataclass | ||
class GetPostRequestResponse: | ||
startTimestamp: int | ||
endTimestamp: int | ||
version: str | ||
status: str | ||
message: str | ||
solution: Solution | ||
|
||
@classmethod | ||
def from_dict(cls, dct: dict): | ||
return cls( | ||
dct["startTimestamp"], | ||
dct["endTimestamp"], | ||
dct["version"], | ||
dct["status"], | ||
dct["message"], | ||
Solution.from_dict(dct["solution"]) | ||
) |
Oops, something went wrong.