]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/videofyme.py
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
10 class VideofyMeIE(InfoExtractor
):
11 _VALID_URL
= r
'https?://(?:www\.videofy\.me/.+?|p\.videofy\.me/v)/(?P<id>\d+)(&|#|$)'
12 IE_NAME
= 'videofy.me'
15 'url': 'http://www.videofy.me/thisisvideofyme/1100701',
16 'md5': 'c77d700bdc16ae2e9f3c26019bd96143',
20 'title': 'This is VideofyMe',
22 'upload_date': '20130326',
23 'timestamp': 1364288959,
24 'uploader': 'VideofyMe',
25 'uploader_id': 'thisisvideofyme',
32 def _real_extract(self
, url
):
33 video_id
= self
._match
_id
(url
)
35 config
= self
._download
_json
('http://vf-player-info-loader.herokuapp.com/%s.json' % video_id
, video_id
)['videoinfo']
37 video
= config
.get('video')
38 blog
= config
.get('blog', {})
42 'title': video
['title'],
43 'url': video
['sources']['source']['url'],
44 'thumbnail': video
.get('thumb'),
45 'description': video
.get('description'),
46 'timestamp': parse_iso8601(video
.get('date')),
47 'uploader': blog
.get('name'),
48 'uploader_id': blog
.get('identifier'),
49 'view_count': int_or_none(self
._search
_regex
(r
'([0-9]+)', video
.get('views'), 'view count', fatal
=False)),
50 'likes': int_or_none(video
.get('likes')),
51 'comment_count': int_or_none(video
.get('nrOfComments')),