aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/smotri.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-14 14:25:04 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-14 14:25:04 +0600
commitd800609c62703e4e6edd2891a8432306462e4db3 (patch)
treeb38bc875bcaeac5a82d7e622b5188112cecd4bb6 /youtube_dl/extractor/smotri.py
parentc78c9cd10dfbb4fc3fd49df4f9c98e9c94c9aae9 (diff)
downloadyoutube-dl-d800609c62703e4e6edd2891a8432306462e4db3.tar.xz
[refactor] Do not specify redundant None as second argument in dict.get()
Diffstat (limited to 'youtube_dl/extractor/smotri.py')
-rw-r--r--youtube_dl/extractor/smotri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/smotri.py b/youtube_dl/extractor/smotri.py
index 30210c8a3..015ef75f3 100644
--- a/youtube_dl/extractor/smotri.py
+++ b/youtube_dl/extractor/smotri.py
@@ -170,7 +170,7 @@ class SmotriIE(InfoExtractor):
'getvideoinfo': '1',
}
- video_password = self._downloader.params.get('videopassword', None)
+ video_password = self._downloader.params.get('videopassword')
if video_password:
video_form['pass'] = hashlib.md5(video_password.encode('utf-8')).hexdigest()
@@ -356,7 +356,7 @@ class SmotriBroadcastIE(InfoExtractor):
url = 'http://smotri.com/broadcast/view/url/?ticket=%s' % ticket
- broadcast_password = self._downloader.params.get('videopassword', None)
+ broadcast_password = self._downloader.params.get('videopassword')
if broadcast_password:
url += '&pass=%s' % hashlib.md5(broadcast_password.encode('utf-8')).hexdigest()