def __init__(self, sources, parent):
    super(InternUdemyLectureStream, self).__init__(parent)
    self._mediatype = sources.get('type')
    self._extension = sources.get('extension')
    self._token = parent._access_token
    height = sources.get('height', '0')
    width = sources.get('width', '0')
    self._resolution = ('%sx%s' % (width, height))
    self._dimension = (width, height)
    self._quality = int(height)
    self._is_hls = ('hls' in self._mediatype)
    self._url = sources.get('download_url')
def __init__(self, sources, parent):
    super(InternUdemyLectureStream, self).__init__(parent)
    self._mediatype = sources.get('type')
    self._extension = sources.get('extension')
    self._token = parent._access_token
    height = sources.get('height', '0')
    width = sources.get('width', '0')
    self._resolution = ('%sx%s' % (width, height))
    self._dimension = (width, height)
    self._quality = int(height)
    self._is_hls = ('hls' in self._mediatype)
    self._url = sources.get('download_url')