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.
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/PKG-INFO +1 -1
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/_version.py +2 -2
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/transcoder/transcoder.py +17 -3
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/PKG-INFO +1 -1
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.dockerignore +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.github/workflows/pypi-publish.yml +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.gitignore +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.pre-commit-config.yaml +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.vscode/launch.json +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/.vscode/settings.json +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/Dockerfile +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/LICENSE +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/README.md +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/compose.yaml +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/config.yaml.template +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/pyproject.toml +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/setup.cfg +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/tests/movie_downloaded.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/download.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/episode.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/movie.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/radarr.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/arr/sonarr.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/config.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/bot.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/cogs/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/cogs/movie.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/cogs/series.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/discord/helpers.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/push.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/scripts/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/scripts/add_tag.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/scripts/rescan.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/scripts/start.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/scripts/transcode_item.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/transcoder/__init__.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/transcoder/transcode_queue.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot/webhook.py +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/SOURCES.txt +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/dependency_links.txt +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/entry_points.txt +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/requires.txt +0 -0
- {wi1-bot-1.4.7 → wi1-bot-1.4.9}/wi1_bot.egg-info/top_level.txt +0 -0
@@ -104,14 +104,28 @@ class Transcoder:
|
|
104
104
|
status = proc.wait()
|
105
105
|
|
106
106
|
if status != 0:
|
107
|
-
|
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
|
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
|
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
|
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
|