[atresplayer] Extract DASH and ISM formats

pull/8/head
Sergey M․ 2017-03-25 18:03:46 +07:00
rodzic 048086920b
commit c7301e677b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -160,10 +160,15 @@ class AtresPlayerIE(InfoExtractor):
f4m_url = 'http://drg.antena3.com/{0}hds/es/sd.f4m'.format(f4m_path)
# this videos are protected by DRM, the f4m downloader doesn't support them
continue
else:
video_url_hd = video_url.replace('free_es', 'es')
f4m_url = video_url_hd[:-9] + '/manifest.f4m'
formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds', fatal=False))
video_url_hd = video_url.replace('free_es', 'es')
formats.extend(self._extract_f4m_formats(
video_url_hd[:-9] + '/manifest.f4m', video_id, f4m_id='hds',
fatal=False))
formats.extend(self._extract_mpd_formats(
video_url_hd[:-9] + '/manifest.mpd', video_id, mpd_id='dash',
fatal=False))
formats.extend(self._extract_ism_formats(
video_url_hd, video_id, ism_id='mss', fatal=False))
self._sort_formats(formats)
path_data = player.get('pathData')