mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 22:46:05 +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'
|
||||
})
|
||||
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user