1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-05 08:03:43 +08:00

Remove redundant empty dict fallback for current_key.

This commit is contained in:
Scott Leggett
2016-09-05 23:51:56 +10:00
Unverified
parent 388435aea4
commit f4f25d45b0
+2 -2
View File
@@ -45,8 +45,8 @@ class NineNowIE(InfoExtractor):
r'window\.__data\s*=\s*({.*?});', webpage,
'page data'), display_id)
current_key = (
page_data.get('episode', {}).get('currentEpisodeKey', {}) or
page_data.get('clip', {}).get('currentClipKey', {})
page_data.get('episode', {}).get('currentEpisodeKey') or
page_data.get('clip', {}).get('currentClipKey')
)
common_data = (
page_data.get('episode', {}).get('episodeCache', {}).get(current_key, {}).get('episode') or