diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-14 14:25:04 +0600 |
commit | d800609c62703e4e6edd2891a8432306462e4db3 (patch) | |
tree | b38bc875bcaeac5a82d7e622b5188112cecd4bb6 /youtube_dl/downloader/rtmp.py | |
parent | c78c9cd10dfbb4fc3fd49df4f9c98e9c94c9aae9 (diff) |
[refactor] Do not specify redundant None as second argument in dict.get()
Diffstat (limited to 'youtube_dl/downloader/rtmp.py')
-rw-r--r-- | youtube_dl/downloader/rtmp.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 14d56db47..9de6e70bb 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -94,15 +94,15 @@ class RtmpFD(FileDownloader): return proc.returncode url = info_dict['url'] - player_url = info_dict.get('player_url', None) - page_url = info_dict.get('page_url', None) - app = info_dict.get('app', None) - play_path = info_dict.get('play_path', None) - tc_url = info_dict.get('tc_url', None) - flash_version = info_dict.get('flash_version', None) + player_url = info_dict.get('player_url') + page_url = info_dict.get('page_url') + app = info_dict.get('app') + play_path = info_dict.get('play_path') + tc_url = info_dict.get('tc_url') + flash_version = info_dict.get('flash_version') live = info_dict.get('rtmp_live', False) - conn = info_dict.get('rtmp_conn', None) - protocol = info_dict.get('rtmp_protocol', None) + conn = info_dict.get('rtmp_conn') + protocol = info_dict.get('rtmp_protocol') real_time = info_dict.get('rtmp_real_time', False) no_resume = info_dict.get('no_resume', False) continue_dl = self.params.get('continuedl', True) |