aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/beatportpro.py
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2015-03-12 16:42:55 -0400
committerDevin J. Pohly <djpohly@gmail.com>2015-03-12 16:42:55 -0400
commit65c5e044c7ab6d3140d30c98abda07785f2974c6 (patch)
tree55fcbbcaab38fbe2a083bcaf7c9c64416065443e /youtube_dl/extractor/beatportpro.py
parent11984c7467184100ca4a61ae939a8c260480f42c (diff)
fix python2
Diffstat (limited to 'youtube_dl/extractor/beatportpro.py')
-rw-r--r--youtube_dl/extractor/beatportpro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/beatportpro.py b/youtube_dl/extractor/beatportpro.py
index 21048b732..c3c70fb33 100644
--- a/youtube_dl/extractor/beatportpro.py
+++ b/youtube_dl/extractor/beatportpro.py
@@ -48,7 +48,7 @@ class BeatportProIE(InfoExtractor):
playables = json.loads(playables)
# Find first track with matching ID (always the first one listed?)
- track = next(filter(lambda t: t['id'] == int(track_id), playables['tracks']))
+ track = next(t for t in playables['tracks'] if t['id'] == int(track_id))
# Construct title from artist(s), track name, and mix name
title = ', '.join((a['name'] for a in track['artists'])) + ' - ' + track['name']