mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 09:26:14 -05:00
[urort] Modernize
This commit is contained in:
parent
3c864e930d
commit
6a1b20de2a
@ -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']),
|
||||
|
Loading…
Reference in New Issue
Block a user