netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.68k stars 556 forks source link

youtube-dl: cannot use AtomicParsley metadata downloader #5647

Open mYnDstrEAm opened 1 year ago

mYnDstrEAm commented 1 year ago

Description

See https://github.com/ytdl-org/youtube-dl/issues/30922

When I use a command like this firejail youtube-dl --extract-audio --embed-thumbnail --audio-format best -i -o '/path/%(title)s.%(ext)s' https://www.youtube.com/watch?v=GhJNXlMsPG4 I get the error ERROR: AtomicParsley was not found. Please install but only when using firejail.

AtomicParsley is installed and located in /usr/bin

echo "noblacklist /usr/bin/AtomicParsley" >> ~/.config/firejail/youtube-dl.local did not solve this

Steps to Reproduce

  1. Run the above command to embed a picture into the track data
  2. See console output

Expected behavior

All youtube-dl functionalities should work properly with the firejail profile

Actual behavior

Metadata embedding doesn't work with firejail

Behavior without a profile

Additional context

Environment

Checklist

Log

rusty-snake commented 1 year ago

echo "noblacklist /usr/bin" >> ~/.config/firejail/youtube-dl.local did not solve this

If /usr/bin would be blacklisted, how could you execute youtube-dl?

rusty-snake commented 1 year ago

Does firejail --private-bin=atomicparsley /usr/bin/youtube-dl work?

mYnDstrEAm commented 1 year ago

It's in ~/.local/bin/youtube-dl according to which youtube-dl (recently reinstalled it with pip).

No, it says Error: no suitable /usr/bin/youtube-dl executable found.