mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
Apply suggestion from PR
This commit is contained in:
parent
41157b2b49
commit
c3026dd70c
1 changed files with 4 additions and 3 deletions
|
@ -198,9 +198,10 @@ class BNNVaraIE(NPOIE):
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
})
|
})
|
||||||
product_id = media.get('data', {}).get('player', {}).get('pomsProductId')
|
|
||||||
|
product_id = traverse_obj(media, ('data', 'player', 'pomsProductId'))
|
||||||
formats = self._extract_formats_by_product_id(product_id, video_id)
|
formats = self._download_by_product_id(product_id, video_id) if product_id else []
|
||||||
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': product_id,
|
'id': product_id,
|
||||||
|
|
Loading…
Reference in a new issue