Skip to content

Commit

Permalink
Update media_items.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 21, 2024
1 parent 801eee9 commit 24a1449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music_assistant/common/models/media_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def quality(self) -> int:
# lossy content, bit_rate is most important score
# but prefer some codecs over others
# calculate a rough score based on bit rate per channel
bit_rate = self.bit_rate or 320
bit_rate_score = (bit_rate / self.channels) / 100
if self.content_type in (ContentType.AAC, ContentType.OGG):
bit_rate_score += 1
Expand Down

0 comments on commit 24a1449

Please sign in to comment.