1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-27 16:39:59 +08:00

[WashingtonPost] Update extractor

This commit is contained in:
thecodingbagel
2018-07-20 22:49:10 -04:00
Unverified
parent cdd1ce92c4
commit 298556d2aa
+3 -3
View File
@@ -6,7 +6,6 @@ import re
from .common import InfoExtractor
from ..utils import (
int_or_none,
strip_jsonp,
)
@@ -35,9 +34,10 @@ class WashingtonPostIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
video_data = self._download_json(
webpage = self._download_webpage(
'http://www.washingtonpost.com/posttv/c/videojson/%s?resType=jsonp' % video_id,
video_id, transform_source=strip_jsonp)[0]['contentConfig']
video_id)
video_data = self._parse_json(webpage, video_id, transform_source=lambda s: s[1:len(s) - 2])[0]['contentConfig']
title = video_data['title']
urls = []