Skip to content

Commit

Permalink
feat(main): version 0.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhang committed Jul 17, 2022
1 parent 4cdc907 commit 4d444b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from app.music.netease.search import fetch_music_source_by_name, search_music_by_keyword
from app.music.netease.playlist import fetch_music_list_by_id
from app.music.netease.radio import fetch_radio_by_id
from app.music.bilibili.search import bvid_to_music_by_bproxy
from app.music.bilibili.search import bvid_to_music_by_bproxy, bvid_to_music_by_local_bproxy
from app.music.osu.search import osearch_music_by_keyword
from app.music.qqmusic.search import qsearch_music_by_keyword
from app.music.migu.search import msearch_music_by_keyword
Expand All @@ -23,7 +23,7 @@
import app.CardStorage as CS


__version__ = "0.7.0"
__version__ = "0.7.1"

# logger
if settings.file_logger:
Expand Down Expand Up @@ -193,7 +193,10 @@ async def play_audio_from_bilibili_video(msg: Message, bilibili_url: str=""):
BVid = matched_obj.group()
else:
raise Exception("输入格式有误。\n正确格式为: /bilibili {bilibili_url} 或 /bv {bilibili_url}")
result = await bvid_to_music_by_bproxy(BVid=BVid)
if settings.local_bproxy:
result = await bvid_to_music_by_local_bproxy(BVid=BVid)
else:
result = await bvid_to_music_by_bproxy(BVid=BVid)
if result:
await msg.channel.send(f"已将 {result.name}-{result.author} 添加到播放列表")
settings.playqueue.append(result)
Expand Down

0 comments on commit 4d444b1

Please sign in to comment.