aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-06 23:27:38 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-06 23:27:38 +0600
commitae4ddf9efae816f4d52fc584c93e4f0e3c79c410 (patch)
tree6447486e08f61ae157ec966b11c0162bc46acae2 /youtube_dl
parentea8ed40b2fb70fc2f01aba475128821078873d46 (diff)
[lynda] PEP 8
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/lynda.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index c8a16842e..9a207b2cd 100644
--- a/youtube_dl/extractor/lynda.py
+++ b/youtube_dl/extractor/lynda.py
@@ -227,9 +227,8 @@ class LyndaCourseIE(LyndaBaseIE):
if video.get('HasAccess') is False:
unaccessible_videos += 1
continue
- video_id = video.get('ID')
- if video_id:
- videos.append(video_id)
+ if video.get('ID'):
+ videos.append(video['ID'])
if unaccessible_videos > 0:
self._downloader.report_warning(