[soundcloud] Use suitable
method to check entry integrity
This commit is contained in:
parent
3dd3463e2d
commit
e907e2f8b4
@ -402,14 +402,15 @@ class SoundcloudPagedPlaylistBaseIE(SoundcloudPlaylistBaseIE):
|
|||||||
return permalink_url, entry_id, title
|
return permalink_url, entry_id, title
|
||||||
|
|
||||||
for e in collection:
|
for e in collection:
|
||||||
|
permalink_url, entry_id, entry_title = resolve_permalink_url(
|
||||||
|
(e, e.get('track'), e.get('playlist')))
|
||||||
|
|
||||||
|
if permalink_url:
|
||||||
extractor = None
|
extractor = None
|
||||||
if isinstance(e.get('track'), dict):
|
if SoundcloudIE.suitable(permalink_url):
|
||||||
# if entry has track data, attach extractor key
|
# if entry has track data, attach extractor key
|
||||||
extractor = SoundcloudIE.ie_key()
|
extractor = SoundcloudIE.ie_key()
|
||||||
|
|
||||||
permalink_url, entry_id, entry_title = resolve_permalink_url(
|
|
||||||
(e, e.get('track'), e.get('playlist')))
|
|
||||||
if permalink_url:
|
|
||||||
entry_data = self.url_result(
|
entry_data = self.url_result(
|
||||||
permalink_url,
|
permalink_url,
|
||||||
ie=extractor, video_id=entry_id, video_title=entry_title)
|
ie=extractor, video_id=entry_id, video_title=entry_title)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user