wi1-bot 1.4.2__tar.gz → 1.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/PKG-INFO +1 -1
  2. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/config.yaml.template +1 -1
  3. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/pyproject.toml +1 -1
  4. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/_version.py +2 -2
  5. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/config.py +18 -11
  6. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/PKG-INFO +1 -1
  7. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/requires.txt +1 -1
  8. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/.github/workflows/pypi-publish.yml +0 -0
  9. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/.gitignore +0 -0
  10. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/.pre-commit-config.yaml +0 -0
  11. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/.vscode/launch.json +0 -0
  12. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/.vscode/settings.json +0 -0
  13. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/LICENSE +0 -0
  14. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/README.md +0 -0
  15. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/setup.cfg +0 -0
  16. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/tests/movie_downloaded.py +0 -0
  17. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/__init__.py +0 -0
  18. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/__init__.py +0 -0
  19. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/download.py +0 -0
  20. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/episode.py +0 -0
  21. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/movie.py +0 -0
  22. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/radarr.py +0 -0
  23. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/arr/sonarr.py +0 -0
  24. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/__init__.py +0 -0
  25. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/bot.py +0 -0
  26. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/cogs/__init__.py +0 -0
  27. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/cogs/movie.py +0 -0
  28. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/cogs/series.py +0 -0
  29. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/discord/helpers.py +0 -0
  30. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/push.py +0 -0
  31. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/scripts/__init__.py +0 -0
  32. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/scripts/add_tag.py +0 -0
  33. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/scripts/start.py +0 -0
  34. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/scripts/transcode_item.py +0 -0
  35. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/transcoder/__init__.py +0 -0
  36. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/transcoder/transcode_queue.py +0 -0
  37. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/transcoder/transcoder.py +0 -0
  38. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot/webhook.py +0 -0
  39. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/SOURCES.txt +0 -0
  40. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/dependency_links.txt +0 -0
  41. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/entry_points.txt +0 -0
  42. {wi1-bot-1.4.2 → wi1-bot-1.4.3}/wi1_bot.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wi1-bot
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Summary: Discord bot for Radarr/Sonarr integration
5
5
  Home-page: https://github.com/wthueb/wi1-bot
6
6
  Author-email: William Huebner <wilhueb@gmail.com>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  general:
3
- # log file directory, optional
3
+ # log file directory, optional, ignored if ran using docker
4
4
  log_dir: /var/log/wi1-bot
5
5
  # remote path mappings, optional
6
6
  remote_path_mappings:
@@ -14,7 +14,7 @@ requires-python = ">=3.10"
14
14
  dependencies = [
15
15
  "discord.py==2.3.2",
16
16
  "Flask==3.0.2",
17
- "mongoengine==0.28.0",
17
+ "mongoengine==0.28.1",
18
18
  "pyarr==5.2.0",
19
19
  "PyYAML==6.0.1",
20
20
  "requests==2.31.0"
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.4.2'
16
- __version_tuple__ = version_tuple = (1, 4, 2)
15
+ __version__ = version = '1.4.3'
16
+ __version_tuple__ = version_tuple = (1, 4, 3)
@@ -4,20 +4,21 @@ from typing import TypedDict
4
4
 
5
5
  import yaml
6
6
 
7
- _config_path: str | None = None
7
+ _config_path = os.getenv("WB_CONFIG_PATH")
8
8
 
9
- if home := os.getenv("HOME"):
10
- _path = pathlib.Path(home) / ".config" / "wi1-bot" / "config.yaml"
11
- if _path.is_file():
12
- _config_path = str(_path.resolve())
9
+ if _config_path is None:
10
+ if home := os.getenv("HOME"):
11
+ _path = pathlib.Path(home) / ".config" / "wi1-bot" / "config.yaml"
12
+ if _path.is_file():
13
+ _config_path = str(_path.resolve())
13
14
 
14
- if xdg_config_home := os.getenv("XDG_CONFIG_HOME"):
15
- _path = pathlib.Path(xdg_config_home) / "wi1-bot" / "config.yaml"
16
- if _path.is_file():
17
- _config_path = str(_path.resolve())
15
+ if xdg_config_home := os.getenv("XDG_CONFIG_HOME"):
16
+ _path = pathlib.Path(xdg_config_home) / "wi1-bot" / "config.yaml"
17
+ if _path.is_file():
18
+ _config_path = str(_path.resolve())
18
19
 
19
- if pathlib.Path("config.yaml").is_file():
20
- _config_path = "config.yaml"
20
+ if pathlib.Path("config.yaml").is_file():
21
+ _config_path = "config.yaml"
21
22
 
22
23
  if _config_path is None:
23
24
  raise FileNotFoundError(
@@ -127,3 +128,9 @@ class Config(ConfigOptional):
127
128
 
128
129
  with open(_config_path, "r") as f:
129
130
  config: Config = yaml.load(f, Loader=yaml.SafeLoader)
131
+
132
+ if log_dir := os.getenv("WB_LOG_DIR"):
133
+ if "general" not in config:
134
+ config["general"] = {}
135
+
136
+ config["general"]["log_dir"] = log_dir
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wi1-bot
3
- Version: 1.4.2
3
+ Version: 1.4.3
4
4
  Summary: Discord bot for Radarr/Sonarr integration
5
5
  Home-page: https://github.com/wthueb/wi1-bot
6
6
  Author-email: William Huebner <wilhueb@gmail.com>
@@ -1,6 +1,6 @@
1
1
  discord.py==2.3.2
2
2
  Flask==3.0.2
3
- mongoengine==0.28.0
3
+ mongoengine==0.28.1
4
4
  pyarr==5.2.0
5
5
  PyYAML==6.0.1
6
6
  requests==2.31.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes