pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.92k stars 544 forks source link

403 forbidden due to missing referer #543

Closed Crisp-Casper closed 2 years ago

Crisp-Casper commented 2 years ago

Metadata (please complete the following information) Version: 1.8.0 OS: [droid] Shell: termux-bash Anime: [e.g. flcl] (if applicable) any

Describe the bug video can't be played, I get the error Error 1020 Ray ID: 6dfe0c5688927ae3 • 2022-02-19 08:15:35 UTC Access denied What happened?

This website is using a security service to protect itself from online attacks. moving it too Firefox idk if that means anything

Steps To Reproduce

  1. Run `ani-cli'
  2. opens mpv
  3. black screen then file selection screen

Expected behavior should play video

Screenshots image image

Additional context sorry if this is deemed not yalls problem I just wanna watch my Anime man...

Crisp-Casper commented 2 years ago

this is a full install + run attempt for mpv and vlc

https://streamable.com/rvxzzx

CoolnsX commented 2 years ago

they put the referer link back for streaming video.. and we cannot pass both video link and referer link to mpv.. cause android problems.. we cannot do much here.. downloading works though.. so you can download then watch.. :)

port19x commented 2 years ago

Ran into the same issue with ani-sync yesterday

Crisp-Casper commented 2 years ago

they put the referer link back for streaming video.. and we cannot pass both video link and referer link to mpv.. cause android problems.. we cannot do much here.. downloading works though.. so you can download then watch.. :)

so android is kinda fucked? I'll swap references to include -d now thanks

CoolnsX commented 2 years ago

so android is kinda fucked? I'll swap references to include -d now thanks

I saw the video... is your android rooted??

Crisp-Casper commented 2 years ago

so android is kinda fucked? I'll swap references to include -d now thanks

I saw the video... is your android rooted??

no I'm afraid the oem is permanently locked

stl3 commented 2 years ago

Ok, no wonder. This seems to also affect my ytfzf as well. For now, I have to do it the ugly way by doing echo 'termux-open --view "$1"' > $PREFIX/bin/mpv and then watching it using newpipe or something. Edit: scratch that, everything I tried does not work.

Soviena commented 2 years ago

Adding referrer="https://gogoanime.fi" to mpv.conf in android mpv settings work for me

justchokingaround commented 2 years ago

@Soviena is right, this is a referrer issue, so just adding referrer="https://gogoanime.fi/" to mpv.conf will fix it. alternatively you can pass that as an mpv argument i.e: mpv --referrer="https://gogoanime.fi/" <video_url> might be useful to someone for future reference

Crisp-Casper commented 2 years ago

@Soviena is right, this is a referrer issue, so just adding referrer="https://gogoanime.fi/" to mpv.conf will fix it. alternatively you can pass that as an mpv argument i.e: `mpv --referrer="https://gogoanime.fi/" <video_url> might be useful to someone for future reference

pardon my asking but mpv.conf? I can't seem to find it on termux

Soviena commented 2 years ago

pardon my asking but mpv.conf? I can't seem to find it on termux

Not on termux, but in android mpv app setting

stl3 commented 2 years ago

Open mpv, goto three dots top right->Settings->Advanced-->Edit mpv.conf Btw, some might not be aware there are some builds of mpv for android that can accept urls (I'm not sure what the limitations are but I do know youtube works, have to test other stuff). From https://github.com/mpv-android/mpv-android/pull/58 download this file https://kitsunemimi.pw/tmp/mpv-android-2021-10-29.apk (uninstall the current mpv-android you have installed, and then install this). Open mpv, goto three dots top right->Settings->Advanced-->Install/Update youtube-dl and select Install and choose yt-dlp (I actually had yt-dlp installed in Termux but it still complained about it so I just did it).

Crisp-Casper commented 2 years ago

right i found it with @Soviena 's comment can confirm this works! and ig its pretty cool mpv can do that ik vlc can as well by default

CoolnsX commented 2 years ago

right i found it with @Soviena 's comment can confirm this works! and ig its pretty cool mpv can do that ik vlc can as well by default

Vlc doesn't have referrer link option in Android...

port19x commented 2 years ago

I'll consider this fixed once we point out the workaround in the readme

stl3 commented 2 years ago

Would having gogo as the singular referrer in mpv.conf not affect other sites that require referrer usage (I mean outside of ani-cli of course)?

port19x commented 2 years ago

Would having gogo as the singular referrer in mpv.conf not affect other sites that require referrer usage (I mean outside of ani-cli of course)?

It would. If you have other scrapers that need referers, things will get messy

port19x commented 2 years ago

Solved with #559