Skip to content

Commit ed990b9

Browse files
committed
Fixed Cover Format not being read
1 parent 23725e7 commit ed990b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

convert-music-library.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/python3
22
# coding: utf8
33

44
# Music Library Converter
@@ -174,7 +174,7 @@ def getLogFileName(basename, logdir=os.getcwd()):
174174

175175
def getAudioFileCoverFormat(audio_file):
176176
if os.path.exists(audio_file) and os.path.isfile(audio_file):
177-
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)
177+
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)
178178
in_stream_section = False
179179
codec_name = ""
180180

0 commit comments

Comments
 (0)