Skip to content

Commit

Permalink
Merge pull request #651 from deuteronomy-works/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
amoh-godwin authored Apr 28, 2023
2 parents 241af60 + 86b3b0b commit 4b10045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pyffmpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -260,7 +261,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}")
Expand Down
4 changes: 2 additions & 2 deletions test_pseudo_ffprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b10045

Please sign in to comment.