support setting location of config-file via environment-variable #26715

Open
opened 2026-02-21 14:27:06 -05:00 by deekerman · 1 comment
Owner

Originally created by @woutervh on GitHub (Oct 18, 2023).

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've searched the bugtracker for similar feature requests including closed ones

Description

I install youtube-dl in a virtualenv with a local config-file.

I can use the cli-option to use that cfg-file

youtube-dl  --config-location <location>

it would be nice to be able to set an environment variable just once

export  YOUTUBE_DL_CFG_FILE=<location>
Originally created by @woutervh on GitHub (Oct 18, 2023). ## Checklist - [x] I'm reporting a feature request - [x] I've verified that I'm running youtube-dl version **2021.12.17** - [x] I've searched the bugtracker for similar feature requests including closed ones ## Description I install youtube-dl in a virtualenv with a local config-file. I can use the cli-option to use that cfg-file ``` youtube-dl --config-location <location> ``` it would be nice to be able to set an environment variable just once ``` export YOUTUBE_DL_CFG_FILE=<location> ```
Author
Owner

@dirkf commented on GitHub (Oct 18, 2023):

export YOUTUBE_DL="youtube-dl --config-location <location>" ?

@dirkf commented on GitHub (Oct 18, 2023): `export YOUTUBE_DL="youtube-dl --config-location <location>"` ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#26715
No description provided.