We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407edfe commit 5463024Copy full SHA for 5463024
spotdl/console/__init__.py
@@ -1,5 +1,6 @@
1
import os
2
import sys
3
+from pathlib import Path
4
import signal
5
6
from spotdl.download import ffmpeg, DownloadManager
@@ -19,10 +20,15 @@ def console_entry_point():
19
20
# Convert arguments to dict
21
args_dict = vars(arguments)
22
23
+ if arguments.ffmpeg:
24
+ args_dict['ffmpeg'] = str(Path(arguments.ffmpeg).absolute())
25
+ else:
26
+ args_dict['ffmpeg'] = "ffmpeg"
27
+
28
# Check if ffmpeg has correct version, if not exit
29
if (
30
ffmpeg.has_correct_version(
- arguments.ignore_ffmpeg_version, arguments.ffmpeg or "ffmpeg"
31
+ arguments.ignore_ffmpeg_version, args_dict['ffmpeg']
32
)
33
is False
34
):
0 commit comments