wi1-bot 2.0.0__tar.gz → 2.0.1__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 (41) hide show
  1. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.github/workflows/pypi-publish.yml +1 -1
  2. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/PKG-INFO +1 -1
  3. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/config.py +2 -1
  4. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/webhook.py +7 -14
  5. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.dockerignore +0 -0
  6. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.envrc +0 -0
  7. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.github/workflows/docker.yaml +0 -0
  8. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.gitignore +0 -0
  9. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/.pre-commit-config.yaml +0 -0
  10. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/Dockerfile +0 -0
  11. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/LICENSE +0 -0
  12. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/README.md +0 -0
  13. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/compose.yaml +0 -0
  14. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/config.yaml.template +0 -0
  15. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/flake.nix +0 -0
  16. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/pyproject.toml +0 -0
  17. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/tests/movie_downloaded.py +0 -0
  18. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/uv.lock +0 -0
  19. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/__init__.py +0 -0
  20. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/__init__.py +0 -0
  21. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/download.py +0 -0
  22. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/episode.py +0 -0
  23. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/movie.py +0 -0
  24. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/radarr.py +0 -0
  25. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/sonarr.py +0 -0
  26. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/arr/util.py +0 -0
  27. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/__init__.py +0 -0
  28. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/bot.py +0 -0
  29. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/cogs/__init__.py +0 -0
  30. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/cogs/movie.py +0 -0
  31. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/cogs/series.py +0 -0
  32. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/discord/helpers.py +0 -0
  33. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/push.py +0 -0
  34. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/scripts/__init__.py +0 -0
  35. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/scripts/add_tag.py +0 -0
  36. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/scripts/rescan.py +0 -0
  37. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/scripts/start.py +0 -0
  38. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/scripts/transcode_item.py +0 -0
  39. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/transcoder/__init__.py +0 -0
  40. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/transcoder/transcode_queue.py +0 -0
  41. {wi1_bot-2.0.0 → wi1_bot-2.0.1}/wi1_bot/transcoder/transcoder.py +0 -0
@@ -24,7 +24,7 @@ jobs:
24
24
  cache-dependency-glob: uv.lock
25
25
 
26
26
  - name: Install python
27
- run: uv python install 3.10
27
+ run: uv python install 3.11
28
28
 
29
29
  - name: build
30
30
  run: uv build
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wi1-bot
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Discord bot for Radarr/Sonarr integration
5
5
  Project-URL: Homepage, https://github.com/wthueb/wi1-bot
6
6
  Author-email: William Huebner <wilhueb@gmail.com>
@@ -48,12 +48,13 @@ class DiscordConfig(TypedDict):
48
48
 
49
49
 
50
50
  class TranscodingProfile(TypedDict):
51
- copy_all_streams: bool
52
51
  video_codec: NotRequired[str]
53
52
  video_bitrate: NotRequired[int]
54
53
  audio_codec: NotRequired[str]
55
54
  audio_channels: NotRequired[int]
56
55
  audio_bitrate: NotRequired[str]
56
+ copy_all_streams: NotRequired[bool]
57
+ languages: NotRequired[str]
57
58
 
58
59
 
59
60
  class TranscodingConfig(TypedDict):
@@ -66,20 +66,13 @@ def on_download(req: dict[str, Any]) -> None:
66
66
 
67
67
  quality_options = config["transcoding"]["profiles"][quality_profile]
68
68
 
69
- # python 3.11: TranscodingProfile and typing.LiteralString
70
- def get_key(d: Any, k: str) -> Any:
71
- try:
72
- return d[k]
73
- except KeyError:
74
- return None
75
-
76
- copy_all_streams = get_key(quality_options, "copy_all_streams")
77
- languages = get_key(quality_options, "languages")
78
- video_codec = get_key(quality_options, "video_codec")
79
- video_bitrate = get_key(quality_options, "video_bitrate")
80
- audio_codec = get_key(quality_options, "audio_codec")
81
- audio_channels = get_key(quality_options, "audio_channels")
82
- audio_bitrate = get_key(quality_options, "audio_bitrate")
69
+ copy_all_streams = quality_options.get("copy_all_streams", None)
70
+ languages = quality_options.get("languages", None)
71
+ video_codec = quality_options.get("video_codec", None)
72
+ video_bitrate = quality_options.get("video_bitrate", None)
73
+ audio_codec = quality_options.get("audio_codec", None)
74
+ audio_channels = quality_options.get("audio_channels", None)
75
+ audio_bitrate = quality_options.get("audio_bitrate", None)
83
76
 
84
77
  transcoder.queue.add(
85
78
  path=str(path),
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
File without changes
File without changes
File without changes
File without changes
File without changes