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

Error when using --exec or --exec-before-download #168

Open
lolocomotive opened this issue Jul 18, 2022 · 1 comment
Open

Error when using --exec or --exec-before-download #168

lolocomotive opened this issue Jul 18, 2022 · 1 comment

Comments

@lolocomotive
Copy link

When I try to use either of those options I'm getting

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

Is there a way to force it to use /usr/bin/sh instead of /data/data/com.termux/files/usr/bin/sh

The code

val request = YoutubeDLRequest(url)

/* Other options are added there */

request.addOption(
    "--exec-before-download",
    "" /* ffmpeg command to crop thumbnail to a square */
)
val response = YoutubeDL.getInstance().execute(request,  /* ... */})
@JunkFood02
Copy link
Collaborator

The path here is used for GNU/Linux, whose shell could be called from the Python code. But it seems that we can only achieve this in Java code in Android.

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

No branches or pull requests

2 participants