Skip to content

Commit

Permalink
[ie/CCMA] Extract 1080p DASH formats (#9130)
Browse files Browse the repository at this point in the history
Closes #5755
Authored by: seproDev
  • Loading branch information
seproDev committed Feb 3, 2024
1 parent 8e76575 commit 4253e3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yt_dlp/extractor/ccma.py
@@ -1,6 +1,7 @@
from .common import InfoExtractor
from ..utils import (
clean_html,
determine_ext,
int_or_none,
parse_duration,
parse_resolution,
Expand Down Expand Up @@ -60,6 +61,7 @@ def _real_extract(self, url):
'http://dinamics.ccma.cat/pvideo/media.jsp', media_id, query={
'media': media_type,
'idint': media_id,
'format': 'dm',
})

formats = []
Expand All @@ -69,6 +71,10 @@ def _real_extract(self, url):
format_url = url_or_none(format_.get('file'))
if not format_url:
continue
if determine_ext(format_url) == 'mpd':
formats.extend(self._extract_mpd_formats(
format_url, media_id, mpd_id='dash', fatal=False))
continue
label = format_.get('label')
f = parse_resolution(label)
f.update({
Expand Down

0 comments on commit 4253e3b

Please sign in to comment.