Closed whimsical-c4lic0 closed 7 months ago
For consistency, the two other .exe paths, YTDLP_PATH
and MP4DECRYPT_PATH
, should be moved to config.json
as well.
For consistency, the two other .exe paths,
YTDLP_PATH
andMP4DECRYPT_PATH
, should be moved toconfig.json
as well.
Those aren't used in OF-DL anymore. Maybe in OF-DRM, but not OF-DL.
You are right. I had these settings as leftovers from previous versions. Refs #235.
This PR moves the FFmpeg path config from
auth.json
toconfig.json
. This should be done since the FFmpeg path is unrelated to auth, and it is the only non-auth related config inauth.json
. For backwards compatibility, the program will still allow the FFmpeg path to be set inauth.json
to prevent breaking config changes.This PR will also auto-detect the FFmpeg path (from the current directory and from the PATH environment variable) when the FFmpeg path is not set in either
config.json
orauth.json
. This will mean for the majority of users that they can leave theFFmpegPath
set to""
. Ifffmpeg.exe
exists in the same directory as the executable (like in the video tutorial) orffmpeg
exists in/usr/bin
like in many Linux installs, the default auto-detect behavior will detect FFmpeg's path.Finally, making FFmpeg path optional in
auth.json
means thatauth.json
can be created automatically using a browser extension. I created a Chrome and Firefox extension (OF-DL Auth Helper) as a fork of the extension you mentioned in the docs. OF-DL Auth Helper creates the complete OF-DLauth.json
file for you that can be copied or saved directly. The generatedauth.json
file no longer requires manual editing.