From c7d79b680ba6c79a605b60a7c6c5b001c1c0ccbb Mon Sep 17 00:00:00 2001 From: Sean Krueger Date: Sat, 7 Sep 2024 23:21:38 -0500 Subject: [PATCH] Use which from python stdlib --- tagstudio/src/qt/modals/ffmpeg_checker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tagstudio/src/qt/modals/ffmpeg_checker.py b/tagstudio/src/qt/modals/ffmpeg_checker.py index d1b372777..deed05ed5 100644 --- a/tagstudio/src/qt/modals/ffmpeg_checker.py +++ b/tagstudio/src/qt/modals/ffmpeg_checker.py @@ -1,10 +1,10 @@ import logging import math from pathlib import Path +from shutil import which import subprocess from PIL import Image, ImageQt -from pydub.utils import which from PySide6.QtCore import Signal, Qt, QUrl from PySide6.QtGui import QPixmap, QDesktopServices from PySide6.QtWidgets import QMessageBox @@ -36,7 +36,6 @@ def __init__(self): def installed(self): """Checks if both FFmpeg and FFprobe are installed and in the PATH.""" - # Same checker that ffmpeg-python uses if which("ffmpeg"): self.ffmpeg = True if which("ffprobe"):