Alltube\Config::__construct PHP Method

__construct() public method

Available options: * youtubedl: youtube-dl binary path * python: Python binary path * avconv: avconv or ffmpeg binary path * rtmpdump: rtmpdump binary path * curl: curl binary path * params: Array of youtube-dl parameters * curl_params: Array of curl parameters * convert: Enable conversion?
public __construct ( array $options )
$options array Options
    public function __construct(array $options)
    {
        if (isset($options) && is_array($options)) {
            foreach ($options as $option => $value) {
                if (isset($this->{$option}) && isset($value)) {
                    $this->{$option} = $value;
                }
            }
        }
        if (getenv('CONVERT')) {
            $this->convert = (bool) getenv('CONVERT');
        }
    }