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

[Bug Report] does not support --exec post_process:rm #508

Open
igorzhilin opened this issue Jan 13, 2023 · 5 comments
Open

[Bug Report] does not support --exec post_process:rm #508

igorzhilin opened this issue Jan 13, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@igorzhilin
Copy link

Describe the bug

I download audio from youtube and split into chapters. Then I need to delete the original unsplit audio file. This is done with --exec post_process:rm. However, it does not work and gives a Termux error.

To Reproduce

custom template:

-f "ba"
--audio-format mp3
--concurrent-fragments 4
--sponsorblock-remove all
--output-na-placeholder ""
--embed-metadata
--embed-thumbnail
--extract-audio
--split-chapters
--exec post_process:rm
-o %(webpage_url_domain)s/%(uploader)s/%(playlist)s/%(title)s.%(ext)s"
-o chapter:"%(webpage_url_domain)s/%(uploader)s/%(playlist)s/%(title)s/%(section_number)03d - %(section_title)s.%(ext)s"

try with this yt video:
https://youtu.be/CAqljVOClyY

the audio will be downloaded and split, but at the post_process, it will give an error:

ERROR: [Errno 2] No such file or directory: '/data/data/com.termux/files/usr/bin/sh'

Error reports & Screenshots

ERROR: [Errno 2] No such file or directory: '/data/data/com.termux/files/usr/bin/sh'

Device info

1.7.2-(F-Droid)

Additional context

No response

@igorzhilin igorzhilin added the bug Something isn't working label Jan 13, 2023
@Marco-9456

This comment was marked as outdated.

@igorzhilin
Copy link
Author

igorzhilin commented Jan 13, 2023

Do I need to install something in my termux? Maybe that'll fix the issue.

@Marco-9456

This comment was marked as outdated.

@igorzhilin
Copy link
Author

igorzhilin commented Jan 14, 2023

Just tried the same in 1.7.3-(F-Droid).

Now, at the end of the process, I do see the notification [Exec]... rm '/storage/...' - the command is truncated in the notification and I can't be sure it's deleting the right file - but I assume so. HOWEVER, it does not progress, and the full audio file is NOT deleted.

When I stop the process by pushing the button in the notification, I get the error of @Marco-9456

@JunkFood02
Copy link
Owner

We have no shell bundled in the app thus the exec options won't work, there's nothing to do with termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants