From 8c5fafe29f6909d69de9ee735051cc76df9f0ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Fri, 9 Feb 2018 02:14:49 +0700 Subject: [PATCH] [dvtv] Simplify (closes #15442) --- youtube_dl/extractor/dvtv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/dvtv.py b/youtube_dl/extractor/dvtv.py index 5decd99510..21f1d813fe 100644 --- a/youtube_dl/extractor/dvtv.py +++ b/youtube_dl/extractor/dvtv.py @@ -104,8 +104,8 @@ class DVTVIE(InfoExtractor): def _parse_video_metadata(self, js, video_id, live_js=None): data = self._parse_json(js, video_id, transform_source=js_to_json) if live_js: - data.update( - self._parse_json(live_js, video_id, transform_source=js_to_json)) + data.update(self._parse_json( + live_js, video_id, transform_source=js_to_json)) title = unescapeHTML(data['title']) @@ -156,12 +156,12 @@ class DVTVIE(InfoExtractor): # live content live_item = self._search_regex( r'(?s)embedData[0-9a-f]{32}\.asset\.liveStarter\s*=\s*(\{.+?\});', - webpage, 'video', default=None, fatal=False) + webpage, 'video', default=None) # single video item = self._search_regex( r'(?s)embedData[0-9a-f]{32}\[["\']asset["\']\]\s*=\s*(\{.+?\});', - webpage, 'video', default=None, fatal=False) + webpage, 'video', default=None) if item: return self._parse_video_metadata(item, video_id, live_item)