wi1-bot 1.4.6__tar.gz → 1.4.8__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.6 → wi1-bot-1.4.8}/PKG-INFO +1 -1
  2. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/_version.py +2 -2
  3. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/radarr.py +2 -2
  4. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/transcoder/transcoder.py +12 -1
  5. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot.egg-info/PKG-INFO +1 -1
  6. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.dockerignore +0 -0
  7. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.github/workflows/pypi-publish.yml +0 -0
  8. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.gitignore +0 -0
  9. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.pre-commit-config.yaml +0 -0
  10. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.vscode/launch.json +0 -0
  11. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/.vscode/settings.json +0 -0
  12. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/Dockerfile +0 -0
  13. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/LICENSE +0 -0
  14. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/README.md +0 -0
  15. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/compose.yaml +0 -0
  16. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/config.yaml.template +0 -0
  17. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/pyproject.toml +0 -0
  18. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/setup.cfg +0 -0
  19. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/tests/movie_downloaded.py +0 -0
  20. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/__init__.py +0 -0
  21. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/__init__.py +0 -0
  22. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/download.py +0 -0
  23. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/episode.py +0 -0
  24. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/movie.py +0 -0
  25. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/arr/sonarr.py +0 -0
  26. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/config.py +0 -0
  27. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/__init__.py +0 -0
  28. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/bot.py +0 -0
  29. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/cogs/__init__.py +0 -0
  30. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/cogs/movie.py +0 -0
  31. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/cogs/series.py +0 -0
  32. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/discord/helpers.py +0 -0
  33. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/push.py +0 -0
  34. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/scripts/__init__.py +0 -0
  35. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/scripts/add_tag.py +0 -0
  36. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/scripts/rescan.py +0 -0
  37. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/scripts/start.py +0 -0
  38. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/scripts/transcode_item.py +0 -0
  39. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/transcoder/__init__.py +0 -0
  40. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/transcoder/transcode_queue.py +0 -0
  41. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot/webhook.py +0 -0
  42. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot.egg-info/SOURCES.txt +0 -0
  43. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot.egg-info/dependency_links.txt +0 -0
  44. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot.egg-info/entry_points.txt +0 -0
  45. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/wi1_bot.egg-info/requires.txt +0 -0
  46. {wi1-bot-1.4.6 → wi1-bot-1.4.8}/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.6
3
+ Version: 1.4.8
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.6'
16
- __version_tuple__ = version_tuple = (1, 4, 6)
15
+ __version__ = version = '1.4.8'
16
+ __version_tuple__ = version_tuple = (1, 4, 8)
@@ -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,7 +104,12 @@ class Transcoder:
104
104
  status = proc.wait()
105
105
 
106
106
  if status != 0:
107
- transcode_to.unlink()
107
+ try:
108
+ transcode_to.unlink(missing_ok=True)
109
+ except Exception:
110
+ self.logger.warning(
111
+ f"failed to delete transcoded file: {transcode_to}"
112
+ )
108
113
 
109
114
  if "Error opening input files" in last_output:
110
115
  self.logger.info(
@@ -112,6 +117,12 @@ class Transcoder:
112
117
  )
113
118
  return True
114
119
 
120
+ if "File name too long" in last_output:
121
+ self.logger.info(
122
+ f"file name is too long: {path}, skipping transcoding"
123
+ )
124
+ return True
125
+
115
126
  if "received signal 15" in last_output:
116
127
  self.logger.info(
117
128
  f"transcoding interrupted by signal: {path}, will retry"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wi1-bot
3
- Version: 1.4.6
3
+ Version: 1.4.8
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