Refactor code to use url_result
This commit is contained in:
parent
8437f5089f
commit
d226c560a6
9 changed files with 13 additions and 43 deletions
|
@ -62,7 +62,7 @@ class AudiomackIE(InfoExtractor):
|
|||
# Audiomack wraps a lot of soundcloud tracks in their branded wrapper
|
||||
# if so, pass the work off to the soundcloud extractor
|
||||
if SoundcloudIE.suitable(api_response['url']):
|
||||
return {'_type': 'url', 'url': api_response['url'], 'ie_key': 'Soundcloud'}
|
||||
return self.url_result(api_response['url'], SoundcloudIE.ie_key())
|
||||
|
||||
return {
|
||||
'id': compat_str(api_response.get('id', album_url_tag)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue