wi1-bot 1.4.5__tar.gz → 1.4.7__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 (46) hide show
  1. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/PKG-INFO +1 -1
  2. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/_version.py +2 -2
  3. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/radarr.py +2 -2
  4. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/transcoder/transcoder.py +3 -2
  5. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot.egg-info/PKG-INFO +1 -1
  6. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.dockerignore +0 -0
  7. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.github/workflows/pypi-publish.yml +0 -0
  8. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.gitignore +0 -0
  9. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.pre-commit-config.yaml +0 -0
  10. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.vscode/launch.json +0 -0
  11. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/.vscode/settings.json +0 -0
  12. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/Dockerfile +0 -0
  13. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/LICENSE +0 -0
  14. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/README.md +0 -0
  15. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/compose.yaml +0 -0
  16. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/config.yaml.template +0 -0
  17. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/pyproject.toml +0 -0
  18. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/setup.cfg +0 -0
  19. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/tests/movie_downloaded.py +0 -0
  20. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/__init__.py +0 -0
  21. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/__init__.py +0 -0
  22. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/download.py +0 -0
  23. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/episode.py +0 -0
  24. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/movie.py +0 -0
  25. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/arr/sonarr.py +0 -0
  26. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/config.py +0 -0
  27. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/__init__.py +0 -0
  28. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/bot.py +0 -0
  29. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/cogs/__init__.py +0 -0
  30. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/cogs/movie.py +0 -0
  31. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/cogs/series.py +0 -0
  32. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/discord/helpers.py +0 -0
  33. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/push.py +0 -0
  34. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/scripts/__init__.py +0 -0
  35. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/scripts/add_tag.py +0 -0
  36. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/scripts/rescan.py +0 -0
  37. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/scripts/start.py +0 -0
  38. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/scripts/transcode_item.py +0 -0
  39. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/transcoder/__init__.py +0 -0
  40. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/transcoder/transcode_queue.py +0 -0
  41. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot/webhook.py +0 -0
  42. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot.egg-info/SOURCES.txt +0 -0
  43. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot.egg-info/dependency_links.txt +0 -0
  44. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot.egg-info/entry_points.txt +0 -0
  45. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/wi1_bot.egg-info/requires.txt +0 -0
  46. {wi1-bot-1.4.5 → wi1-bot-1.4.7}/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.5
3
+ Version: 1.4.7
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>
@@ -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.5'
16
- __version_tuple__ = version_tuple = (1, 4, 5)
15
+ __version__ = version = '1.4.7'
16
+ __version_tuple__ = version_tuple = (1, 4, 7)
@@ -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)
152
+ self._radarr.post_command("RescanMovie", movieId=movie_id) # type: ignore
153
153
 
154
154
  def refresh_movie(self, movie_id: int) -> None:
155
- self._radarr.post_command("RefreshMovie", movieIds=[movie_id])
155
+ self._radarr.post_command("RefreshMovie", movieIds=[movie_id]) # type: ignore
156
156
 
157
157
  def search_missing(self) -> None:
158
158
  self._radarr.post_command(name="MissingMoviesSearch")
@@ -104,6 +104,8 @@ class Transcoder:
104
104
  status = proc.wait()
105
105
 
106
106
  if status != 0:
107
+ transcode_to.unlink(missing_ok=True)
108
+
107
109
  if "Error opening input files" in last_output:
108
110
  self.logger.info(
109
111
  f"file does not exist: {path}, skipping transcoding"
@@ -143,8 +145,6 @@ class Transcoder:
143
145
 
144
146
  return True
145
147
 
146
- new_path = path.parent / transcode_to.name
147
-
148
148
  if not path.exists():
149
149
  self.logger.debug(
150
150
  f"file doesn't exist: {item.path}, deleting transcoded file"
@@ -153,6 +153,7 @@ class Transcoder:
153
153
  transcode_to.unlink()
154
154
  return True
155
155
 
156
+ new_path = path.parent / transcode_to.name
156
157
  shutil.move(transcode_to, new_path)
157
158
  path.unlink()
158
159
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wi1-bot
3
- Version: 1.4.5
3
+ Version: 1.4.7
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>
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