Skip to content

feat: mp4upload provider, refactor, better mpv android support#1704

Merged
Derisis13 merged 9 commits into
masterfrom
coolans_patches
May 23, 2026
Merged

feat: mp4upload provider, refactor, better mpv android support#1704
Derisis13 merged 9 commits into
masterfrom
coolans_patches

Conversation

@CoolnsX

@CoolnsX CoolnsX commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Template

Type of change

  • Bug fix
  • Feature
  • Documentation update

Description

ramble here

Checklist

  • any anime playing
  • bumped version

  • next, prev and replay work
  • -c history and continue work
  • -d downloads work
  • -s syncplay works
  • -q quality works
  • -v vlc works
  • -e (select episode) aka -r (range selection) works
  • -S select index works
  • --skip ani-skip works
  • --skip-title ani-skip title argument works
  • --no-detach no detach works
  • --exit-after-play auto exit after playing works
  • --nextep-countdown countdown to next ep works
  • --dub and regular (sub) mode both work
  • all providers return links (not necessarily on a single anime, use debug mode to confirm)

  • -h help info is up to date
  • Readme is up to date
  • Man page is up to date

Additional Testcases

  • The safe bet: One Piece
  • Episode 0: Saenai Heroine no Sodatekata ♭
  • Unicode: Saenai Heroine no Sodatekata ♭
  • Non-whole episodes: Tensei shitara slime datta ken (ep. 24.5, ep. 24.9)
  • All Providers: Youkoso Jitsuryoku Shijou Shugi no Kyoushitsu e (TV) (3 m3u8, 3 mp4, 1 fast4speed, 1 sharepoint)
  • The examples of the help text

@Derisis13 Derisis13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Amazing work, though a little pita to set up. I only ask for the new error to be changed and to consider a permanent warning (maybe with a link to the readme?)

Comment thread ani-cli Outdated
Comment thread README.md Outdated
@Derisis13

Copy link
Copy Markdown
Collaborator

Playback and downloadng work with the new providers, so PR is good if you push the warning

@CoolnsX CoolnsX requested a review from Derisis13 May 14, 2026 17:08
@RawToast225

Copy link
Copy Markdown

tested and functioning as designed for pc, haven't tested on android

@CoolnsX

CoolnsX commented May 20, 2026

Copy link
Copy Markdown
Collaborator Author

works on android, as I tested it while implementing it.

@RawToast225

Copy link
Copy Markdown

that's not how testing works, typically

@justchokingaround

Copy link
Copy Markdown
Collaborator

??? then how does testing work?

@RawToast225

Copy link
Copy Markdown

am I in a backward land? developers don't catch everything, you need testers. a collaborator doesn't get to declare that their code works without someone else testing it

@CoolnsX

CoolnsX commented May 21, 2026

Copy link
Copy Markdown
Collaborator Author

Okay then, please test it on all platforms. 🙂

@RawToast225

Copy link
Copy Markdown

no? I don't have the time. you also don't get to decree when people volunteer their time

@port19x

port19x commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Guys can we actually merge PR fixes and not leave them terminally open?
We can deal with little bugs or unpolished edges after the fact in a subsequent PR, but this is just an invitation to everyone and their mother to open yet another Issue that things aren't working.

Also someone pls merge #1663, I know things are evolving still, but we need some kind of visual indication that things aren't merely out-of-date, but actually broken.

@Derisis13 Derisis13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm in favor of merging it, it'd be nice if we kept the language clean, but it's not a blocker. Just kind of low in my opinion.

Comment thread ani-cli Outdated
@CoolnsX

CoolnsX commented May 23, 2026

Copy link
Copy Markdown
Collaborator Author

I want to mention about mp4upload.

  • Requires referrer and tls verify to none
  • only works with mpv and mpv frontends like iina.
  • VLC is not working with this provider. iSH plebs may suffer playback issues and the people that uses VLC to watch anime, sorry in advance.

current state of providers

  • sharepoint is unstable for past few weeks.
  • youtube one is working, but it requires referrer.
  • hianime is gone for good (the code for this is removed to rule out this provider)
  • wixmp is only on old anime (anime that release before 2020 I guess).
  • mp4upload requires that referrer and tls-verify to none.

@Derisis13 Derisis13 merged commit b8032b7 into master May 23, 2026
11 checks passed
@Derisis13

Copy link
Copy Markdown
Collaborator

@port19x this is a "minor version" but maybe it'd be worth to do a release on it. What do you think?

JoaoPucci added a commit to JoaoPucci/ani-gui that referenced this pull request May 23, 2026
…bump) (#17)

* docs: bump min version to 4.12 for packaging status (pystardust#1663)

* feat: mp4upload provider, refactor, better mpv android support (pystardust#1704)

Coolnsx (2026-05-23):

> I want to mention about mp4upload.
> Requires referrer and tls verify to none only works with mpv and mpv frontends like iina. VLC is not working with this provider. iSH plebs may suffer playback issues and the people that uses VLC to watch anime, sorry in advance.

> current state of providers

> sharepoint is unstable for past few weeks. youtube one is working, but it requires referrer. hianime is gone for good (the code for this is removed to rule out this provider) wixmp is only on old anime (anime that release before 2020 I guess). mp4upload requires that referrer and tls-verify to none.

* test: cover new mp4upload provider paths from upstream b8032b7

Upstream's mp4upload refactor removed the sharepoint/hianime/wixmp/youtube
provider functions and added an mp4upload branch. Existing bash unit tests
no longer reach 10 lines of script that previously contributed to the
pure-coverage ratchet (78 -> 68).

Pins the new behavior:
  - select_quality's per-provider refr_flag dispatch (mp4upload sets a
    literal mp4upload.com referer; sharepoint unsets refr_flag; everything
    else falls back to allanime_refr).
  - cleanup() - new helper invoked on SIGINT and normal exit.
  - process_response() - replaces decode_tobeparsed; non-encrypted
    responses short-circuit through a pass-through path.
  - provider_init's new raw-value branch - triggered when the matched
    line does not start with `--` (mp4upload and youtube providers).

Also aligns lefthook.yml's shellcheck invocation with the two-pass setup
in .github/workflows/bash.yml. Lefthook previously ran a single
flag-less `shellcheck {staged_files}`, which flagged SC2034 / SC2154 /
SC2030 / SC2031 on every bats file (test-context noise from the loader's
sourced-globals pattern, already suppressed in CI). With that mismatch no
.bats file could be committed without LEFTHOOK=0 - now local mirrors CI.

* test: cover get_links fast4speed.rsvp dispatch branch

Closes the remaining coverage-ratchet gap (76 -> 78) after the previous
test commit. The fast4speed.rsvp case is the cleanest of the new
get_links branches to unit-test because it short-circuits before any
curl, so the assertion is a pure string round-trip.

---------

Co-authored-by: port19 <port19@port19.xyz>
Co-authored-by: Tanveer Ahmed Ansari <ansari.tan20@gmail.com>
@port19x

port19x commented May 23, 2026

Copy link
Copy Markdown
Collaborator

@port19x this is a "minor version" but maybe it'd be worth to do a release on it. What do you think?

Just for sake of continuity, I ask that we bump the "major" version.
We can do this in a separate PR, I'll likely have the time and leisure to sign it off in about 16 hours.
Thank you for merging this one

JoaoPucci added a commit to JoaoPucci/ani-gui that referenced this pull request May 24, 2026
… changes) (#23)

* docs: bump min version to 4.12 for packaging status (pystardust#1663)

* feat: mp4upload provider, refactor, better mpv android support (pystardust#1704)

Coolnsx (2026-05-23):

> I want to mention about mp4upload.
> Requires referrer and tls verify to none only works with mpv and mpv frontends like iina. VLC is not working with this provider. iSH plebs may suffer playback issues and the people that uses VLC to watch anime, sorry in advance.

> current state of providers

> sharepoint is unstable for past few weeks. youtube one is working, but it requires referrer. hianime is gone for good (the code for this is removed to rule out this provider) wixmp is only on old anime (anime that release before 2020 I guess). mp4upload requires that referrer and tls-verify to none.

* ci: re-run CI to pick up required-mirrors workflow (#24)

---------

Co-authored-by: port19 <port19@port19.xyz>
Co-authored-by: Tanveer Ahmed Ansari <ansari.tan20@gmail.com>
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.

5 participants