]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/godtube.py
1 from .common
import InfoExtractor
8 class GodTubeIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://(?:www\.)?godtube\.com/watch/\?v=(?P<id>[\da-zA-Z]+)'
12 'url': 'https://www.godtube.com/watch/?v=0C0CNNNU',
13 'md5': '77108c1e4ab58f48031101a1a2119789',
17 'title': 'Woman at the well.',
19 'timestamp': 1205712000,
20 'uploader': 'beverlybmusic',
21 'upload_date': '20080317',
22 'thumbnail': r
're:^https?://.*\.jpg$',
27 def _real_extract(self
, url
):
28 mobj
= self
._match
_valid
_url
(url
)
29 video_id
= mobj
.group('id')
31 config
= self
._download
_xml
(
32 'http://www.godtube.com/resource/mediaplayer/%s.xml' % video_id
.lower(),
33 video_id
, 'Downloading player config XML')
35 video_url
= config
.find('file').text
36 uploader
= config
.find('author').text
37 timestamp
= parse_iso8601(config
.find('date').text
)
38 duration
= parse_duration(config
.find('duration').text
)
39 thumbnail
= config
.find('image').text
41 media
= self
._download
_xml
(
42 'http://www.godtube.com/media/xml/?v=%s' % video_id
, video_id
, 'Downloading media XML')
44 title
= media
.find('title').text
50 'thumbnail': thumbnail
,
51 'timestamp': timestamp
,