Skip to content

Commit

Permalink
update Audio's audio_quality assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
un4gt committed May 22, 2024
1 parent 93b2cbb commit 2dbfd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bilifm/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
import typer

from .util import AudioQualityEnums, audio_quality_map, get_signed_params
from .util import AudioQualityEnums, get_signed_params


class Audio:
Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(self, bvid: str, audio_quality: AudioQualityEnums) -> None:
"Referer": "https://www.bilibili.com/video/{bvid}".format(bvid=self.bvid),
}

self.audio_quality = audio_quality_map[audio_quality.value]
self.audio_quality = audio_quality.quality_id

# 获取cid和title
if len(bvid) == 12:
Expand Down

0 comments on commit 2dbfd6c

Please sign in to comment.