diff options
author | Remita Amine <remitamine@gmail.com> | 2019-04-06 09:22:25 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2019-04-06 09:22:25 +0100 |
commit | 9f182c23ba74f76ff716940b2a0568f428d6c2b9 (patch) | |
tree | 4421fbf84d3a3df6278e6cc32dddd6eae7aab214 /youtube_dl/extractor | |
parent | 4810655cd65f9bdde1ad240adf7334828243fb0a (diff) |
[vrv] add basic support for individual movie links(#19229)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/vrv.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vrv.py b/youtube_dl/extractor/vrv.py index 6c060ae76..c11da97de 100644 --- a/youtube_dl/extractor/vrv.py +++ b/youtube_dl/extractor/vrv.py @@ -150,9 +150,10 @@ class VRVIE(VRVBaseIE): def _real_extract(self, url): video_id = self._match_id(url) - episode_path = self._get_cms_resource( - 'cms:/episodes/' + video_id, video_id) - video_data = self._call_cms(episode_path, video_id, 'video') + object_data = self._call_cms(self._get_cms_resource( + 'cms:/objects/' + video_id, video_id), video_id, 'object')['items'][0] + resource_path = object_data['__links__']['resource']['href'] + video_data = self._call_cms(resource_path, video_id, 'video') title = video_data['title'] streams_path = video_data['__links__'].get('streams', {}).get('href') |