Update soundcloud.py

bug: UnboundLocalError: local variable 'video_id' referenced before assignment

removed unnecessary variable binding 'video_id' in _extract_info_dict
This commit is contained in:
agum onkey 2013-08-23 00:51:33 +02:00
parent 02bcf0d389
commit 5267a8d52e

View File

@ -54,8 +54,7 @@ class SoundcloudIE(InfoExtractor):
return 'http://api.soundcloud.com/resolve.json?url=' + url + '&client_id=' + cls._CLIENT_ID
def _extract_info_dict(self, info, full_title=None):
video_id = info['id']
name = full_title or video_id
name = full_title or info['id']
self.report_extraction(name)
thumbnail = info['artwork_url']