[soundcloud] inline ie argument

This commit is contained in:
Cory Hall 2019-02-01 17:33:21 -05:00
parent e907e2f8b4
commit 852f50387a

View File

@ -406,14 +406,10 @@ class SoundcloudPagedPlaylistBaseIE(SoundcloudPlaylistBaseIE):
(e, e.get('track'), e.get('playlist')))
if permalink_url:
extractor = None
if SoundcloudIE.suitable(permalink_url):
# if entry has track data, attach extractor key
extractor = SoundcloudIE.ie_key()
entry_data = self.url_result(
permalink_url,
ie=extractor, video_id=entry_id, video_title=entry_title)
ie=SoundcloudIE.ie_key() if SoundcloudIE.suitable(permalink_url) else None,
video_id=entry_id, video_title=entry_title)
entries.append(entry_data)