Skip to content

Commit

Permalink
Merge pull request #100 from jbsparrow/local-authentication-configs
Browse files Browse the repository at this point in the history
Local authentication configs
  • Loading branch information
datawhores authored Sep 19, 2024
2 parents 643c61b + f29b3ba commit 6675dbb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cyberdrop_dl/managers/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def startup(self) -> None:
self.authentication_settings = self.manager.path_manager.config_dir / "authentication.yaml"
self.global_settings = self.manager.path_manager.config_dir / "global_settings.yaml"
self.settings = self.manager.path_manager.config_dir / self.loaded_config / "settings.yaml"
if (self.manager.path_manager.config_dir / self.loaded_config / "authentication.yaml").is_file():
self.authentication_settings = self.manager.path_manager.config_dir / self.loaded_config / "authentication.yaml"

self.settings.parent.mkdir(parents=True, exist_ok=True)
self.load_configs()
Expand Down
16 changes: 16 additions & 0 deletions cyberdrop_dl/utils/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
------------------------------------------------------------
C\bCH\bHA\bAN\bNG\bGE\bEL\bLO\bOG\bG
\tVersion 5.6.13
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
\tThis update introduces the following changes:
\t\t1. Per-config authentication settings
\tDetails:
\t\t- If an authentication.yaml file is placed within your config directory, it will be used instead of the global authentication values.
\tFor more details, visit the wiki: https://script-ware.gitbook.io
------------------------------------------------------------
C\bCH\bHA\bAN\bNG\bGE\bEL\bLO\bOG\bG
\tVersion 5.6.12
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/configuration-options/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ If you use the cookie extractor to load the XF\_User\_Cookies into the program,

It is best to leave the authentication parameter for SimpCity blank, as they have made their forum public and have asked users scraping the website not to use logged in users.

In order to set specific authentication values for a config instead of the global values, make an `authentication.yaml` file in the config folder.

***

* \<forum>\_xf\_user\_cookie
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl-patched"
version = "5.6.12"
version = "5.6.13"
description = "Bulk downloader for multiple file hosts"
authors = ["Jacob B <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 6675dbb

Please sign in to comment.