pep8 and minor beautification all around

This commit is contained in:
Philipp Hagemeister 2014-12-04 08:27:40 +01:00
parent 5f5e993dc6
commit 810fb84d5e
5 changed files with 17 additions and 15 deletions

View file

@ -97,11 +97,8 @@ class UdemyIE(InfoExtractor):
if 'returnUrl' not in response:
raise ExtractorError('Unable to log in')
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
lecture_id = mobj.group('id')
lecture_id = self._match_id(url)
lecture = self._download_json(
'https://www.udemy.com/api-1.1/lectures/%s' % lecture_id,