mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-04 02:22:52 +08:00
[nhl] Fix flake8 issues
This commit is contained in:
parent
379cf94726
commit
d044355fe0
@ -439,7 +439,6 @@ class NHLTVIE(InfoExtractor):
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
def _create_rogers_login_request(self, username, password, access_token):
|
def _create_rogers_login_request(self, username, password, access_token):
|
||||||
login_data = {
|
login_data = {
|
||||||
'rogerCredentials': {
|
'rogerCredentials': {
|
||||||
@ -489,14 +488,13 @@ class NHLTVIE(InfoExtractor):
|
|||||||
if epg_item.get("title") != "NHLTV":
|
if epg_item.get("title") != "NHLTV":
|
||||||
continue
|
continue
|
||||||
for item in epg_item.get('items', []):
|
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')
|
feed_type = item.get('mediaFeedType')
|
||||||
video_id = item.get('mediaPlaybackId')
|
video_id = item.get('mediaPlaybackId')
|
||||||
timestamp = parse_iso8601(media_node.get('milestones').get('streamStart'))
|
timestamp = parse_iso8601(media_node.get('milestones').get('streamStart'))
|
||||||
title = "%s: %s @ %s (%s feed)" % (date, away, home, feed_type)
|
title = "%s: %s @ %s (%s feed)" % (date, away, home, feed_type)
|
||||||
return (video_id, title, timestamp)
|
return (video_id, title, timestamp)
|
||||||
|
|
||||||
|
|
||||||
def get_60fps_playlist(self, url):
|
def get_60fps_playlist(self, url):
|
||||||
"""Returns a modified url that adds a 60 fps broadcast"""
|
"""Returns a modified url that adds a 60 fps broadcast"""
|
||||||
return re.sub('_wired_web', '_wired60', url)
|
return re.sub('_wired_web', '_wired60', url)
|
||||||
|
Loading…
Reference in New Issue
Block a user