diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-03-27 02:56:23 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-03-27 02:56:23 +0100 |
commit | 0dae5083f13682da7c43ac2d8215d1147c3332b4 (patch) | |
tree | 94a9ae50dbc78506011fbdcbe1000ed84c288992 /youtube_dl/extractor | |
parent | 4c89bbd22cf24b3c275fef759fbdea3b06657c05 (diff) |
[urort] Add date
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/urort.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/urort.py b/youtube_dl/extractor/urort.py index ad4807491..5d06fcc9e 100644 --- a/youtube_dl/extractor/urort.py +++ b/youtube_dl/extractor/urort.py @@ -6,6 +6,7 @@ import re from .common import InfoExtractor from ..utils import ( compat_urllib_parse, + unified_strdate, ) @@ -24,6 +25,7 @@ class UrortIE(InfoExtractor): 'like_count': int, 'uploader': 'Gerilja', 'uploader_id': 'Gerilja', + 'upload_date': '20100323', }, 'params': { 'matchtitle': '^The Bomb$', # To test, we want just one video @@ -37,6 +39,7 @@ class UrortIE(InfoExtractor): fstr = compat_urllib_parse.quote("InternalBandUrl eq '%s'" % playlist_id) json_url = 'http://urort.p3.no/breeze/urort/TrackDtos?$filter=' + fstr songs = self._download_json(json_url, playlist_id) + print(songs[0]) entries = [{ 'id': '%d-%s' % (s['BandId'], s['$id']), @@ -47,6 +50,7 @@ class UrortIE(InfoExtractor): 'uploader': s.get('BandName', playlist_id), 'like_count': s.get('LikeCount'), 'thumbnail': 'http://urort.p3.no/cloud/images/%s' % s['Image'], + 'upload_date': unified_strdate(s.get('Released')), } for s in songs] return { |