Topic: SVP Tube and Crunchyroll

SVPtube its not working in crunchyroll site anymore. Since the last update (2.1.0.221) shows a error message

15:14:31.974 [E]: Tube: G6K5KW24Y: An extractor error has occurred. (caused by KeyError('byId')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

Local files and other sites like youtube still working.

Sorry for the bad english, its my second language.

Re: SVP Tube and Crunchyroll

Hello,

I can confirm that after 08.08.2022 SVP update, Beta webpage from Crunchyroll is no longer working, I got "An extractor error has occurred. (caused by KeyError('byId'))" error.

Non-Beta, or Classic website works fine for me, but with no subtitles. Every other player I tried (MPC-HC, PotPlayer), can provide subtitles and work fine in Classic website, but none of them can use GLSL shaders I need to make upscaling.

Tried fresh installation on different machines, but no subtitles working so far in that site.

Hope both errors can be studied/fixed in new versions.

Re: SVP Tube and Crunchyroll

I can't see any changes regarding this 'byId' in 2022.08.08, but you can try replacing 'SVP 4\extensions\tube\youtube_dl\extractor\crunchyroll.py' with the one from previous release 2022.07.18: https://raw.githubusercontent.com/yt-dl … chyroll.py
or with the latest 08.14: https://raw.githubusercontent.com/yt-dl … chyroll.py
restart SVP after replacing the file

Re: SVP Tube and Crunchyroll

I've checked behaviour with commented .py files from older versions, and it's the same, I think it's more related to websites changes than youtube-dl libraries.

As for my subtitles issue, it's still the same. If anyone can try Crunchy with MPV and check if subtitles are working, would be grateful.

And, is there any log I can check to see what's happening? The extension gets the subtitles right, because it works with other players (PotPlayer), but MPV is not loading properly the subs.

Any help would be appreciated.

Thanks.

Re: SVP Tube and Crunchyroll

> is there any log I can check to see what's happening?

SVP menu -> Information -> Additional information -> mpv configuration file
add
log-file=<some writeable file path>

6 (edited by dumha 17-08-2022 23:58:08)

Re: SVP Tube and Crunchyroll

This is mine. Using Crunchyroll Classic, video but no subtitles.

Post's attachments

mpv.log 179.88 kb, 215 downloads since 2022-08-17 

Re: SVP Tube and Crunchyroll

"byId" error occurs if you didn't provide auth data to SVPtube
export cookies, load them into SVPtube - and it'll work

regarding subtitles - for some unknown reason mpv/ffmpeg doesn't want to download them from URL, the log says
> https: HTTP error 400 Bad Request
while subs URL is perfectly OK and opens in a web browser just fine
dunno why hmm

and it works in MPC-HC because SVPtube pre-downloads subs for MPC-HC

Re: SVP Tube and Crunchyroll

I think there are two different issues:

- The one with "ByID", which happens even with auth_cookies properly set (I will send log later). Using "Classic Website" seems to avoid this issue, at least videos are working for me with old website.

- The one with subtitles. This is not working nor with new neither old site, and it's like that, with PotPlayer/MPC-HC works fine, but no for MPV. But a lot of people have their system set for MPV (key bindings, GL shaders, etc.), so it's a big issue for using this extension.

I think both issues are caused by changes made on the server side, but maybe some fix can be developed.

Thank you.

Re: SVP Tube and Crunchyroll

"ByID" error occurs when you're opening URL from the "beta" UI while not authenticated. i.e. when SVPtube doesn't have proper authentication info.

Re: SVP Tube and Crunchyroll

It make sense. But i check the authentication info and its correct (also change the password just in case). Renew the cookies a i get the same result (With and without user agent) .

Re: SVP Tube and Crunchyroll

https://github.com/yt-dlp/yt-dlp/issues/4692

the error comes from _redirect_from_beta() call only if there's no "etp_rt" cookie set

Re: SVP Tube and Crunchyroll

regarding subtitles - this fix works for me
edit SVP 4\extensions\tube\youtube_dl\utils.py, find the line starting with _USER_AGENT_TPL
remove this part - "AppleWebKit/537.36 (KHTML, like Gecko)"
the code should be like this:

    _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/%s Safari/537.36'

restart SVP

for some odd reason the "AppleWebKit/537.36" part of the user agent string prevents ffmpeg from downloading subs from vrv server hmm

Re: SVP Tube and Crunchyroll

dumha wrote:

It make sense. But i check the authentication info and its correct (also change the password just in case). Renew the cookies a i get the same result (With and without user agent) .

Same for me, I can see premium content with old website, and cannot with new one. And I'm using same cookies for both.

Re: SVP Tube and Crunchyroll

Chainik wrote:

regarding subtitles - this fix works for me
edit SVP 4\extensions\tube\youtube_dl\utils.py, find the line starting with _USER_AGENT_TPL
remove this part - "AppleWebKit/537.36 (KHTML, like Gecko)"
the code should be like this:

    _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/%s Safari/537.36'

restart SVP

for some odd reason the "AppleWebKit/537.36" part of the user agent string prevents ffmpeg from downloading subs from vrv server hmm

The fix works wonderfully for me, thank you very much!

Re: SVP Tube and Crunchyroll

this may fix 'byId' error w/o authentication: https://raw.githubusercontent.com/yt-dl … chyroll.py

Re: SVP Tube and Crunchyroll

It does but now the premium content is unavailable. I assume its a temporary solution. According to https://github.com/yt-dlp/yt-dlp/issues/4692 they are using anonymous acount for the beta api. For the time i prefer use the old crunchyroll.py in the old site.

Re: SVP Tube and Crunchyroll

dumha wrote:

It does but now the premium content is unavailable. I assume its a temporary solution. According to https://github.com/yt-dlp/yt-dlp/issues/4692 they are using anonymous acount for the beta api. For the time i prefer use the old crunchyroll.py in the old site.

I'm doing the same, but, for how long would be the old site running? Now, when you identify in either site, it redirects you to the new website.

I only use new website for getting cookies auth, and then use old site to properly watch content, but I'm worrying about long-term solutions...

Re: SVP Tube and Crunchyroll

Chainik wrote:

I can't see any changes regarding this 'byId' in 2022.08.08, but you can try replacing 'SVP 4\extensions\tube\youtube_dl\extractor\crunchyroll.py' with the one from previous release 2022.07.18: https://raw.githubusercontent.com/yt-dl … chyroll.py
or with the latest 08.14: https://raw.githubusercontent.com/yt-dl … chyroll.py
restart SVP after replacing the file


Hi, I am a newbie when it comes to this stuff. How do I replace 'SVP 4\extensions\tube\youtube_dl\extractor\crunchyroll.py' ?

Re: SVP Tube and Crunchyroll

omeg007

on macOS: right click SVP 4 Mac -> show package contents -> Contents -> Resources -> extensions -> tube -> youtube_dl -> extractor

though I'm not sure it'll work that way cause Mac's version is too outdated now hmm

Re: SVP Tube and Crunchyroll

Chainik wrote:

omeg007

on macOS: right click SVP 4 Mac -> show package contents -> Contents -> Resources -> extensions -> tube -> youtube_dl -> extractor

though I'm not sure it'll work that way cause Mac's version is too outdated now hmm

Hi. Thanks for the suggestion, but it seems that you are right. When I replaced it, youtube_dl stopped working completely for SVPtube.

Re: SVP Tube and Crunchyroll

we'll update Mac package ASAP

Re: SVP Tube and Crunchyroll

omeg007

try this

Re: SVP Tube and Crunchyroll

Thank you very much! It works now. It's too good in fact. I didn't even have to enter the authentication data! cool

Re: SVP Tube and Crunchyroll

For some reason, only the series in the simulcast list of spring and summer 2022 need authentication data. The simulcast for winter 2022 and before work with no issues. When I try to provide the authentication data, it doesn't work, even though I give the login details and cookie data. I am still thankful for updating the Mac package.

Re: SVP Tube and Crunchyroll

> even though I give the login details and cookie data

only cookies are needed, w/o login/pass