wi1-bot 1.4.8__py3-none-any.whl → 1.4.10__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/_version.py CHANGED
@@ -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.8'
16
- __version_tuple__ = version_tuple = (1, 4, 8)
15
+ __version__ = version = '1.4.10'
16
+ __version_tuple__ = version_tuple = (1, 4, 10)
wi1_bot/arr/radarr.py CHANGED
@@ -149,10 +149,10 @@ class Radarr:
149
149
  raise ValueError(f"no quality profile with the id {profile_id}")
150
150
 
151
151
  def rescan_movie(self, movie_id: int) -> None:
152
- self._radarr.post_command("RescanMovie", movieId=movie_id) # type: ignore
152
+ self._radarr.post_command("RescanMovie", movieId=movie_id)
153
153
 
154
154
  def refresh_movie(self, movie_id: int) -> None:
155
- self._radarr.post_command("RefreshMovie", movieIds=[movie_id]) # type: ignore
155
+ self._radarr.post_command("RefreshMovie", movieIds=[movie_id])
156
156
 
157
157
  def search_missing(self) -> None:
158
158
  self._radarr.post_command(name="MissingMoviesSearch")
@@ -96,6 +96,7 @@ class Transcoder:
96
96
  tmp_log_path = tmp_folder / "wi1_bot.transcoder.log"
97
97
 
98
98
  with open(tmp_log_path, "w") as ffmpeg_log_file:
99
+ ffmpeg_log_file.write(f"ffmpeg command: {shlex.join(command)}\n")
99
100
  assert proc.stdout is not None
100
101
  for line in proc.stdout:
101
102
  ffmpeg_log_file.write(line)
@@ -107,11 +108,14 @@ class Transcoder:
107
108
  try:
108
109
  transcode_to.unlink(missing_ok=True)
109
110
  except Exception:
110
- self.logger.warning(
111
+ self.logger.debug(
111
112
  f"failed to delete transcoded file: {transcode_to}"
112
113
  )
113
114
 
114
- if "Error opening input files" in last_output:
115
+ if (
116
+ "Error opening input files" in last_output
117
+ or "No such file or directory" in last_output
118
+ ):
115
119
  self.logger.info(
116
120
  f"file does not exist: {path}, skipping transcoding"
117
121
  )
@@ -161,7 +165,7 @@ class Transcoder:
161
165
  f"file doesn't exist: {item.path}, deleting transcoded file"
162
166
  )
163
167
 
164
- transcode_to.unlink()
168
+ transcode_to.unlink(missing_ok=True)
165
169
  return True
166
170
 
167
171
  new_path = path.parent / transcode_to.name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wi1-bot
3
- Version: 1.4.8
3
+ Version: 1.4.10
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>
@@ -68,6 +68,11 @@ Requires Python >=3.10.
68
68
 
69
69
  ### TODO
70
70
 
71
+ - https://github.com/kkroening/ffmpeg-python
72
+ - `ffmpeg -codecs`, `ffmpeg -hwaccels`
73
+ - ffmpeg filters for deinterlacing, scaling
74
+ - https://docs.nvidia.com/video-technologies/video-codec-sdk/12.0/ffmpeg-with-nvidia-gpu/index.html#hwaccel-transcode-with-scaling
75
+ - ffmpeg remove bad subtitle streams
71
76
  - use sqlite
72
77
  - have config.discord.users be a dict with 'quotas' and 'name' for *arr tags
73
78
  - Better pushover notifications
@@ -1,5 +1,5 @@
1
1
  wi1_bot/__init__.py,sha256=11ozJKiUsqDCZ3_mcAHhGYUyGK_Unl54djVSBBExFB4,59
2
- wi1_bot/_version.py,sha256=5V0g1zXAYqZG41mH-4FajHcVE05C9vUQm3ybra2NhKU,411
2
+ wi1_bot/_version.py,sha256=PSfQzSIY-TCmDuz8UpHfMXvNhO-iyRNDmP7WVYUSfx8,413
3
3
  wi1_bot/config.py,sha256=AtzOXvCeat_lb-w_Wy37XyWIpV3LmKh38OGigluJ2nM,3139
4
4
  wi1_bot/push.py,sha256=-Az8c21R3IZAkJVRQmWsbNXMfvBzzpc9pFTWsDy1mJE,789
5
5
  wi1_bot/webhook.py,sha256=cVp6USg1vbfL05TPQSDIUUYPHWDjuPGb1IGsqImao6s,4713
@@ -7,7 +7,7 @@ wi1_bot/arr/__init__.py,sha256=ZIgkW24GBdS4sJmaiEIhueHOB6s2L8y2s9ahgp1USRI,86
7
7
  wi1_bot/arr/download.py,sha256=02AYFglnFdWSG8xj_TaJc6l2wjybyhUW6F97CnoyUFw,1381
8
8
  wi1_bot/arr/episode.py,sha256=j25ljy9hyTXFAEBeUQ4iozKP2YXpZyzauphaXa2oqh8,1057
9
9
  wi1_bot/arr/movie.py,sha256=9cpJZcoW3r4op6X8Fkr4Cv0BsiWfqKD8MkBfEpTcT8k,741
10
- wi1_bot/arr/radarr.py,sha256=I8_SyUlbD-bSM-71adsZOoc_-yFdsC_SGXpJvZ5IrbM,5743
10
+ wi1_bot/arr/radarr.py,sha256=sZ2zVhSDir3T3THW2vvIgWPdsvoEsYZLualeY8UCIr4,5711
11
11
  wi1_bot/arr/sonarr.py,sha256=OouuorRHBMFAOy5oDeJZ5H6WZ-95-N01EHtpOTVMTCo,5970
12
12
  wi1_bot/discord/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  wi1_bot/discord/bot.py,sha256=puBlprcGqoC-m98DDZuM7Q7zhfTHSsqJIw2ptNrE4_M,5080
@@ -22,10 +22,10 @@ wi1_bot/scripts/start.py,sha256=vNa_iHkx10D5YWonyRW0f5nG8uE3_JtwJ-XZ-c0hWCs,2477
22
22
  wi1_bot/scripts/transcode_item.py,sha256=21MeeIZ9wIRhAY-FOEgOdPsg6YOLlSUj59r8NkTfixw,1155
23
23
  wi1_bot/transcoder/__init__.py,sha256=B4xr82UtIFc3tyy_MEZdZKMukYW0yejPnfsGowaTIM0,105
24
24
  wi1_bot/transcoder/transcode_queue.py,sha256=W7r2I7OD8QuxseCEb7_ddOvYXiBBLmKLvCs2IgJJ92I,1856
25
- wi1_bot/transcoder/transcoder.py,sha256=uAIFDDmwGx983Nhp-vwL6TjOJJWIt0PiDnnOucrjrFI,9208
26
- wi1_bot-1.4.8.dist-info/LICENSE,sha256=6V4_mQoPoLJl77_WMsQRQMDG2mnIhDUdfCmMkqM9Qwc,1072
27
- wi1_bot-1.4.8.dist-info/METADATA,sha256=QpokO1YkwzdZQ4a7yGs1R3AI05IAu4uJmU0VfZ30HXw,4530
28
- wi1_bot-1.4.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
- wi1_bot-1.4.8.dist-info/entry_points.txt,sha256=pF5EawAQsUNMHs5exynpNdRq9g4dODg-RaPkx2MyYLU,184
30
- wi1_bot-1.4.8.dist-info/top_level.txt,sha256=Q7mTnPLk80Td82YbjlBMO5tvXJoTFHhheHdmwc-c-7I,8
31
- wi1_bot-1.4.8.dist-info/RECORD,,
25
+ wi1_bot/transcoder/transcoder.py,sha256=h1If_1FZz7aVvhpZ7G5tLwR88BojrO1EUuDy3lDdVb0,9409
26
+ wi1_bot-1.4.10.dist-info/LICENSE,sha256=6V4_mQoPoLJl77_WMsQRQMDG2mnIhDUdfCmMkqM9Qwc,1072
27
+ wi1_bot-1.4.10.dist-info/METADATA,sha256=wVcpUomwJ605vkSs5gUKWddBkIWwI7RbfKG2JNWZd5k,4831
28
+ wi1_bot-1.4.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
+ wi1_bot-1.4.10.dist-info/entry_points.txt,sha256=pF5EawAQsUNMHs5exynpNdRq9g4dODg-RaPkx2MyYLU,184
30
+ wi1_bot-1.4.10.dist-info/top_level.txt,sha256=Q7mTnPLk80Td82YbjlBMO5tvXJoTFHhheHdmwc-c-7I,8
31
+ wi1_bot-1.4.10.dist-info/RECORD,,