Opened 8 years ago

Closed 7 years ago

#52232 closed enhancement (fixed)

youtube-dl should use ${prefix}/etc for its global config file

Reported by: RJVB (René Bertin) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: youtube-dl

Description

Currently youtube-dl tries to find a global config file via the XDG_CONFIG_DIR env. variable, falling back to the user's HOME if that variable isn't set. There may be another fallback to /etc if one has to believe the README.

Either way, the code should check /etc/local/etc first, IMO.

A youtube-dl.conf file could be installed that sets the preferred downloader to ffmpeg instead of the default avconv (which MacPorts doesn't provide but which *might* be on the user's path).

Change History (3)

comment:1 in reply to:  description Changed 8 years ago by RJVB (René Bertin)

Replying to rjvbertin@…:

There may be another fallback to /etc if one has to believe the README.

There is: the path is hardcoded at line options.py:834 .

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:3 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

In 7d99b8745ac13ccf48ea24d987f28a970b01d7a4/macports-ports:

youtube-dl: adjust to use ${prefix}/etc/youtube-dl.conf

closes #52232

Note: See TracTickets for help on using tickets.