Skip to content

Commit

Permalink
changing file for file_path on folder walk
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierOramas committed Sep 14, 2020
1 parent 487b3e5 commit aec2b68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions video_diet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def folder(path: Path = typer.Argument(

if guess and 'video' in guess.mime :

videos.append(file)
videos.append(file_path)

if guess and 'audio' in guess.mime:

audios.append(file)
audios.append(file_path)

manager = enlighten.get_manager()
errors_files = []
Expand All @@ -88,6 +88,7 @@ def folder(path: Path = typer.Argument(
for audio in audios:
typer.secho(f'Processing: {audio}')
if get_codec(str(audio)) != 'hevc':

new_path = convertion_path(audio, True)

try:
Expand Down

0 comments on commit aec2b68

Please sign in to comment.