Skip to content

Commit 5463024

Browse files
authored
1 parent 407edfe commit 5463024

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spotdl/console/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
from pathlib import Path
34
import signal
45

56
from spotdl.download import ffmpeg, DownloadManager
@@ -19,10 +20,15 @@ def console_entry_point():
1920
# Convert arguments to dict
2021
args_dict = vars(arguments)
2122

23+
if arguments.ffmpeg:
24+
args_dict['ffmpeg'] = str(Path(arguments.ffmpeg).absolute())
25+
else:
26+
args_dict['ffmpeg'] = "ffmpeg"
27+
2228
# Check if ffmpeg has correct version, if not exit
2329
if (
2430
ffmpeg.has_correct_version(
25-
arguments.ignore_ffmpeg_version, arguments.ffmpeg or "ffmpeg"
31+
arguments.ignore_ffmpeg_version, args_dict['ffmpeg']
2632
)
2733
is False
2834
):

0 commit comments

Comments
 (0)