mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-11 05:09:08 +01:00
[vrv] add basic support for individual movie links(#19229)
This commit is contained in:
parent
4810655cd6
commit
9f182c23ba
@ -150,9 +150,10 @@ class VRVIE(VRVBaseIE):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
episode_path = self._get_cms_resource(
|
object_data = self._call_cms(self._get_cms_resource(
|
||||||
'cms:/episodes/' + video_id, video_id)
|
'cms:/objects/' + video_id, video_id), video_id, 'object')['items'][0]
|
||||||
video_data = self._call_cms(episode_path, video_id, 'video')
|
resource_path = object_data['__links__']['resource']['href']
|
||||||
|
video_data = self._call_cms(resource_path, video_id, 'video')
|
||||||
title = video_data['title']
|
title = video_data['title']
|
||||||
|
|
||||||
streams_path = video_data['__links__'].get('streams', {}).get('href')
|
streams_path = video_data['__links__'].get('streams', {}).get('href')
|
||||||
|
Loading…
Reference in New Issue
Block a user