- error_code = config.get('error', 0)
- if error_code is not 0:
- error_desc = 'Server reported error %i' % error_code
- if isinstance(data, (compat_str, compat_basestring)):
- error_desc += ': ' + data
- raise ExtractorError(error_desc, expected=True)
+ sign_content = ''.join((room_id, did, self._API_KEY, tt))
+ sign = hashlib.md5((sign_content).encode('utf-8')).hexdigest()