#58803 closed defect (invalid)

(mpv,youtube-dl@10.6.8) [ytdl_hook] youtube-dl failed: not found or not enough permissions

Reported by: mrkapqa Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: youtube-dl

Description

Hello ,

i am using an older xpi.plugin for firefox (external mpv handler) to playback video on youtube.

on snow leopard with mpv the playback does function, but when trying to use this add-on it would complain of not finding youtube-dl or not having enough permission

08/08/19 14.48.03	[0x0-0x23023].org.mozilla.firefox	Playing: https://www.youtube.com/watch?v=3jb6XnLzTEA
08/08/19 14.52.56	[0x0-0x45045].org.mozilla.firefox	[ytdl_hook] youtube-dl failed: not found or not enough permissions 

i presume that the youtube-dl is not actual enough or maybe there is another problem?

thank you

Change History (10)

comment:1 Changed 15 months ago by mrkapqa

The following ports are currently installed:
  youtube-dl @2019.01.30.1_0+ffmpeg+python37 (active)
Last edited 15 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 15 months ago by kencu (Ken)

It's likely that /opt/local/bin is not on the search path for this app. Throw a symlink into /usr/local/bin or similar and try again to check. If that's it, then you can work on a way (maybe) to help the app find it without the symlink.

comment:3 Changed 15 months ago by mf2k (Frank Schima)

Keywords: mpv youtube-dl removed
Milestone: MacPorts 2.6.0

The Milestone field is for use by Macports team members only, please do not set it.

comment:4 Changed 15 months ago by mf2k (Frank Schima)

In the future, please add the port maintainer(s) to Cc (port info --maintainers youtube-dl), if any.

comment:5 Changed 15 months ago by mf2k (Frank Schima)

Owner: set to ryandesign
Status: newassigned

comment:6 Changed 15 months ago by mrkapqa

thanks,

the path is set to /opt/local/bin/mpv

comment:7 Changed 15 months ago by mrkapqa

08/08/19 15.04.26	[0x0-0x45045].org.mozilla.firefox	Playing: https://www.youtube.com/watch?v=GoXwIVyNvX0
08/08/19 15.04.27	[0x0-0x45045].org.mozilla.firefox	[ytdl_hook] youtube-dl failed: not found or not enough permissions 
08/08/19 15.04.27	[0x0-0x45045].org.mozilla.firefox	Failed to recognize file format.
08/08/19 15.04.27	[0x0-0x45045].org.mozilla.firefox	Exiting... (Errors when loading file)

comment:8 Changed 15 months ago by ryandesign (Ryan Schmidt)

...within the mpv program, there must be some place where you can specify a search path. That search path needs to include the place where youtube-dl is, namely /opt/local/bin. If you can't specify it, then mpv must be hardcoding it internally. Ken's suggestion to put a symlink of youtube-dl into /usr/local/bin/ is a good one, since that's a pretty standard location where another program might look. Let us know if that works.

Or maybe you can tell mpv the absolute path to youtube-dl (/opt/local/bin/youtube-dl).

You should also update your youtube-dl since it's months out of date; presumably your other ports are outdated too. sudo port upgrade outdated.

comment:9 Changed 15 months ago by kencu (Ken)

the search path, and anything else you set in your .profile, only applies to the Terminal.app and programs you run inside it.

comment:10 Changed 12 months ago by ryandesign (Ryan Schmidt)

Resolution: invalid
Status: assignedclosed

I'm closing this because it doesn't sound like this is a bug in the youtube-dl port, or that it relates to any port, but is rather a matter of user configuration.

Note: See TracTickets for help on using tickets.