diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-12-12 20:37:28 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-12-12 20:37:28 +0100 |
commit | 6a1b20de2a562f76501ae96721957f43804d8e61 (patch) | |
tree | c9e60ac02758085c57e6b237b686777a5c8eb8e4 /youtube_dl/extractor | |
parent | 3c864e930dd7533b404d03872d078e038883ac3d (diff) |
[urort] Modernize
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/urort.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/urort.py b/youtube_dl/extractor/urort.py index 5d06fcc9e..468aa7600 100644 --- 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']), |