Skip to content

Commit 9c35e63

Browse files
committed
Fix AudioFile selection
1 parent 689e617 commit 9c35e63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librespot/audio/decoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, preferred: AudioQuality):
5151
@staticmethod
5252
def get_vorbis_file(files: typing.List[Metadata.AudioFile]):
5353
for file in files:
54-
if hasattr(file, "format") and SuperAudioFormat.get(
54+
if file.HasField("format") and SuperAudioFormat.get(
5555
file.format) == SuperAudioFormat.VORBIS:
5656
return file
5757
return None

0 commit comments

Comments
 (0)