Skip to content

Commit

Permalink
部分描述修复
Browse files Browse the repository at this point in the history
  • Loading branch information
31Zeta committed Jul 29, 2024
1 parent fd0bb5a commit de2ec03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions zeta_bot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
)
from zeta_bot.help import HelpMenuView

version = "0.11.0"
version = "0.11.1"
author = "炤铭Zeta (31Zeta)"
python_path = sys.executable
pycord_version = discord.__version__
Expand Down Expand Up @@ -476,7 +476,7 @@ async def leave(ctx: discord.ApplicationContext) -> None:
await leave_callback(ctx)


@bot.slash_command(name_localizations=lang.get_command_name("search_audio"), description="播放来自哔哩哔哩或Youtube的音频")
@bot.slash_command(name_localizations=lang.get_command_name("search_audio"), description="搜索并播放来自哔哩哔哩,Youtube的音频")
@option(
"query",
description="搜索的名称",
Expand All @@ -495,7 +495,7 @@ async def search_audio(ctx: discord.ApplicationContext, query, site) -> None:
await search_audio_callback(ctx, query, site)


@bot.slash_command(name_localizations=lang.get_command_name("play"), description="播放来自哔哩哔哩或Youtube的音频")
@bot.slash_command(name_localizations=lang.get_command_name("play"), description="播放来自哔哩哔哩,Youtube,网易云音乐的音频")
@option(
"link",
description="要播放的音频(视频)的链接或者哔哩哔哩BV号",
Expand Down Expand Up @@ -1278,8 +1278,8 @@ async def play_netease(ctx: discord.ApplicationContext, link, response=None) ->
await eos(ctx, response, "机器人当前处理音频过多,请稍后再试")
return
except yt_dlp.utils.DownloadError:
await eos(ctx, response, "网易云下载失败,该视频可能已失效或存在区域版权限制")
logger.rp("触发异常yt_dlp.utils.DownloadError,网易云下载失败,该视频可能已失效或存在区域版权限制", ctx.guild, is_error=True)
await eos(ctx, response, "网易云下载失败,该音乐可能已失效或存在区域版权限制")
logger.rp("触发异常yt_dlp.utils.DownloadError,网易云下载失败,该音乐可能已失效或存在区域版权限制", ctx.guild, is_error=True)
return
except yt_dlp.utils.ExtractorError:
await eos(ctx, response, "音频获取失败")
Expand Down Expand Up @@ -2555,8 +2555,8 @@ async def play_select(self, final_result):
await ec(loading_msg, "机器人当前处理音频过多,无法完成播放列表添加")
return # 终止
except yt_dlp.utils.DownloadError:
loading_msg = await ec(loading_msg, "网易云下载失败,该视频可能已失效或存在区域版权限制")
logger.rp("触发异常yt_dlp.utils.DownloadError,网易云下载失败,该视频可能已失效或存在区域版权限制", self.ctx.guild, is_error=True)
loading_msg = await ec(loading_msg, "网易云下载失败,该音乐可能已失效或存在区域版权限制")
logger.rp("触发异常yt_dlp.utils.DownloadError,网易云下载失败,该音乐可能已失效或存在区域版权限制", self.ctx.guild, is_error=True)
continue
except yt_dlp.utils.ExtractorError:
loading_msg = await ec(loading_msg, "视频获取失败")
Expand Down
2 changes: 1 addition & 1 deletion zeta_bot/netease.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def audio_download(netease_url, info_dict, download_path, download_type="netease
logger.rp(
f"下载完成\n"
f"文件名:{audio_path_title}.{audio_name_extension}\n"
f"来源:[YouTube] {audio_id}\n"
f"来源:[NetEase] {audio_id}\n"
f"路径:{download_path}\n"
f"大小:{size[0]} {size[1]}\n"
f"时长:{utils.convert_duration_to_str(audio_duration)}",
Expand Down

0 comments on commit de2ec03

Please sign in to comment.