From 258d57f40a86a0bb786d609026f31ea4dd7481a1 Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Fri, 28 Apr 2023 10:24:19 +0000 Subject: [PATCH 1/3] logs --- pyffmpeg/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index 968aecd..cfbea41 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -260,7 +260,10 @@ def options(self, opts): _ffmpeg_file = '"' + self._ffmpeg_file + '"' else: _ffmpeg_file = self._ffmpeg_file + + self.logger.info(f'Using {_ffmpeg_file} as ffmpeg file') options = " ".join([_ffmpeg_file, options]) + self.logger.inof(f"Options is: {options} as at now") if self.enable_log: self.logger.info(f"Shell: {SHELL}") From bb7d4015355ab1fd61842995a72f6ff1ec5c857a Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Fri, 28 Apr 2023 10:31:39 +0000 Subject: [PATCH 2/3] Update test_pseudo_ffprobe.py --- test_pseudo_ffprobe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_pseudo_ffprobe.py b/test_pseudo_ffprobe.py index 90d59c0..6468895 100644 --- a/test_pseudo_ffprobe.py +++ b/test_pseudo_ffprobe.py @@ -19,8 +19,8 @@ 'file_name,duration', [ ("countdown.mp4", "00:00:04.37"), - ("Easy_Lemon_30_Second_-_Kevin_MacLeod.mp3", "00:00:31.29"), - ("Ecossaise in E-flat - Kevin MacLeod.mp3", "00:00:30.96") + ('"Ea-sy_Lemon_30_Second_-_Kevin_MacLeod.mp3"', "00:00:31.29"), + ('"Ecossaise in E-flat - Kevin MacLeod.mp3"', "00:00:30.96") ]) def test_probe(file_name, duration): test_file = os.path.join(TEST_FOLDER, file_name) From c17b39e63ca9694901278d3de5dde4de35fb150c Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Fri, 28 Apr 2023 10:33:00 +0000 Subject: [PATCH 3/3] just checking --- pyffmpeg/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index cfbea41..8541899 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -59,6 +59,7 @@ def __init__(self, directory=".", enable_log: bool=True): self.save_dir = directory if self.enable_log: self.logger.info(f"Save directory: {self.save_dir}") + self.logger.info("Checking GitHub Activeness: True") self.overwrite = True self.create_folders = True self.loglevels = (