Skip to content

Commit

Permalink
Fixed Cover Format not being read
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeJoeTV committed May 12, 2021
1 parent 23725e7 commit ed990b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert-music-library.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python3
# coding: utf8

# Music Library Converter
Expand Down Expand Up @@ -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 = ""

Expand Down

0 comments on commit ed990b9

Please sign in to comment.