[nbc] flake8 for PEP 8

This commit is contained in:
John Hawkinson 2017-03-26 12:07:50 -04:00
parent b54bb7742b
commit 5607dac41c

View File

@ -119,13 +119,13 @@ class NBCIE(AdobePassIE):
# it load the page with ?snl=1 and then with ?snl=0. # it load the page with ?snl=1 and then with ?snl=0.
# Emulate that, but shortcircuit straight to ?snl=0. # Emulate that, but shortcircuit straight to ?snl=0.
urlmeta = self._html_search_meta( urlmeta = self._html_search_meta(
['al:ios:url','al:android:url', 'twitter:app:url:googleplay'], ['al:ios:url', 'al:android:url', 'twitter:app:url:googleplay'],
webpage) webpage)
if urlmeta and urlmeta.startswith('nbcsnl://') and \ if (urlmeta and urlmeta.startswith('nbcsnl://') and
compat_parse_qs(parsed_url.query).get('snl') != 0: compat_parse_qs(parsed_url.query).get('snl') != 0):
url = update_url_query(url, { 'snl': 0}) url = update_url_query(url, {'snl': 0})
parsed_url = compat_urllib_parse_urlparse(url) parsed_url = compat_urllib_parse_urlparse(url)
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
video_data = None video_data = None
preload = self._search_regex( preload = self._search_regex(