[GH-ISSUE #97] [BUG] AudioFile AttributeError #12

Closed
opened 2026-02-27 08:11:25 +03:00 by kerem · 1 comment
Owner

Originally created by @Puyodead1 on GitHub (Dec 4, 2021).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/97

latest commit seems to have an issue with https://github.com/kokarare1212/librespot-python/blob/rewrite/librespot/audio/decoders.py#L21 where it should be AAC_24_NORM.

    if hasattr(file, "format") and AudioQuality.get_quality(
  File "AppData\Local\Programs\Python\Python310\lib\site-packages\librespot\audio\decoders.py", line 21, in get_quality
    audio_format == AudioFile.AAC_24_NORMAL,
AttributeError: type object 'AudioFile' has no attribute 'AAC_24_NORMAL'
Originally created by @Puyodead1 on GitHub (Dec 4, 2021). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/97 latest commit seems to have an issue with https://github.com/kokarare1212/librespot-python/blob/rewrite/librespot/audio/decoders.py#L21 where it should be AAC_24_NORM. ``` if hasattr(file, "format") and AudioQuality.get_quality( File "AppData\Local\Programs\Python\Python310\lib\site-packages\librespot\audio\decoders.py", line 21, in get_quality audio_format == AudioFile.AAC_24_NORMAL, AttributeError: type object 'AudioFile' has no attribute 'AAC_24_NORMAL' ```
kerem 2026-02-27 08:11:25 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kokarare1212 commented on GitHub (Dec 4, 2021):

Thank you for your inquiry.
This has been fixed in the following commit.
e843ac6e64

<!-- gh-comment-id:985972453 --> @kokarare1212 commented on GitHub (Dec 4, 2021): Thank you for your inquiry. This has been fixed in the following commit. e843ac6e64e70de0d8ae008072b7ebb981793f9d
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#12
No description provided.