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