pystardust / pystardust/ani-cli

feat: --exact flag to only match if exact full string is found (for wrapper scripts)

Open
#1,851 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue priority 4: wishlist type: feature request
Dominant language
Shell
Stars
13.8k
Forks
878
Avg merge
4d 18h
Merged PRs (30d)
7

Description

Is your feature request related to a problem? Please describe.
This is related to my problem for #1850. I used a wrapper script which calls ani-cli to play a specific episode from a specific show, but since only one result appeared for the show I searched and it was the wrong show, it was auto selected and started playing without any warning that it wasn't an exact match.

Describe the solution you'd like
For scripting it would be nice to have some flag to force an exact match against the titles of the search results (--exact or --exact-match).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating ani-cli's command-line option parsing and the code that matches or auto-selects search results. Trace how wrapper-script arguments reach title matching, then verify that --exact only accepts a full-string title match and does not automatically select a different result.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.