From d044355fe0e27500b294905b62b317b349f1ab29 Mon Sep 17 00:00:00 2001 From: Joshua McKinney Date: Wed, 25 Jan 2017 16:41:21 -0600 Subject: [PATCH] [nhl] Fix flake8 issues --- youtube_dl/extractor/nhl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/youtube_dl/extractor/nhl.py b/youtube_dl/extractor/nhl.py index 46c699f07..e949c4276 100644 --- a/youtube_dl/extractor/nhl.py +++ b/youtube_dl/extractor/nhl.py @@ -439,7 +439,6 @@ class NHLTVIE(InfoExtractor): 'Content-Type': 'application/json' }) - def _create_rogers_login_request(self, username, password, access_token): login_data = { 'rogerCredentials': { @@ -489,14 +488,13 @@ class NHLTVIE(InfoExtractor): if epg_item.get("title") != "NHLTV": continue for item in epg_item.get('items', []): - if item.get('mediaPlaybackId') == video_id or video_id == None: + if item.get('mediaPlaybackId') == video_id or video_id is None: feed_type = item.get('mediaFeedType') video_id = item.get('mediaPlaybackId') timestamp = parse_iso8601(media_node.get('milestones').get('streamStart')) title = "%s: %s @ %s (%s feed)" % (date, away, home, feed_type) return (video_id, title, timestamp) - def get_60fps_playlist(self, url): """Returns a modified url that adds a 60 fps broadcast""" return re.sub('_wired_web', '_wired60', url)