1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-16 14:36:47 +00:00

Use _sort_formats util

This commit is contained in:
Bart Broere 2024-10-20 12:11:30 +02:00
parent c3026dd70c
commit 7f1c09bea1

View File

@ -231,9 +231,7 @@ class ONIE(NPOIE):
for result in results:
formats.extend(self._extract_formats_by_product_id(result, video_id))
if not formats:
raise ExtractorError('Could not find a POMS product id in the provided URL, '
'perhaps because all stream URLs are DRM protected.')
self._sort_formats(formats)
return {
'id': video_id,