]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/cliprs.py
2 from __future__
import unicode_literals
4 from .onet
import OnetBaseIE
7 class ClipRsIE(OnetBaseIE
):
8 _VALID_URL
= r
'https?://(?:www\.)?clip\.rs/(?P<id>[^/]+)/\d+'
10 'url': 'http://www.clip.rs/premijera-frajle-predstavljaju-novi-spot-za-pesmu-moli-me-moli/3732',
11 'md5': 'c412d57815ba07b56f9edc7b5d6a14e5',
13 'id': '1488842.1399140381',
15 'title': 'PREMIJERA Frajle predstavljaju novi spot za pesmu Moli me, moli',
16 'description': 'md5:56ce2c3b4ab31c5a2e0b17cb9a453026',
18 'timestamp': 1459850243,
19 'upload_date': '20160405',
23 def _real_extract(self
, url
):
24 display_id
= self
._match
_id
(url
)
26 webpage
= self
._download
_webpage
(url
, display_id
)
28 mvp_id
= self
._search
_mvp
_id
(webpage
)
30 info_dict
= self
._extract
_from
_id
(mvp_id
, webpage
)
31 info_dict
['display_id'] = display_id