]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/normalboots.py
2 from __future__
import unicode_literals
4 from . common
import InfoExtractor
5 from . jwplatform
import JWPlatformIE
12 class NormalbootsIE ( InfoExtractor
):
13 _VALID_URL
= r
'https?://(?:www\.)?normalboots\.com/video/(?P<id>[0-9a-z-]*)/?$'
15 'url' : 'http://normalboots.com/video/home-alone-games-jontron/' ,
17 'id' : 'home-alone-games-jontron' ,
19 'title' : 'Home Alone Games - JonTron - NormalBoots' ,
20 'description' : 'Jon is late for Christmas. Typical. Thanks to: Paul Ritchey for Co-Writing/Filming: http://www.youtube.com/user/ContinueShow Michael Azzi for Christmas Intro Animation: http://michafrar.tumblr.com/ Jerrod Waters for Christmas Intro Music: http://www.youtube.com/user/xXJerryTerryXx Casey Ormond for ‘Tense Battle Theme’: \xa0 http://www.youtube.com/Kiamet/' ,
21 'uploader' : 'JonTron' ,
22 'upload_date' : '20140125' ,
26 'skip_download' : True ,
28 'add_ie' : [ 'JWPlatform' ],
31 def _real_extract ( self
, url
):
32 video_id
= self
._ match
_ id
( url
)
33 webpage
= self
._ download
_ webpage
( url
, video_id
)
35 video_uploader
= self
._ html
_ search
_ regex
(
36 r
'Posted\sby\s<a\shref="[A-Za-z0-9/]*">(?P<uploader>[A-Za-z]*)\s</a>' ,
37 webpage
, 'uploader' , fatal
= False )
38 video_upload_date
= unified_strdate ( self
._ html
_ search
_ regex
(
39 r
'<span style="text-transform:uppercase; font-size:inherit;">[A-Za-z]+, (?P<date>.*)</span>' ,
40 webpage
, 'date' , fatal
= False ))
42 jwplatform_url
= JWPlatformIE
._ extract
_u rl
( webpage
)
45 '_type' : 'url_transparent' ,
47 'url' : jwplatform_url
,
48 'ie_key' : JWPlatformIE
. ie_key (),
49 'title' : self
._ og
_ search
_ title
( webpage
),
50 'description' : self
._ og
_ search
_ description
( webpage
),
51 'thumbnail' : self
._ og
_ search
_ thumbnail
( webpage
),
52 'uploader' : video_uploader
,
53 'upload_date' : video_upload_date
,