vidstream keeps giving 403 Forbidden errors under some circumstances. I need to use "prime-run mpv" for nvidia acceleration, If I use a wrapper "~/bin/mpvv" which simply is a script with prime-run mpv "$@" then anime-dl fails, for vidstream anyway (anime title not relevant). The problem is rather recent. Providers like animeout or 4anime seem to be fine, for some reason.
mpvv:
#!/usr/bin/env bash
echo "prime-run mpv $@" ## added for this bug report
prime-run mpv "$@"
To reproduce
Consider: anime dl 'Fruits Basket the final' -e 11 --play 'mpv' --provider vidstream which works fine.
It also works if I use prime-run anime dl 'Fruits Basket the final' -e 11 --play 'mpv' --provider vidstream and now I have video acceleration.
If I do --url then copy paste the url in mpv it doesn't work.
$ anime dl 'Fruits Basket the final' -e 11 --url --provider vidstream
anime: anime-downloader 5.0.9
+--------+--------------------------------+--------+
| 2 | Fruits Basket: The Final (Dub) | |
| 1 | Fruits Basket: The Final | |
|--------+--------------------------------+--------|
| SlNo | Title | Meta |
+--------+--------------------------------+--------+
Enter the anime no: [1]:
anime: Selected Fruits Basket: The Final
anime: Extracting episode info from page
anime: Found anime: Fruits Basket: The Final
anime: Speed is being limited to 0
https://s5.mp4upload.com:282/d/qcxzmq6iz3b4quuoj2xu422hj45knbr3i7s75ovst4uru6n3mb7z6uzb/frvideo.mp4
$ mpv 'https://s5.mp4upload.com:282/d/qcxzmq6iz3b4quuoj2xu422hj45knbr3i7s75ovst4uru6n3mb7z6uzb/frvideo.mp4'
Resuming playback. This behavior can be disabled with --no-resume-playback.
[ffmpeg] https: HTTP error 403 Forbidden
Failed to open https://s5.mp4upload.com:282/d/qcxzmq6iz3b4quuoj2xu422hj45knbr3i7s75ovst4uru6n3mb7z6uzb/frvideo.mp4.
[ytdl_hook]
[ytdl_hook] stack traceback:
[ytdl_hook] @ytdl_hook.lua:789: in function 'run_ytdl_hook'
[ytdl_hook] @ytdl_hook.lua:942: in function 'fn'
[ytdl_hook] mp.defaults:579: in function 'handler'
[ytdl_hook] mp.defaults:500: in function 'call_event_handlers'
[ytdl_hook] mp.defaults:534: in function 'dispatch_events'
[ytdl_hook] mp.defaults:493: in function <mp.defaults:492>
[ytdl_hook] [C]: in ?
[ytdl_hook] [C]: in ?
[ytdl_hook] Lua error: @ytdl_hook.lua:789: attempt to concatenate local 'err' (a nil value)
client removed during hook handling
Exiting... (Errors when loading file)
If I use my little prime-run mpv "$@" wrapper, it doesn't work.
$ anime dl 'Fruits Basket the final' -e 11 --play 'mpvv' --provider vidstream
anime: anime-downloader 5.0.9
+--------+--------------------------------+--------+
| 2 | Fruits Basket: The Final (Dub) | |
| 1 | Fruits Basket: The Final | |
|--------+--------------------------------+--------|
| SlNo | Title | Meta |
+--------+--------------------------------+--------+
Enter the anime no: [1]:
anime: Selected Fruits Basket: The Final
anime: Extracting episode info from page
anime: Found anime: Fruits Basket: The Final
anime: Speed is being limited to 0
prime-run mpv https://s5.mp4upload.com:282/d/qcxzmq6iz3b4quuoj2xu422hj45knbr3i7s75ovst4uru6n3mb7z6uzb/frvideo.mp4
[ffmpeg] https: HTTP error 403 Forbidden
Failed to open https://s5.mp4upload.com:282/d/qcxzmq6iz3b4quuoj2xu422hj45knbr3i7s75ovst4uru6n3mb7z6uzb/frvideo.mp4.
[ytdl_hook]
[ytdl_hook] stack traceback:
[ytdl_hook] @ytdl_hook.lua:789: in function 'run_ytdl_hook'
[ytdl_hook] @ytdl_hook.lua:942: in function 'fn'
[ytdl_hook] mp.defaults:579: in function 'handler'
[ytdl_hook] mp.defaults:500: in function 'call_event_handlers'
[ytdl_hook] mp.defaults:534: in function 'dispatch_events'
[ytdl_hook] mp.defaults:493: in function <mp.defaults:492>
[ytdl_hook] [C]: in ?
[ytdl_hook] [C]: in ?
[ytdl_hook] Lua error: @ytdl_hook.lua:789: attempt to concatenate local 'err' (a nil value)
client removed during hook handling
Exiting... (Errors when loading file)
Does work with another provider. Also, works using the --url method.
anime dl 'Fruits Basket the final' -e 11 --play 'mpvv' --provider animeout
anime: anime-downloader 5.0.9
+--------+-------------------------------------------------------------------------+--------+
| 1 | Fruits Basket: The Final (Season 3)(1080p-300MB|720p-150MB)(Episode 13) | |
|--------+-------------------------------------------------------------------------+--------|
| SlNo | Title | Meta |
+--------+-------------------------------------------------------------------------+--------+
Enter the anime no: [1]:
anime: Selected Fruits Basket: The Final (Season 3)(1080p-300MB|720p-150MB)(Episode 13)
anime: Extracting episode info from page
anime: Found anime: Fruits Basket: The Final (Season 3)(1080p-300MB|720p-150MB)(Episode 13)
anime: Speed is being limited to 0
prime-run mpv https://public.animeout.xyz/nimbus.animeout.com/series/00RAPIDBOT/Fruits Basket/[AnimeOut] Fruits Basket 2019 S3 - 11 1080pp [31A40E77][1080pp][SubsPlease][RapidBot].mkv
(+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz)
(+) Subs --sid=1 --slang=eng (*) 'English subs' (ass)
Using hardware decoding (nvdec).
VO: [gpu] 1920x1080 cuda[nv12]
Saving state.
Exiting... (Quit)
$ mpv 'https://public.animeout.xyz/nimbus.animeout.com/series/00RAPIDBOT/Fruits Basket/[AnimeOut] Fruits Basket 2019 S3 - 11 1080pp [31A40E77][1080pp][SubsPlease][RapidBot].mkv'
Resuming playback. This behavior can be disabled with --no-resume-playback.
(+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
(+) Audio --aid=1 --alang=jpn (*) (aac 2ch 44100Hz)
(+) Subs --sid=1 --slang=eng (*) 'English subs' (ass)
VO: [gpu] 1920x1080 yuv420p
Saving state.
Exiting... (Quit)
Also I would consider the following should work but it doesn't.
$ anime dl 'Fruits Basket the final' -e 11 --play 'prime-run mpv' --provider vidstream
anime: anime-downloader 5.0.9
+--------+--------------------------------+--------+
| 2 | Fruits Basket: The Final (Dub) | |
| 1 | Fruits Basket: The Final | |
|--------+--------------------------------+--------|
| SlNo | Title | Meta |
+--------+--------------------------------+--------+
Enter the anime no: [1]:
anime: Selected Fruits Basket: The Final
anime: Extracting episode info from page
anime: Found anime: Fruits Basket: The Final
anime: Speed is being limited to 0
ERROR: [Errno 2] No such file or directory: 'prime-run mpv'
I do have latest selescrape version. vidstream was fine until recentely anyway.
Describe the bug
vidstream keeps giving 403 Forbidden errors under some circumstances. I need to use "prime-run mpv" for nvidia acceleration, If I use a wrapper "
~/bin/mpvv
" which simply is a script withprime-run mpv "$@"
then anime-dl fails, for vidstream anyway (anime title not relevant). The problem is rather recent. Providers likeanimeout
or4anime
seem to be fine, for some reason.mpvv:
To reproduce
Consider:
anime dl 'Fruits Basket the final' -e 11 --play 'mpv' --provider vidstream
which works fine. It also works if I useprime-run anime dl 'Fruits Basket the final' -e 11 --play 'mpv' --provider vidstream
and now I have video acceleration.If I do
--url
then copy paste the url in mpv it doesn't work.If I use my little
prime-run mpv "$@"
wrapper, it doesn't work.Does work with another provider. Also, works using the
--url
method.Also I would consider the following should work but it doesn't.
I do have latest selescrape version. vidstream was fine until recentely anyway.
LOG
``` anime --log-level DEBUG dl 'Fruits Basket the final' -e 11 --play 'mpvv' --provider vidstream 2021-07-03 15:31:32 raitaro anime_downloader.util[52351] INFO anime-downloader 5.0.9 2021-07-03 15:31:32 raitaro anime_downloader.util[52351] DEBUG Platform: Linux-5.10.42-1-MANJARO-x86_64-with-glibc2.33 2021-07-03 15:31:32 raitaro anime_downloader.util[52351] DEBUG Python 3.9.5 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG GET https://vidstreaming.io/search.html 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'params': {'keyword': 'Fruits Basket the final'}} 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'} 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:32 raitaro anime_downloader.session[52351] DEBUG cached request 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG https://gogo-stream.com/search.html?keyword=Fruits+Basket+the+final 2021-07-03 15:31:32 raitaro anime_downloader.sites.helpers.request[52351] DEBUG /tmp/animedlrond1moy/tmp6n99lwpd +--------+--------------------------------+--------+ | 2 | Fruits Basket: The Final (Dub) | | | 1 | Fruits Basket: The Final | | |--------+--------------------------------+--------| | SlNo | Title | Meta | +--------+--------------------------------+--------+ Enter the anime no: [1]: 2021-07-03 15:31:33 raitaro anime_downloader.util[52351] INFO Selected Fruits Basket: The Final 2021-07-03 15:31:33 raitaro anime_downloader.sites.anime[52351] INFO Extracting episode info from page 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG GET https://vidstreaming.io/videos/fruits-basket-the-final-episode-13 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.session[52351] DEBUG cached request 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG https://gogo-stream.com/videos/fruits-basket-the-final-episode-13 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG /tmp/animedlrond1moy/tmppywo0mb3 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG GET https://vidstreaming.io/videos/fruits-basket-the-final-episode-13 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.session[52351] DEBUG cached request 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG https://gogo-stream.com/videos/fruits-basket-the-final-episode-13 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG /tmp/animedlrond1moy/tmp6zsg71m9 2021-07-03 15:31:33 raitaro anime_downloader.sites.anime[52351] DEBUG EPISODE IDS: length: 13, ids: ['https://vidstreaming.io/videos/fruits-basket-the-final-episode-1', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-2', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-3', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-4', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-5', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-6', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-7', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-8', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-9', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-10', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-11', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-12', 'https://vidstreaming.io/videos/fruits-basket-the-final-episode-13'] 2021-07-03 15:31:33 raitaro anime_downloader.commands.dl[52351] INFO Found anime: Fruits Basket: The Final 2021-07-03 15:31:33 raitaro anime_downloader.sites.anime[52351] DEBUG Extracting stream info of id: https://vidstreaming.io/videos/fruits-basket-the-final-episode-11 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG GET https://vidstreaming.io/videos/fruits-basket-the-final-episode-11 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'} 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:33 raitaro anime_downloader.session[52351] DEBUG cached request 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG https://gogo-stream.com/videos/fruits-basket-the-final-episode-11 2021-07-03 15:31:33 raitaro anime_downloader.sites.helpers.request[52351] DEBUG /tmp/animedlrond1moy/tmpgu7fl0jq 2021-07-03 15:31:34 raitaro anime_downloader.sites.vidstream[52351] DEBUG Iframes: [] 2021-07-03 15:31:34 raitaro anime_downloader.sites.anime[52351] DEBUG Sources : [('vidstream', '//streamani.net/streaming.php?id=MTYzNDQ0&title=Fruits+Basket%3A+The+Final&typesub=SUB&sub=&cover=Y292ZXIvZnJ1aXRzLWJhc2tldC10aGUtZmluYWwucG5n')] 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG GET https://streamani.net/streaming.php?id=MTYzNDQ0&title=Fruits+Basket%3A+The+Final&typesub=SUB&sub=&cover=Y292ZXIvZnJ1aXRzLWJhc2tldC10aGUtZmluYWwucG5n 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {} 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG {'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'} 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG ----- 2021-07-03 15:31:34 raitaro anime_downloader.session[52351] DEBUG cached request 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG https://streamani.net/streaming.php?id=MTYzNDQ0&title=Fruits+Basket%3A+The+Final&typesub=SUB&sub=&cover=Y292ZXIvZnJ1aXRzLWJhc2tldC10aGUtZmluYWwucG5n 2021-07-03 15:31:34 raitaro anime_downloader.sites.helpers.request[52351] DEBUG /tmp/animedlrond1moy/tmpl3pveylj 2021-07-03 15:31:34 raitaro anime_downloader.extractors.vidstream[52351] DEBUG Linkserver: [