From ed990b9cb18a4e31253d5718fccd253283c1af6d Mon Sep 17 00:00:00 2001 From: JoeJoeTV Date: Wed, 12 May 2021 18:09:22 +0200 Subject: [PATCH] Fixed Cover Format not being read --- convert-music-library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert-music-library.py b/convert-music-library.py index 1f39c9a..cdd2553 100644 --- a/convert-music-library.py +++ b/convert-music-library.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 + #!/usr/bin/python3 # coding: utf8 # Music Library Converter @@ -174,7 +174,7 @@ def getLogFileName(basename, logdir=os.getcwd()): def getAudioFileCoverFormat(audio_file): if os.path.exists(audio_file) and os.path.isfile(audio_file): - result_probe_format = subprocess.run(["ffprobe", "-hide_banner", "-loglevel", "quiet", "-select_streams", "v:0", "-show_entries", "stream=codec_name", audio_file], capture_output=True, text=False) + result_probe_format = subprocess.run(["ffprobe", "-hide_banner", "-loglevel", "quiet", "-select_streams", "v:0", "-show_entries", "stream=codec_name", audio_file], capture_output=True, text=True) in_stream_section = False codec_name = ""