projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c864e9
)
[urort] Modernize
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 12 Dec 2014 19:37:28 +0000
(20:37 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 12 Dec 2014 19:37:28 +0000
(20:37 +0100)
youtube_dl/extractor/urort.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/urort.py
b/youtube_dl/extractor/urort.py
index 5d06fcc9e65690ae7f9a474e274e7f8c14ce4a73..468aa76002c5370fef02a8e2f40d1f99296abf26 100644
(file)
--- a/
youtube_dl/extractor/urort.py
+++ b/
youtube_dl/extractor/urort.py
@@
-33,13
+33,11
@@
class UrortIE(InfoExtractor):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- playlist_id = mobj.group('id')
+ playlist_id = self._match_id(url)
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']),