projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4810655
)
[vrv] add basic support for individual movie links(#19229)
author
Remita Amine
<remitamine@gmail.com>
Sat, 6 Apr 2019 08:22:25 +0000
(09:22 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sat, 6 Apr 2019 08:22:25 +0000
(09:22 +0100)
youtube_dl/extractor/vrv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vrv.py
b/youtube_dl/extractor/vrv.py
index 6c060ae769cd57fefeb85e92eedc1d1f02aa6c9f..c11da97deb8e890763b27c21236f0a4218134f22 100644
(file)
--- 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)
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')
title = video_data['title']
streams_path = video_data['__links__'].get('streams', {}).get('href')