Skip to content

Add perfect match selection to anilist_app.go - #3

Merged
aQaTL merged 2 commits into
aQaTL:masterfrom
ryukinix:perfect-match
Jun 7, 2020
Merged

aQaTL merged 2 commits into
aQaTL:masterfrom
ryukinix:perfect-match

Conversation

@ryukinix

@ryukinix ryukinix commented Jun 7, 2020

Copy link
Copy Markdown
Contributor

Description

If there is a perfect match on Romaji title, select the entry instead of showing multiple selections.

Motivation: I was trying making a automation scripts and the GUI was opening even in cases when I pass the exact title of the anime.

Old Behavior

command: mal select uchuu kyoudai

image

New Behavior

command: mal select uchuu kyoudai

image

@aQaTL

aQaTL commented Jun 7, 2020

Copy link
Copy Markdown
Owner

I think entry.Title.UserPreferred would be a better option for perfect matching here. Will that break anything for you?

@ryukinix

ryukinix commented Jun 7, 2020

Copy link
Copy Markdown
Contributor Author

I think entry.Title.UserPreferred would be a better option for perfect matching here. Will that break anything for you?

Actually works the same way as I expect :D. I think is a better option too, updated.

@aQaTL
aQaTL merged commit b18d11f into aQaTL:master Jun 7, 2020
@aQaTL

aQaTL commented Jun 7, 2020

Copy link
Copy Markdown
Owner

Thanks a lot. Merged.

@ryukinix
ryukinix deleted the perfect-match branch June 7, 2020 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址