Skip to content

Commit

Permalink
Fix #1433 (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1as3r authored Dec 13, 2021
1 parent 407edfe commit 5463024
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spotdl/console/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
from pathlib import Path
import signal

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

if arguments.ffmpeg:
args_dict['ffmpeg'] = str(Path(arguments.ffmpeg).absolute())
else:
args_dict['ffmpeg'] = "ffmpeg"

# Check if ffmpeg has correct version, if not exit
if (
ffmpeg.has_correct_version(
arguments.ignore_ffmpeg_version, arguments.ffmpeg or "ffmpeg"
arguments.ignore_ffmpeg_version, args_dict['ffmpeg']
)
is False
):
Expand Down

0 comments on commit 5463024

Please sign in to comment.