Skip to content

Commit

Permalink
Use correct path when measuring loudness, and fix variable typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
petterreinholdtsen committed Jan 18, 2019
1 parent faa4771 commit dcb37a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/move_and_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ def register_videofiles(id, folder, videofiles=None):
'filename': filepath,
'format': VF_FORMATS[file_folder],
}
loudness = get_loudness(filepath)
loudness = get_loudness(os.path.join(folder, "..", filepath))
# Handle images, which do not have loudness
if loudness:
data.update(loundness)
data.update(loudness)
create_videofile(id, data)
videofiles.add(filepath)
return videofiles
Expand Down

0 comments on commit dcb37a0

Please sign in to comment.