From 98efbe59a0fc6200e4e8bc042c7392b069f038f9 Mon Sep 17 00:00:00 2001 From: mhdzumair Date: Fri, 1 Nov 2024 16:23:51 +0530 Subject: [PATCH] organize configuration settings and reorganize documentation --- db/config.py | 4 ++-- docs/configuration.md | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/db/config.py b/db/config.py index a244bd2..c39b297 100644 --- a/db/config.py +++ b/db/config.py @@ -46,10 +46,12 @@ class Settings(BaseSettings): prowlarr_feed_scrape_interval_hour: int = 3 # Torrentio Settings + is_scrap_from_torrentio: bool = False torrentio_search_interval_days: int = 3 torrentio_url: str = "https://torrentio.strem.fun" # Zilean Settings + is_scrap_from_zilean: bool = False zilean_search_interval_hour: int = 24 zilean_url: str = "http://zilean.zilean:8181" @@ -64,8 +66,6 @@ class Settings(BaseSettings): local_config_path: str = "resources/json/scraper_config.json" # Feature Toggles - is_scrap_from_torrentio: bool = False - is_scrap_from_zilean: bool = False enable_rate_limit: bool = False validate_m3u8_urls_liveness: bool = True disable_download_via_browser: bool = False diff --git a/docs/configuration.md b/docs/configuration.md index 9276cf5..3ea3fdb 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -7,6 +7,9 @@ This guide describes the environment variables available in MediaFusion for conf These settings define the basic configuration and identity of your MediaFusion instance. - **addon_name** (default: `"MediaFusion"`): The name of the MediaFusion addon. You can customize this value to identify the addon. +- **version** : The version of the MediaFusion addon. +- **description** : A brief description of the MediaFusion addon to show on stremio Addon page. +- **contact_email** : The contact email for the MediaFusion addon to show on stremio Addon page. - **host_url** (required): The URL where MediaFusion is hosted. - **secret_key** (required): A 32-character secret key for securely signing the session. Must be exactly 32 characters long. - **api_password** (required): The password for accessing the API endpoints. @@ -30,10 +33,12 @@ These URLs define the locations of various external services used by MediaFusion - **poster_host_url** (default: Use the Host URL value): The URL where poster images are served from. Use the same value as `host_url` if posters are served from the same location. - **scraper_proxy_url**: The proxy URL for the scraper, if any. - **torrentio_url** (default: `"https://torrentio.strem.fun"`): The Torrentio / KightCrawler URL. -- **zilean_url** (default: `"http://zilean.zilean:8181"`): The URL for the Zilean service. - **playwright_cdp_url** (default: `"ws://browserless:3000?blockAds=true&stealth=true"`): The URL for the Playwright CDP (Chrome DevTools Protocol) service. - **flaresolverr_url** (default: `"http://flaresolverr:8191/v1"`): The URL for the FlareSolverr service. +## External Service API Keys +- **scrapeops_api_key** (Optional): The API key for the ScrapeOps monitoring service. + ## Prowlarr Settings These settings are specific to the Prowlarr integration. @@ -55,6 +60,10 @@ OAuth settings for Premiumize integration. - **premiumize_oauth_client_id**: The OAuth client ID for Premiumize. - **premiumize_oauth_client_secret**: The OAuth client secret for Premiumize. +## Zilean Settings +- **zilean_url** (default: `"http://zilean-service:9696"`): The Zilean service URL. +- **zilean_search_interval_hour** (default: 24): How often Zilean searches are initiated, in hours. + ## Configuration Sources These settings define where MediaFusion looks for its configuration files.