Skip to content

Commit

Permalink
Commit two suggestions from the PR
Browse files Browse the repository at this point in the history
Co-authored-by: dirkf <[email protected]>
  • Loading branch information
bartbroere and dirkf authored Sep 21, 2024
1 parent 179c8b0 commit ad6ee6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/npo.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _extract_formats_by_product_id(self, product_id, slug, url=None):
},
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))
return formats

Expand Down Expand Up @@ -160,7 +160,7 @@ class ONIE(NPOIE):

def _real_extract(self, url):
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)
formats = []
for result in results:
Expand Down

0 comments on commit ad6ee6f

Please sign in to comment.