lib/youtube-dl/support.rb
# Returns a usable youtube-dl executable (system or vendor)
#
# @param exe [String] Executable to search for
# @return [String] executable path
Returns a usable youtube-dl executable (system or vendor)
Returns a usable youtube - dl executable ( system or vendor )
def usable_executable_path_for(exe)
      system_path = which(exe)
      raise Errno::ENOENT.new('cannot find youtube-dl binary') if system_path.nil?
      system_path.strip
    end
def usable_executable_path_for ( exe ) system_path = which ( exe ) raise Errno :: ENOENT . new ( 'cannot find youtube-dl binary' ) if system_path . nil? system_path . strip end
Returns a usable youtube-dl executable (system or vendor)
Returns a usable youtube - dl executable ( system or vendor )
None
String
exe
Executable to search for
Executable to search for