Conversation
There was a problem hiding this comment.
💡 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".
| if strings.HasPrefix(normalizedArg, "--referrer=") || normalizedArg == "--referrer" { | ||
| return true | ||
| } | ||
|
|
||
| if strings.HasPrefix(normalizedArg, "--http-header-fields=") && strings.Contains(normalizedArg, "referer:") { | ||
| return true |
There was a problem hiding this comment.
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 👍 / 👎.
No description provided.