mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-01 14:37:57 +00:00
Commit two suggestions from the PR
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
179c8b06b6
commit
ad6ee6fdd2
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ class NPOIE(InfoExtractor):
|
||||||
},
|
},
|
||||||
fatal=False,
|
fatal=False,
|
||||||
)
|
)
|
||||||
stream_url = stream_link.get('stream', {}).get('streamURL')
|
stream_url = traverse_obj(stream_link, ('stream', 'streamURL'))
|
||||||
formats.extend(self._extract_mpd_formats(stream_url, slug, mpd_id='dash', fatal=False))
|
formats.extend(self._extract_mpd_formats(stream_url, slug, mpd_id='dash', fatal=False))
|
||||||
return formats
|
return formats
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ class ONIE(NPOIE):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = url.rstrip('/').split('/')[-1]
|
video_id = url.rstrip('/').split('/')[-1]
|
||||||
page, _ = self._download_webpage_handle(url, video_id)
|
page = self._download_webpage(url, video_id)
|
||||||
results = re.findall("page: '(.+)'", page)
|
results = re.findall("page: '(.+)'", page)
|
||||||
formats = []
|
formats = []
|
||||||
for result in results:
|
for result in results:
|
||||||
|
|
Loading…
Reference in a new issue