Skip to content

Commit

Permalink
🛠️ Correct FFmpeg path is being used. Fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Jun 6, 2024
1 parent c4435b5 commit c7e7960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tidal_dl_ng/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ def items(

def _video_convert(self, path_file: str) -> str:
path_file_out = path_file + AudioExtensions.MP4
result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy", loglevel="quiet").run()
result, _ = (
ffmpeg.input(path_file)
.output(path_file_out, map=0, c="copy", loglevel="quiet")
.run(cmd=self.settings.data.path_binary_ffmpeg)
)

return path_file_out

Expand All @@ -482,7 +486,7 @@ def _extract_flac(self, path_media_src: str) -> str:
.output(
path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g", loglevel="quiet"
)
.run()
.run(cmd=self.settings.data.path_binary_ffmpeg)
)

return path_media_out
Expand Down

0 comments on commit c7e7960

Please sign in to comment.