Skip to content

fix: allanime link parsing#91

Merged
Wraient merged 1 commit intomainfrom
fix-allanime-link-parsing
Apr 22, 2026
Merged

fix: allanime link parsing#91
Wraient merged 1 commit intomainfrom
fix-allanime-link-parsing

Conversation

@Wraient
Copy link
Copy Markdown
Owner

@Wraient Wraient commented Apr 22, 2026

No description provided.

@Wraient Wraient merged commit 7861f43 into main Apr 22, 2026
2 checks passed
@Wraient Wraient deleted the fix-allanime-link-parsing branch April 22, 2026 17:37
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24a7598da4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/player.go
Comment on lines +160 to +165
if strings.HasPrefix(normalizedArg, "--referrer=") || normalizedArg == "--referrer" {
return true
}

if strings.HasPrefix(normalizedArg, "--http-header-fields=") && strings.Contains(normalizedArg, "referer:") {
return true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Detect IINA-prefixed referrer flags before adding default

StartVideo uses hasMPVReferrerArg to decide whether to append a default referrer, but this helper only checks --referrer and --http-header-fields forms and does not recognize IINA-prefixed variants like --mpv-referrer/--mpv-http-header-fields. In the Player=iina path, users who already set those prefixed flags in MpvArgs will still get --referrer=allanime.day appended, and after argument translation the auto-added value can override their intended referer, causing stream failures on hosts that require a specific header.

Useful? React with 👍 / 👎.

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.

1 participant