Skip to content

Commit

Permalink
fix: remove catalog configuration from Mediafusion settings and scrap…
Browse files Browse the repository at this point in the history
…er (#919)
  • Loading branch information
davidemarcoli authored Nov 28, 2024
1 parent 7659a37 commit fc7ed05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/program/services/scrapers/mediafusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def validate(self) -> bool:
if not isinstance(self.settings.ratelimit, bool):
logger.error("Mediafusion ratelimit must be a valid boolean.")
return False
if not self.settings.catalogs:
logger.error("Configure at least one Mediafusion catalog.")
return False

if self.app_settings.downloaders.real_debrid.enabled:
self.api_key = self.app_settings.downloaders.real_debrid.api_key
Expand All @@ -76,7 +73,6 @@ def validate(self) -> bool:
"tk": self.api_key,
"ewc": False
},
"sc": self.settings.catalogs,
"sr": ["4k", "2160p", "1440p", "1080p", "720p", "480p", None],
"ec": False,
"eim": False,
Expand Down
5 changes: 0 additions & 5 deletions src/program/settings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ class MediafusionConfig(Observable):
url: str = "https://mediafusion.elfhosted.com"
timeout: int = 30
ratelimit: bool = True
catalogs: List[str] = [
"prowlarr_streams",
"torrentio_streams",
"zilean_dmm_streams"
]

class OrionoidConfig(Observable):
enabled: bool = False
Expand Down

0 comments on commit fc7ed05

Please sign in to comment.