projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c89bbd
)
[urort] Add date
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 27 Mar 2014 01:56:23 +0000
(
02:56
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 27 Mar 2014 01:56:23 +0000
(
02:56
+0100)
youtube_dl/extractor/urort.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/urort.py
b/youtube_dl/extractor/urort.py
index ad48074911e3a5a46a6be8a2327d2249b3277aa8..5d06fcc9e65690ae7f9a474e274e7f8c14ce4a73 100644
(file)
--- 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,
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',
'like_count': int,
'uploader': 'Gerilja',
'uploader_id': 'Gerilja',
+ 'upload_date': '20100323',
},
'params': {
'matchtitle': '^The Bomb$', # To test, we want just one video
},
'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)
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']),
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'],
'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 {
} for s in songs]
return {