Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRV.co extractor error has occurred. (caused by KeyError('streams',)) #14307

Closed
bobpaul opened this issue Sep 23, 2017 · 31 comments
Closed

VRV.co extractor error has occurred. (caused by KeyError('streams',)) #14307

bobpaul opened this issue Sep 23, 2017 · 31 comments

Comments

@bobpaul
Copy link

@bobpaul bobpaul commented Sep 23, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.09.24. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [ x] I've verified and I assure that I'm running youtube-dl 2017.09.24
    $ youtube-dl --version
    2017.09.24

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
    There are a couple of issues, but they're tagged geo-restricted and other user failures. I believe my issue is unique.

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', 'https://vrv.co/watch/G675N2D1R/HarmonQuest:The-Quest-Continues', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.09.24
[debug] Python version 3.6.2 - Linux-4.12.10-2-zen-x86_64-with-arch
[debug] exe versions: ffmpeg 3.3.4, ffprobe 3.3.4, rtmpdump 2.4
[debug] Proxy map: {}
[vrv] G675N2D1R: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 777, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 447, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

I have verified that my username/password on the commandline are correct and that I'm able to view this episode using the given URL in my browser. I also tried the shorter URL https://vrv.co/watch/G675N2D1R which also failed in the same manor.

@twiclo
Copy link

@twiclo twiclo commented Nov 4, 2017

I'm also having this issue. I noticed the other one is geo-restricted so if it helps at all, I'm in the US

[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://vrv.co/watch/GYX084D3R/HarmonQuest:The-Quest-Begins', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.10.15.1
[debug] Python version 3.5.4 - Linux-4.13.10-100.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five
[debug] exe versions: none
[debug] Proxy map: {}
[vrv] GYX084D3R: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 783, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 447, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.```
@twiclo
Copy link

@twiclo twiclo commented Nov 4, 2017

Okay so the account-needed tag was added but I have an account I've paid for and I've tried authenticating as well. Here's the output for the time I authenticated

[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://vrv.co/watch/GYX084D3R/HarmonQuest:The-Quest-Begins', '-u', 'PRIVATE', '--verbose']
Type account password and press [Return]: 
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.10.15.1
[debug] Python version 3.5.4 - Linux-4.13.10-100.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five
[debug] exe versions: none
[debug] Proxy map: {}
[vrv] GYX084D3R: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 434, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/vrv.py", line 110, in _real_extract
    streams_path = video_data['__links__']['streams']['href']
KeyError: 'streams'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 783, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 447, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.```

I'm running version 2017.10.15.1
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Nov 5, 2017

an account is needed for developers interested/willing to add support for authentication, currently youtube-dl only support videos that don't require an account(free and non age-restricted videos).

@twiclo
Copy link

@twiclo twiclo commented Nov 10, 2017

So it's failing because it can't find watch.mediaResource.json.__links__.streams. I went through the mediaResource object and found that indeed streams isn't there. The main thing it was getting from streams was the href which has been moved up to just watch.mediaResource.json.href. After changing line 110 from streams_path = video_data['__links__']['streams']['href'] to streams_path = video_data['__href__'] I got the below error after running pytho3n youtube_dl/__main__.py https://vrv.co/watch/GYX084D3R/HarmonQuest:The-Quest-Begins -u twiclo@gmail.com --verbose

[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://vrv.co/watch/GYX084D3R/HarmonQuest:The-Quest-Begins', '-u', 'PRIVATE', '--verbose']
Type account password and press [Return]: 
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.06
[debug] Git HEAD: 61fb07e15
[debug] Python version 3.6.2 - Linux-4.13.5-200.fc26.x86_64-x86_64-with-fedora-26-Twenty_Six
[debug] exe versions: ffmpeg 3.3.4, ffprobe 3.3.4
[debug] Proxy map: {}
[vrv] GYX084D3R: Downloading webpage
[vrv] GYX084D3R: Downloading CMS Signing JSON metadata
[vrv] GYX084D3R: Downloading streams JSON metadata
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/twiclo/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 784, in extract_info
    ie_result = ie.extract(url)
  File "/home/twiclo/Projects/youtube-dl/youtube_dl/extractor/common.py", line 437, in extract
    ie_result = self._real_extract(url)
  File "/home/twiclo/Projects/youtube-dl/youtube_dl/extractor/vrv.py", line 139, in _real_extract
    self._sort_formats(formats)
  File "/home/twiclo/Projects/youtube-dl/youtube_dl/extractor/common.py", line 1075, in _sort_formats
    raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

It looks like VRV changed the way they serve videos. Here's a blog post talking about it in March: https://medium.com/ellation-tech/improving-video-quality-for-crunchyroll-and-vrv-dd587261a364

It looks like a lot of the extractor is going to need a rewrite because of this. Am I right in thinking this or is there something I'm missing?

EDIT: Just tested vanilla youtube-dl with a video that doesn't require authentication and it worked fine so uh, ignore what I said up there

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Nov 10, 2017

The main thing it was getting from streams was the href which has been moved up to just watch.mediaResource.json.href. After changing line 110 from streams_path = video_data['links']['streams']['href'] to streams_path = video_data['href'] I got the below error after running

it hasn't moved up, you're requesting the same data that the extractor already have(video_data).

It looks like VRV changed the way they serve videos. Here's a blog post talking about it in March: https://medium.com/ellation-tech/improving-video-quality-for-crunchyroll-and-vrv-dd587261a364
It looks like a lot of the extractor is going to need a rewrite because of this. Am I right in thinking this or is there something I'm missing?

no, the article you're referring to is about their change from old CBR RTMP streams to the new VBR HLS streams.

@twiclo
Copy link

@twiclo twiclo commented Nov 10, 2017

Okay so, just to clarify with your previous comment about authentication, does the program not support authentication AT ALL or has it just not yet been built into this extractor? Surely it works with at least some websites otherwise there wouldn't be all these flags for authenticating

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Nov 10, 2017

does the program not support authentication AT ALL or has it just not yet been built into this extractor?

it's on the VRV extractor, every extractor that require authentication need's to add some code to handle the login process(and sometimes auth tokens if needed), this code is specific to that website.
as an example lynda and udemy extractors both support authentication but the code to add support is different.

@Vigilence
Copy link

@Vigilence Vigilence commented Nov 20, 2017

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', 'https://vrv.co/watch/GYX0EDP5R/', '-u', 'PRIVATE', '-p', 'PRIVATE', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.11.15
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg N-89073-gff8f40a630, ffprobe N-89073-gff8f40a630
[debug] Proxy map: {}
[vrv] GYX0EDP5R: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\extractor\common.py", line 437, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\extractor\vrv.py", line 110, in _real_extract
KeyError: 'streams'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\extractor\common.py", line 437, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\extractor\vrv.py", line 110, in _real_extract
KeyError: 'streams'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\YoutubeDL.py", line 784, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp10f7prtw\build\youtube_dl\extractor\common.py", line 450, in extract
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('streams',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

This particular video requires a subscription to view, so authentication appears to be an issue.

@PeregrineZ
Copy link

@PeregrineZ PeregrineZ commented Nov 24, 2017

I think I see the probem.

I've been trying to download a movie off of vrv.co manually, and they've encrypted their videos inside a .M3u8 file referencing an array of .ts files with AES-128-CBC encryption. I'm working on decrypting a segment using the OpenSSL binaries, but unfortunately programming this into Youtube-DL is a bit over my level.

If any devs need me to provide my vrv.co account, I'd be happy to!

EDIT: I was able to download the file in VLC Media Player by using their video streaming feature and the link to the .m3u8 file, if it helps any.

@Vigilence
Copy link

@Vigilence Vigilence commented Nov 24, 2017

If you have the latest firefox (57) you can downgrade to the prior release (56.0.2), and then get the addon video downloader helper to download from vrv and other similar sites. Disable updates for the browser if need be or it will autoupdate.

Version 7 of VDH is partially broken so these steps are needed to use the prior release which is 6.3.3 on firefox.

Chromes version of VDH doesn't work.

I am doing this until youtube-dl gets full login functionality for these sites.

@twiclo
Copy link

@twiclo twiclo commented Nov 24, 2017

Just to clarify for everyone, the issue is that a login is required to view this video and the login hasn't been built into the vrv extractor yet. It works just fine if you're watching a video that requires no account. Doesn't have anything to do with the video format. Thanks for all the help everyone

@PeregrineZ
Copy link

@PeregrineZ PeregrineZ commented Nov 24, 2017

Oh okay, seems I was mistaken.

@hadees
Copy link

@hadees hadees commented May 25, 2018

So i've been looking into this bug, if you use the cookies you should be able to get around the login. The problem is you still can't get the streams. I've been messing with the code on the command line and I've sort of figured some stuff out.

The url i've been testing with is https://vrv.co/watch/GRGGZZ98R/Lastman:Youre-An-Asshole-Aldana. You need an account to view it.

youtube-dl --cookies cookies-vrv.txt --verbose https://vrv.co/watch/G609EZPP6/Lastman:Youre-Just-Saying-That-Cause-I-Have-a-Grenade

For example the whole issue for me is on line.

streams_path = video_data['__links__']['streams']['href']

Now that doesn't exist but I was able to find https://api.vrv.co/cms/v2/US/M3/alpha,cartoonhangover,crunchyroll,curiositystream,dramafever,fandor,funimation,geekandsundry,mondo,mubi,nerdist,roosterteeth,shudder,tested,vrvselect/videos/GY5V1GEPY/streams in my browser.

That gives back what I think is needed by youtube-dl.

{
  "__class__": "video_streams",
  "__href__": "/cms/v2/US/M3/alpha,cartoonhangover,crunchyroll,curiositystream,dramafever,fandor,funimation,geekandsundry,mondo,mubi,nerdist,roosterteeth,shudder,tested,vrvselect/videos/GRE5Z02N6/streams",
  "__resource_key__": "cms:/videos/GRE5Z02N6/streams",
  "__links__": {
    "resource": {
      "href": "/cms/v2/US/M3/alpha,cartoonhangover,crunchyroll,curiositystream,dramafever,fandor,funimation,geekandsundry,mondo,mubi,nerdist,roosterteeth,shudder,tested,vrvselect/episodes/G609EZPP6"
    }
  },
  "__actions__": {
    
  },
  "media_id": "GRE5Z02N6",
  "audio_locale": "en-US",
  "subtitles": {
    
  },
  "streams": {
    "adaptive_dash": {
      "": {
        "hardsub_locale": "",
        "url": "https://dl.v.vrv.co/evs/fc07db519d356c05eef0f0cc1266c36c/assets/d5etm5dntkui9i2_,3339771.mp4,3339769.mp4,3339765.mp4,3339767.mp4,.urlset/manifest.mpd?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvZmMwN2RiNTE5ZDM1NmMwNWVlZjBmMGNjMTI2NmMzNmMvYXNzZXRzL2Q1ZXRtNWRudGt1aTlpMl8sMzMzOTc3MS5tcDQsMzMzOTc2OS5tcDQsMzMzOTc2NS5tcDQsMzMzOTc2Ny5tcDQsLnVybHNldC9tYW5pZmVzdC5tcGQiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MjcyOTE4MDF9fX1dfQ__&Signature=a8Y-V~~p7YpQzgSNMwdM~SQY1gKQtDaao~kUjZxh0MrFaSIi6gsln6ITXmRqI9XvGvQf6zQIv6alrcJh0F1~j3~AhZq8XpoESWU~t~CJvS9dqtcoUaBXUSHtMht~Af68JFGKBvKw5R~9K7zUBglM21RyelN0cQmKCJjVa53UksAtZLzX5G7P5USvdEsfrBfKXIsx8m~iYkt0JV099aJiQeo~IzpuEGK~KJG9ncT9BsvFhcdYawzlyGZBeQUmcDz-TqxtGdQauAJ3HSCj8~eZER5Ao2EdQ1uelsuHnbnpvOg1hdAPi~zKUrpACkI4suKv2sdjKFpIrDGCXiRqVgpRMw__&Key-Pair-Id=DLVR"
      }
    },
    "adaptive_hls": {
      "": {
        "hardsub_locale": "",
        "url": "https://dl.v.vrv.co/evs/fc07db519d356c05eef0f0cc1266c36c/assets/d5etm5dntkui9i2_,3339771.mp4,3339769.mp4,3339765.mp4,3339767.mp4,.urlset/master.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvZmMwN2RiNTE5ZDM1NmMwNWVlZjBmMGNjMTI2NmMzNmMvYXNzZXRzL2Q1ZXRtNWRudGt1aTlpMl8sMzMzOTc3MS5tcDQsMzMzOTc2OS5tcDQsMzMzOTc2NS5tcDQsMzMzOTc2Ny5tcDQsLnVybHNldC9tYXN0ZXIubTN1OCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTUyNzI5MTgwMX19fV19&Signature=UgVRYPsi2fC4EkdLFMK8nW5Rn-bN1E-lsjYmjXoK~lgO0s0EzWHDDxMx51wjcz4ysQiVU8SIfxSFLtJ7sPwXvFnOJGyb~vtOxf7gyeT2-LDnJW0j-CIWujqL8TQBIQIZy67vMTzmHv-QDh9sU3LqzFEfb~TvoKDmLQEJUNU4MPb83lDEc4IFiHBKSNXHLTRk1qrs-DvBq1W3dA-TO~kzJME~eGewFi0eixU2FD6bjmgctkJjOUiCGODIHW4ujtEqkcXef-iivi5Jd6n7UmxdZBZafoi4Rri8T7vlZOcJD4w9HmijGlSSeVRNTqcia0B56TwT8UFL90DrUFBEQqEixw__&Key-Pair-Id=DLVR"
      }
    },
    "download_hls": {
      "": {
        "hardsub_locale": "",
        "url": "https://dl.v.vrv.co/evs/fc07db519d356c05eef0f0cc1266c36c/assets/d5etm5dntkui9i2_,3339765.mp4,.urlset/master.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvZmMwN2RiNTE5ZDM1NmMwNWVlZjBmMGNjMTI2NmMzNmMvYXNzZXRzL2Q1ZXRtNWRudGt1aTlpMl8sMzMzOTc2NS5tcDQsLnVybHNldC9tYXN0ZXIubTN1OCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTUyNzI5MTgwMX19fV19&Signature=dcHBZu7qzFHXoHY0nYQc4NO1Fi4lZXzZEBMsA0RURxAbAd8aI2C8OiI-KNZRFG2gTPquS~rU7Z6pUZsVOwav8EF5SZCFpfRfG1v71Sl~WuZSeXhpNpWfARY~Xgs4LMogJLNTia4z0yenJC15TgC3WCMVGxjDNZQtu5~mTo3jgF1Q2cS0VaNSEI3BKbvspL2dPawpaetzpGwasM95xKcXI3AeRqN~5e29AcKKkR25g9B~os5iPua2oJ61s2ddkMQwy2OTLm-HmP5fjluBkKgYByAK3CezqSe9Xhtd17fs7YilyYV5zfldW~EbB-SSi9mltgK8EgbFKYXbhslqQOgcAw__&Key-Pair-Id=DLVR"
      }
    },
    "multitrack_adaptive_hls_v2": {
      "": {
        "hardsub_locale": "",
        "url": "https://dl.v.vrv.co/evs/fc07db519d356c05eef0f0cc1266c36c/assets/d5etm5dntkui9i2_,3339771.mp4,3339769.mp4,3339765.mp4,3339767.mp4,.urlset/master.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9kbC52LnZydi5jby9ldnMvZmMwN2RiNTE5ZDM1NmMwNWVlZjBmMGNjMTI2NmMzNmMvYXNzZXRzL2Q1ZXRtNWRudGt1aTlpMl8sMzMzOTc3MS5tcDQsMzMzOTc2OS5tcDQsMzMzOTc2NS5tcDQsMzMzOTc2Ny5tcDQsLnVybHNldC9tYXN0ZXIubTN1OCIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTUyNzI5MTgwMX19fV19&Signature=UgVRYPsi2fC4EkdLFMK8nW5Rn-bN1E-lsjYmjXoK~lgO0s0EzWHDDxMx51wjcz4ysQiVU8SIfxSFLtJ7sPwXvFnOJGyb~vtOxf7gyeT2-LDnJW0j-CIWujqL8TQBIQIZy67vMTzmHv-QDh9sU3LqzFEfb~TvoKDmLQEJUNU4MPb83lDEc4IFiHBKSNXHLTRk1qrs-DvBq1W3dA-TO~kzJME~eGewFi0eixU2FD6bjmgctkJjOUiCGODIHW4ujtEqkcXef-iivi5Jd6n7UmxdZBZafoi4Rri8T7vlZOcJD4w9HmijGlSSeVRNTqcia0B56TwT8UFL90DrUFBEQqEixw__&Key-Pair-Id=DLVR"
      }
    }
  }
}

So the question is how do I find GY5V1GEPY in order to build that url? I have the cookies for my logged in self.

@majorcyto
Copy link

@majorcyto majorcyto commented Jun 25, 2018

Hi, has there been any progress on this?

@codecnotsupported
Copy link

@codecnotsupported codecnotsupported commented Jun 26, 2018

I don't think so.

@majorcyto
Copy link

@majorcyto majorcyto commented Aug 18, 2018

If someone donates a premium account is a dev from youtube-dl willing to work on this issue?

@CobaltSpace
Copy link

@CobaltSpace CobaltSpace commented Aug 27, 2018

The free account still grants access to R/MA content, so that content could be used to figure it out.

@dawnerd
Copy link

@dawnerd dawnerd commented Aug 29, 2018

Using 'Flash Video Downloader' to get the stream url and ffmpeg to download ffmpeg -i <url> -c copy -bsf:a aac_adtstoasc output.mp4 it works.

Looks like the download_hls url from the streams json file works too.

@hadees I think you were close. That ID can be found in the episodes endpoint (there's a stream object that points to the stream json) which can be built using the episode id from the url.

Not sure how it would work with one-off files like movies but it's a start.

@dawnerd
Copy link

@dawnerd dawnerd commented Aug 30, 2018

Playing around with it, definitely an auth issue. We might be able to get around calling the cms_resource route by just building the resource urls ourself by using the url signature from: window.__INITIAL_STATE__.index.endpoints.discIndex.href

I feel like Im close, can hit the generated url in curl and get data, but using _download_json gives me a 403.

Anyone else wanna jump in?

@shinji257
Copy link

@shinji257 shinji257 commented Sep 13, 2018

I can't really do this (or even provide an account -- not sure I want to supply my normal credentials) however I do want to add this as it may be relevant.

I have a VRV account linked to CrunchyRoll. I'm noticing that if I use an authenticated account (cookies method) that is currently using the HTML5 player to download a CrunchyRoll url that it will retrieve from the VRV servers. It might help someone checking it out.

@albino1
Copy link

@albino1 albino1 commented Sep 14, 2018

It has a 30 Day Free Trial. I would think this could be used to add support.

@ahmedtds
Copy link

@ahmedtds ahmedtds commented Sep 21, 2018

If someone donates a premium account is a dev from youtube-dl willing to work on this issue?

@cclloyd
Copy link

@cclloyd cclloyd commented Oct 7, 2018

I'm willing to donate a premium account for 2 months to help fix this issue and add login support for VRV.

@LJMendelson
Copy link

@LJMendelson LJMendelson commented Oct 8, 2018

The odd thing is that this isn't a problem with all VRV.co content. I watched all of Cells at Work! and The Ancient Magus' Bride appears to be fine too, just to name a few. The quality difference with Madvr and a .3dlut vs viewing in any web browser make me love this extension, so the hit and miss nature kind of sucks. For bandwidth savings, it makes me wonder if VRV actively encrypts high-volume titles knowing that extensions like this exist.

@cclloyd
Copy link

@cclloyd cclloyd commented Oct 20, 2018

If this can get fixed soon by anyone let me know. Funimation will be pulling their content from VRV (including Funimation owned Crunchyroll content), so we need this working in time to download those series before they get removed from VRV.

@binn
Copy link

@binn binn commented Dec 13, 2018

Anyone adding support for this?

@RIpnPip
Copy link

@RIpnPip RIpnPip commented Jan 19, 2019

I can Provide a VPN for free if you guys are willing to fix the issue , and an account too!

I failed to correctly make a post but this is still an ongoing issue.

RIpnPip referenced this issue Jan 19, 2019
@shinji257
Copy link

@shinji257 shinji257 commented Jan 22, 2019

Currently getting "ERROR: Request signature mismatch." regardless if I am trying to pull something authenticated or not. It doesn't seem to matter if the video needs authentication or not to stream.

image

Checked on the latest git push but I might be jumping the gun here too.

remitamine added a commit that referenced this issue Jan 22, 2019
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jan 22, 2019

@shinji257 503b604 should fix the problem with python 2.x.

@shinji257
Copy link

@shinji257 shinji257 commented Jan 22, 2019

I should have known it was a Python 2.7 issue. 🐱

That fix took care of it. Thank you for your efforts. 😺

@Stzam
Copy link

@Stzam Stzam commented Feb 25, 2020

Hi can some help me im trying to download from vrv is my command wrong or does it not work anymore i have the latest version of Youtube-dl but this command is not working
youtube-dl -u -p pasword https://vrv.co/watch/GYW42W906/The-Fruit-of-Grisaia:An-Ordinary-School-Life

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.