]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/nerdcubed.py
efc903afa93465473621ef89ccc81142320b90ee
2 from __future__
import unicode_literals
6 from .common
import InfoExtractor
9 class NerdCubedFeedIE(InfoExtractor
):
10 _VALID_URL
= r
'https?://(?:www\.)?nerdcubed\.co\.uk/feed\.json'
12 'url': 'http://www.nerdcubed.co.uk/feed.json',
14 'title': 'nerdcubed.co.uk feed',
16 'playlist_mincount': 1300,
19 def _real_extract(self
, url
):
20 feed
= self
._download
_json
(url
, url
, "Downloading NerdCubed JSON feed")
24 'title': feed_entry
['title'],
25 'uploader': feed_entry
['source']['name'] if feed_entry
['source'] else None,
26 'upload_date': datetime
.datetime
.strptime(feed_entry
['date'], '%Y-%m-%d').strftime('%Y%m%d'),
27 'url': "http://www.youtube.com/watch?v=" + feed_entry
['youtube_id'],
28 } for feed_entry
in feed
]
32 'title': 'nerdcubed.co.uk feed',
33 'id': 'nerdcubed-feed',