mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-10 23:11:47 +08:00
更新 ask_user_choice.py
This commit is contained in:
@@ -106,7 +106,7 @@ class AskUserChoiceTool(MoviePilotTool):
|
|||||||
):
|
):
|
||||||
return f"当前渠道 {channel.value} 不支持按钮选择"
|
return f"当前渠道 {channel.value} 不支持按钮选择"
|
||||||
|
|
||||||
max_per_row = ChannelCapabilityManager.get_max_buttons_per_row(channel)
|
max_per_row = min(ChannelCapabilityManager.get_max_buttons_per_row(channel), 2)
|
||||||
max_rows = ChannelCapabilityManager.get_max_button_rows(channel)
|
max_rows = ChannelCapabilityManager.get_max_button_rows(channel)
|
||||||
max_text_length = ChannelCapabilityManager.get_max_button_text_length(channel)
|
max_text_length = ChannelCapabilityManager.get_max_button_text_length(channel)
|
||||||
max_options = max_per_row * max_rows
|
max_options = max_per_row * max_rows
|
||||||
|
|||||||
Reference in New Issue
Block a user