projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11984c7
)
fix python2
author
Devin J. Pohly
<djpohly@gmail.com>
Thu, 12 Mar 2015 20:42:55 +0000
(16:42 -0400)
committer
Devin J. Pohly
<djpohly@gmail.com>
Thu, 12 Mar 2015 20:42:55 +0000
(16:42 -0400)
youtube_dl/extractor/beatportpro.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/beatportpro.py
b/youtube_dl/extractor/beatportpro.py
index 21048b73263267f28da98c2e419dc341c2bcc3e5..c3c70fb33a321ff6cbab8a5774bba12a30ceb562 100644
(file)
--- 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']