Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Before submitting an issue make sure you have:
What is the purpose of your issue?
KeyError when using fallback method for getting stream info
On lots of VRV videos (In my experience, My Hero Academia S2 episodes 28-30), I'm getting an error when it attempts to get the stream info.
This is happening because when
media_resource['streams']doesn't exist,video_data['__links__']['streams']also won't exist. (However, videos that work normally do have the streams attribute invideo_data['__links__']if it were called, which it normally isn't.)Merely substituting the missing streams attribute in
video_datawith the URL that it would have returns a 404 for the broken episodes.So the stream links are stored somewhere else for these episodes, or are otherwise not being loaded. It is possible the episode data is broken on VRV's end, but that's doubtful.
Calling
_get_cms_resource()oncms:/videos/G6K5ZM4GY/streams(the streams resource key when viewed with inspector tools from chrome) returns the stream urlhttps://api.vrv.co/cms/v2/US/M2/-/videos/G6K5ZM4GY/streams, and that URL gives a 404 when called with_call_cms()Yet when I inspect the player with react tools, I can see that in the
jsonfield (thevideo_datavariable), there is astreamsattribute like there should be.Also, this may only be happening on premium only and mature content.