wi1-bot 1.4.11__py3-none-any.whl → 1.4.13__py3-none-any.whl
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.
- wi1_bot/__init__.py +6 -1
- wi1_bot/discord/bot.py +4 -6
- wi1_bot/scripts/start.py +2 -1
- {wi1_bot-1.4.11.dist-info → wi1_bot-1.4.13.dist-info}/METADATA +15 -38
- {wi1_bot-1.4.11.dist-info → wi1_bot-1.4.13.dist-info}/RECORD +8 -10
- {wi1_bot-1.4.11.dist-info → wi1_bot-1.4.13.dist-info}/WHEEL +1 -2
- wi1_bot/_version.py +0 -16
- wi1_bot-1.4.11.dist-info/top_level.txt +0 -1
- {wi1_bot-1.4.11.dist-info → wi1_bot-1.4.13.dist-info}/entry_points.txt +0 -0
- {wi1_bot-1.4.11.dist-info → wi1_bot-1.4.13.dist-info/licenses}/LICENSE +0 -0
wi1_bot/__init__.py
CHANGED
wi1_bot/discord/bot.py
CHANGED
@@ -67,9 +67,7 @@ async def before_invoke(ctx: commands.Context[Any]) -> None:
|
|
67
67
|
logger.info(f"got command from {ctx.message.author}: {ctx.message.content}")
|
68
68
|
|
69
69
|
|
70
|
-
@bot.command(
|
71
|
-
name="downloads", aliases=["queue", "q"], help="see the status of movie downloads"
|
72
|
-
)
|
70
|
+
@bot.command(name="downloads", aliases=["queue", "q"], help="see the status of movie downloads")
|
73
71
|
@commands.cooldown(1, 10)
|
74
72
|
async def downloads_cmd(ctx: commands.Context[Any]) -> None:
|
75
73
|
async with ctx.typing():
|
@@ -84,7 +82,7 @@ async def downloads_cmd(ctx: commands.Context[Any]) -> None:
|
|
84
82
|
await reply(ctx.message, "\n\n".join(map(str, queue)), title="download progress")
|
85
83
|
|
86
84
|
|
87
|
-
@bot.command(name="quota", help="see your used space on the plex")
|
85
|
+
@bot.command(name="quota", help="see your used space on the plex")
|
88
86
|
@commands.cooldown(1, 60, commands.BucketType.user)
|
89
87
|
async def quota_cmd(ctx: commands.Context[Any]) -> None:
|
90
88
|
async with ctx.typing():
|
@@ -108,7 +106,7 @@ async def quota_cmd(ctx: commands.Context[Any]) -> None:
|
|
108
106
|
await reply(ctx.message, msg)
|
109
107
|
|
110
108
|
|
111
|
-
@bot.command(name="quotas", help="see everyone's used space on the plex")
|
109
|
+
@bot.command(name="quotas", help="see everyone's used space on the plex")
|
112
110
|
@commands.cooldown(1, 60)
|
113
111
|
async def quotas_cmd(ctx: commands.Context[Any]) -> None:
|
114
112
|
if "quotas" not in config["discord"]:
|
@@ -139,7 +137,7 @@ async def quotas_cmd(ctx: commands.Context[Any]) -> None:
|
|
139
137
|
)
|
140
138
|
|
141
139
|
|
142
|
-
@bot.command(name="addtag", help="add a user tag")
|
140
|
+
@bot.command(name="addtag", help="add a user tag")
|
143
141
|
@commands.has_role("plex-admin")
|
144
142
|
async def addtag_cmd(ctx: commands.Context[Any], name: str, user: discord.Member) -> None:
|
145
143
|
tag = f"{name}: {user.id}"
|
wi1_bot/scripts/start.py
CHANGED
@@ -4,7 +4,7 @@ import logging.config
|
|
4
4
|
import pathlib
|
5
5
|
from typing import Any
|
6
6
|
|
7
|
-
from wi1_bot import webhook
|
7
|
+
from wi1_bot import __version__, webhook
|
8
8
|
from wi1_bot.config import config
|
9
9
|
from wi1_bot.discord import bot
|
10
10
|
from wi1_bot.transcoder import Transcoder
|
@@ -70,6 +70,7 @@ def main() -> None:
|
|
70
70
|
|
71
71
|
logging.config.dictConfig(logging_config)
|
72
72
|
|
73
|
+
_logger.info(f"starting wi1-bot version {__version__}")
|
73
74
|
_logger.info(f"logging to: {log_dir}")
|
74
75
|
|
75
76
|
webhook.start()
|
@@ -1,49 +1,22 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: wi1-bot
|
3
|
-
Version: 1.4.
|
3
|
+
Version: 1.4.13
|
4
4
|
Summary: Discord bot for Radarr/Sonarr integration
|
5
|
-
Author-email: William Huebner <wilhueb@gmail.com>
|
6
|
-
License: MIT License
|
7
|
-
|
8
|
-
Copyright (c) 2022 William Huebner
|
9
|
-
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
12
|
-
in the Software without restriction, including without limitation the rights
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
15
|
-
furnished to do so, subject to the following conditions:
|
16
|
-
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
18
|
-
copies or substantial portions of the Software.
|
19
|
-
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
-
SOFTWARE.
|
27
|
-
|
28
5
|
Project-URL: Homepage, https://github.com/wthueb/wi1-bot
|
6
|
+
Author-email: William Huebner <wilhueb@gmail.com>
|
7
|
+
License-Expression: MIT
|
8
|
+
License-File: LICENSE
|
29
9
|
Classifier: Programming Language :: Python :: 3
|
30
10
|
Classifier: Programming Language :: Python :: 3 :: Only
|
31
11
|
Classifier: Programming Language :: Python :: 3.10
|
32
12
|
Requires-Python: >=3.10
|
33
|
-
|
34
|
-
|
35
|
-
Requires-Dist: discord.py==2.3.2
|
36
|
-
Requires-Dist: Flask==3.0.2
|
13
|
+
Requires-Dist: discord-py==2.3.2
|
14
|
+
Requires-Dist: flask==3.0.2
|
37
15
|
Requires-Dist: mongoengine==0.29.1
|
38
16
|
Requires-Dist: pyarr==5.2.0
|
39
|
-
Requires-Dist:
|
40
|
-
Requires-Dist: requests
|
41
|
-
|
42
|
-
Requires-Dist: mongo-types==0.15.1; extra == "dev"
|
43
|
-
Requires-Dist: mypy==1.3.0; extra == "dev"
|
44
|
-
Requires-Dist: pre-commit==3.6.2; extra == "dev"
|
45
|
-
Requires-Dist: ruff==0.3.0; extra == "dev"
|
46
|
-
Requires-Dist: types-PyYAML==6.0.12.12; extra == "dev"
|
17
|
+
Requires-Dist: pyyaml==6.0.1
|
18
|
+
Requires-Dist: requests>=2.32.4
|
19
|
+
Description-Content-Type: text/markdown
|
47
20
|
|
48
21
|
# wi1-bot
|
49
22
|
|
@@ -66,12 +39,16 @@ Requires Python >=3.10.
|
|
66
39
|
|
67
40
|
### TODO
|
68
41
|
|
42
|
+
- use sqlite
|
43
|
+
- dynamically copy streams
|
44
|
+
- i.e. if mov_text in input, -c:s srt
|
45
|
+
- https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners
|
46
|
+
- link discord user to overseerr user
|
69
47
|
- https://github.com/kkroening/ffmpeg-python
|
70
48
|
- `ffmpeg -codecs`, `ffmpeg -hwaccels`
|
71
49
|
- ffmpeg filters for deinterlacing, scaling
|
72
50
|
- https://docs.nvidia.com/video-technologies/video-codec-sdk/12.0/ffmpeg-with-nvidia-gpu/index.html#hwaccel-transcode-with-scaling
|
73
51
|
- ffmpeg remove bad subtitle streams
|
74
|
-
- use sqlite
|
75
52
|
- have config.discord.users be a dict with 'quotas' and 'name' for *arr tags
|
76
53
|
- Better pushover notifications
|
77
54
|
- Failures for pretty much everything
|
@@ -1,5 +1,4 @@
|
|
1
|
-
wi1_bot/__init__.py,sha256=
|
2
|
-
wi1_bot/_version.py,sha256=CiEe7E8jVlrB3YZUumeEso6PXucVNqiDDQfL8kleYok,413
|
1
|
+
wi1_bot/__init__.py,sha256=dYlvBffClqwInBRSxSAoJHuujuh4yuPderFR4n7Odko,161
|
3
2
|
wi1_bot/config.py,sha256=AtzOXvCeat_lb-w_Wy37XyWIpV3LmKh38OGigluJ2nM,3139
|
4
3
|
wi1_bot/push.py,sha256=6EwQ1eXcJnQimAi0dOm1_t7Am056zob-1-EOkytGZWg,783
|
5
4
|
wi1_bot/webhook.py,sha256=11rzmxhXnDeXWlgEnOLh26WP79rLeG71HaDvKUXuUcA,3665
|
@@ -11,7 +10,7 @@ wi1_bot/arr/radarr.py,sha256=jxgNuCZY7aGMWK3nTLt8KLntiYcLaAF7g9dJoThsCvc,5721
|
|
11
10
|
wi1_bot/arr/sonarr.py,sha256=OouuorRHBMFAOy5oDeJZ5H6WZ-95-N01EHtpOTVMTCo,5970
|
12
11
|
wi1_bot/arr/util.py,sha256=y4_Dotm-pSJJT8xvPWy7ZoGMGVI-YOU4zK2LNTSoTB0,1025
|
13
12
|
wi1_bot/discord/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
-
wi1_bot/discord/bot.py,sha256=
|
13
|
+
wi1_bot/discord/bot.py,sha256=VEoe7ST9X7PYnFL5yj1x9hodeAYLMGcjWlPkZSE-ujI,4924
|
15
14
|
wi1_bot/discord/helpers.py,sha256=7Qr5Kr8H2CQoLiGG7Oqh388jqUCMJH0EBvF8fC-IbJo,2300
|
16
15
|
wi1_bot/discord/cogs/__init__.py,sha256=9nA47jEyuGG7s1UJYz5SJASJcs0Xa3M1rNz9BiyCico,95
|
17
16
|
wi1_bot/discord/cogs/movie.py,sha256=Gr8xbsdNDlKkOb7boiTE5n3YHz7FR0ajSRANV8EM3XY,3950
|
@@ -19,14 +18,13 @@ wi1_bot/discord/cogs/series.py,sha256=bPA3LtuK78qkYvyN38ZdNQ_6I3j4qVN9L5JHV8KX_G
|
|
19
18
|
wi1_bot/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
19
|
wi1_bot/scripts/add_tag.py,sha256=mWwo8egk2Y5XRiQCpfkA11-3rcxZoD0JOJKxV0LguLk,586
|
21
20
|
wi1_bot/scripts/rescan.py,sha256=97oGK1Gr3jBjfX-Eil4C0hDIwtpZ34E_rwTYCI8Z7r4,1474
|
22
|
-
wi1_bot/scripts/start.py,sha256=
|
21
|
+
wi1_bot/scripts/start.py,sha256=TfEKCxS_95L5ZTi8OY45ywsgNnKlsqLDN6YesowifvM,2527
|
23
22
|
wi1_bot/scripts/transcode_item.py,sha256=21MeeIZ9wIRhAY-FOEgOdPsg6YOLlSUj59r8NkTfixw,1155
|
24
23
|
wi1_bot/transcoder/__init__.py,sha256=B4xr82UtIFc3tyy_MEZdZKMukYW0yejPnfsGowaTIM0,105
|
25
24
|
wi1_bot/transcoder/transcode_queue.py,sha256=W7r2I7OD8QuxseCEb7_ddOvYXiBBLmKLvCs2IgJJ92I,1856
|
26
25
|
wi1_bot/transcoder/transcoder.py,sha256=2wIgDPkrrXcrSjA1HpYGd0RX5wonw1zfltJqGzCaorM,9163
|
27
|
-
wi1_bot-1.4.
|
28
|
-
wi1_bot-1.4.
|
29
|
-
wi1_bot-1.4.
|
30
|
-
wi1_bot-1.4.
|
31
|
-
wi1_bot-1.4.
|
32
|
-
wi1_bot-1.4.11.dist-info/RECORD,,
|
26
|
+
wi1_bot-1.4.13.dist-info/METADATA,sha256=yjnHN9HH8j8SYx13ZPrhG1AoCnrisOjCh9Iz-2Wt-AI,3475
|
27
|
+
wi1_bot-1.4.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
wi1_bot-1.4.13.dist-info/entry_points.txt,sha256=pF5EawAQsUNMHs5exynpNdRq9g4dODg-RaPkx2MyYLU,184
|
29
|
+
wi1_bot-1.4.13.dist-info/licenses/LICENSE,sha256=6V4_mQoPoLJl77_WMsQRQMDG2mnIhDUdfCmMkqM9Qwc,1072
|
30
|
+
wi1_bot-1.4.13.dist-info/RECORD,,
|
wi1_bot/_version.py
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# file generated by setuptools_scm
|
2
|
-
# don't change, don't track in version control
|
3
|
-
TYPE_CHECKING = False
|
4
|
-
if TYPE_CHECKING:
|
5
|
-
from typing import Tuple, Union
|
6
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
7
|
-
else:
|
8
|
-
VERSION_TUPLE = object
|
9
|
-
|
10
|
-
version: str
|
11
|
-
__version__: str
|
12
|
-
__version_tuple__: VERSION_TUPLE
|
13
|
-
version_tuple: VERSION_TUPLE
|
14
|
-
|
15
|
-
__version__ = version = '1.4.11'
|
16
|
-
__version_tuple__ = version_tuple = (1, 4, 11)
|
@@ -1 +0,0 @@
|
|
1
|
-
wi1_bot
|
File without changes
|
File without changes
|