justfoolingaround / animdl

A highly efficient, fast, powerful and light-weight anime downloader and streamer for your favorite anime.
GNU General Public License v3.0
1.33k stars 109 forks source link

How to use AnimePahe url #159

Closed insomniachi closed 2 years ago

insomniachi commented 2 years ago

The inquiry how to use the stream urls spat out by grab command from animepahe provider

            "quality": "360",
            "headers": {
                "referer": "https://kwik.cx/e/hLWJn2mQy7tu"
            },
            "stream_url": "https://eu-d1.files.nextcdn.org/stream/0002/69743cc42f53f358e4784909e7c8f67d0a8f25d80d386f6bca12907988d0b6ce/uwu.m3u8"

going to stream_url directly gives me 403 forbidden. i'm guessing i have to do something with the referer. i don't now what.

justfoolingaround commented 2 years ago

You need to add HTTP headers, those are included alongside the stream urls in grab and the project too internally uses those. These are to bypass CSPs from a server's side.

Use a HTTP client that supports custom headers. A vanilla browser will not work, use an extension to get to the urls, or just use the project normally with streaming and downloading arguments.

insomniachi commented 2 years ago

i configured vlc

default_provider: animixplay
default_player: vlc
players:
  vlc:
    executable: "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe"
    opts: [] 

when i do the stream command, it opens vlc, but does not play for anime pahe. but works for other sources.

justfoolingaround commented 2 years ago

Probably slow internet connection, as all headers are passed via the program core.