Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audible decrypt skip-rebuild-chapters missing input file in base_cmd #207

Open
CoolJoe72 opened this issue May 28, 2024 · 1 comment · May be fixed by #213
Open

audible decrypt skip-rebuild-chapters missing input file in base_cmd #207

CoolJoe72 opened this issue May 28, 2024 · 1 comment · May be fixed by #213

Comments

@CoolJoe72
Copy link

So it looks like it skips the part where it's supposed to add the input file.

subprocess.CalledProcessError: Command '['ffmpeg', '-v', 'quiet', '-stats', '-activation_bytes', '########', '-c', 'copy', '/dir/to/saved/file.m4b']' returned non-zero exit status 1.

I'm sure there is a better way to do this (I know just enough programing to be dangerous) but I made a patch file skip_rebuild.patch which should highlight the issue location.

After making the change everything seems to work.

@CoolJoe72 CoolJoe72 changed the title audible decrypt skip-rebuild-chapters missing input file audible decrypt skip-rebuild-chapters missing input file in base_cmd May 28, 2024
@CoolJoe72
Copy link
Author

Sorry didn't realize it would make you download the patch without viewing it. Here is what is in the patch file above or if you prefer just copy it from here.

diff --git a/plugin_cmds/cmd_decrypt.py b/plugin_cmds/cmd_decrypt.py
index 8a09304..489055b 100644
--- a/plugin_cmds/cmd_decrypt.py
+++ b/plugin_cmds/cmd_decrypt.py
@@ -495,6 +495,12 @@ class FfmpegFileDecrypter:
             except ChapterError:
                 if self._skip_rebuild_chapters:
                     echo("Skip rebuild chapters due to chapter mismatch.")
+                    base_cmd.extend(
+                        [
+                            "-i",
+                            str(self._source),
+                        ]
+                    )
                 else:
                     raise
             else:

@CoolJoe72 CoolJoe72 linked a pull request Oct 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant