ocdownloader icon indicating copy to clipboard operation
ocdownloader copied to clipboard

ocdownloader can't find youtube-dl executable

Open zepp133 opened this issue 7 years ago • 3 comments

I have installed youtube-dl via the package manager of Arch Linux which results in youtube-dl's binary being installed to /usr/bin/youtube-dl.

$ which youtube-dl
/usr/bin/youtube-dl

$ stat /usr/bin/youtube-dl
  File: /usr/bin/youtube-dl
  Size: 408       	Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 833         Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-02-18 13:15:30.546328664 +0100
Modify: 2018-02-12 23:02:32.616259268 +0100
Change: 2018-02-18 12:52:52.355353778 +0100
 Birth: -

Unfortunately, when I try to set the above path in ocdownloader's settings area, I get "Can't find youtube-dl binary". What am I missing?

screen

zepp133 avatar Feb 18 '18 12:02 zepp133

Which database are you using? Can you check if you run into the same problem as described here: https://github.com/e-alfred/ocdownloader/issues/65

e-alfred avatar Feb 19 '18 12:02 e-alfred

I'm using Postgres. There was only one YTDLBinary in oc_ocdownloader_adminsettings but it's value was NULL. I set it to /usr/bin/youtube-dl and now ocdownloader can find the binary.

zepp133 avatar Feb 20 '18 14:02 zepp133

This will probably be solved by https://github.com/e-alfred/ocdownloader/issues/73. Rework will take some time probably, but if you want to help out pull requests are always welcome.

e-alfred avatar Apr 05 '18 11:04 e-alfred