Skip to content

MissAV [ALL]: Fix HTTP 403 on video playback (fix #633)#634

Merged
Alpha-782 merged 1 commit into
yuzono:masterfrom
jhangyu:fix/missav-cloudflare-403
Jul 20, 2026
Merged

MissAV [ALL]: Fix HTTP 403 on video playback (fix #633)#634
Alpha-782 merged 1 commit into
yuzono:masterfrom
jhangyu:fix/missav-cloudflare-403

Conversation

@jhangyu

@jhangyu jhangyu commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Closes #542.

surrit.com CDN added Cloudflare WAF. OkHttp passes, but mpv's ffmpeg TLS fingerprint gets blocked with 403. Route HLS playback through the local m3u8server proxy so all upstream fetches use OkHttp.

Checklist:

  • Updated extVersionCode value in build.gradle for individual extensions
  • Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Added the isNsfw = true flag in build.gradle when appropriate
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension
  • This PR is AI-assisted, I have reviewed the changes manually and confirmed they are not slop
  • Have made sure all the icons are in png format

Add a 👍 reaction to pull requests you find important.

Summary by Sourcery

Route MissAV HLS video playback through the local m3u8 proxy to avoid CDN 403 errors and update the extension metadata accordingly.

Bug Fixes:

  • Fix HTTP 403 errors on MissAV video playback by proxying HLS streams through OkHttp via the m3u8server integration.

Enhancements:

  • Integrate the shared m3u8server library into the MissAV extension for HLS playlist handling.

Build:

  • Bump MissAV extension version code and add the m3u8server library dependency in the Gradle configuration.

@sourcery-ai

sourcery-ai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Routes MissAV HLS playback through the local m3u8server proxy so Cloudflare WAF is only seeing OkHttp traffic, by introducing M3u8Integration usage in the source and wiring in the new library dependency and version bump.

Sequence diagram for updated HLS playback via M3u8Integration

sequenceDiagram
    actor User
    participant MissAV
    participant PlaylistUtils
    participant M3u8Integration
    participant Player

    User->>MissAV: openVideo
    MissAV->>PlaylistUtils: extractFromHls(masterPlaylist, referer)
    PlaylistUtils-->>MissAV: videos
    MissAV->>M3u8Integration: processVideoList(videos)
    M3u8Integration-->>MissAV: proxiedVideos
    MissAV-->>Player: proxiedVideos
    Player->>Player: play proxiedVideos
Loading

File-Level Changes

Change Details Files
Proxy HLS video playback through local m3u8server to avoid Cloudflare WAF 403s.
  • Import M3u8Integration and create a lazily-initialized instance using the existing OkHttp client.
  • Change the video list extraction flow to first extract HLS playlists via PlaylistUtils and then post-process the resulting Video list through M3u8Integration.
  • Add explanatory comment documenting the Cloudflare WAF TLS fingerprint issue and the rationale for the proxying.
src/all/missav/src/eu/kanade/tachiyomi/animeextension/all/missav/MissAV.kt
Wire in m3u8server library and bump extension version for MissAV.
  • Increment extVersionCode from 25 to 26 to reflect the behavioral change.
  • Add a Gradle dependency on the :lib:m3u8server module so the new integration compiles and is packaged.
src/all/missav/build.gradle

Assessment against linked issues

Issue Objective Addressed Explanation
#633 Route MissAV HLS video playback through the local m3u8server proxy so that all upstream surrit.com requests use OkHttp (bypassing Cloudflare WAF blocking mpv/ffmpeg).
#633 Integrate the m3u8server library into the MissAV extension (dependency + wiring) and apply it to the extracted HLS video list.
#633 Bump the MissAV extension version code so clients receive the fix via an update.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

… surrit.com CDN

surrit.com added Cloudflare WAF which blocks mpv's TLS fingerprint (ffmpeg
stack) with HTTP 403, while OkHttp passes fine. Route video playback through
the local m3u8 proxy server so all upstream fetches use OkHttp instead of
mpv's native network stack.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jhangyu
jhangyu force-pushed the fix/missav-cloudflare-403 branch from 0c4204e to a4dcdbd Compare July 12, 2026 17:29
@0Ha16wA5

Copy link
Copy Markdown

Related to #542

@Alpha-782
Alpha-782 merged commit dd6633f into yuzono:master Jul 20, 2026
8 checks passed
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.

MissAV [EN]: Error 403

3 participants