Skip to content

Commit

Permalink
Fix: Error in decoding exiftool outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter6Q committed Apr 28, 2024
1 parent cfcc5d6 commit 354a1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename_file_by_time_info/media_file/media_file_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_exiftool_output(file_path: str) -> dict[str, Any]:
if command_output is None:
return {}
try:
return json.loads(command_output.decode("UTF-8"))[0]
return json.loads(command_output)[0]
except:
return {}

Expand Down

0 comments on commit 354a1b0

Please sign in to comment.