Skip to content

Commit

Permalink
搜索封面和歌词的默认关键词改为 艺术家 专辑名 歌曲名
Browse files Browse the repository at this point in the history
  • Loading branch information
MCredbear committed Dec 20, 2024
1 parent 488ef71 commit c355038
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/editor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ class EditorPageState extends State<EditorPage> {
context,
MaterialPageRoute(
builder: (context) => CoverSearchPage(
_titleController.text.isNotEmpty
? _titleController.text
(_artistController.text.isNotEmpty &&
_albumController
.text.isNotEmpty &&
_titleController
.text.isNotEmpty)
? '${_artistController.text} ${_albumController.text} ${_titleController.text}'
: basenameWithoutExtension(
widget.path))));
if (data != null) {
Expand Down Expand Up @@ -264,8 +268,10 @@ class EditorPageState extends State<EditorPage> {
context,
MaterialPageRoute(
builder: (context) => LyricSearchPage(
_titleController.text.isNotEmpty
? _titleController.text
(_artistController.text.isNotEmpty &&
_albumController.text.isNotEmpty &&
_titleController.text.isNotEmpty)
? '${_artistController.text} ${_albumController.text} ${_titleController.text}'
: basenameWithoutExtension(
widget.path))));
if (data != null) {
Expand Down

0 comments on commit c355038

Please sign in to comment.