From 18d9bb91ad3562d7c76df2d4dd4d5af70d536398 Mon Sep 17 00:00:00 2001 From: zurfyx Date: Sat, 25 Mar 2017 00:45:32 +0100 Subject: [PATCH 1/2] [atresplayer] update login validation --- youtube_dl/extractor/atresplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index e3c669830..31ef143eb 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -90,7 +90,7 @@ class AtresPlayerIE(InfoExtractor): request, None, 'Logging in as %s' % username) error = self._html_search_regex( - r'(?s)', response, 'error', default=None) + r'(?s)', response, 'error', default=None) if error: raise ExtractorError( 'Unable to login: %s' % error, expected=True) From 12ed21f77ad84ea759fb3438c0e88c4a04365556 Mon Sep 17 00:00:00 2001 From: zurfyx Date: Sat, 25 Mar 2017 01:08:47 +0100 Subject: [PATCH 2/2] [atresplayer] update to hd videos manifest --- youtube_dl/extractor/atresplayer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/atresplayer.py b/youtube_dl/extractor/atresplayer.py index 31ef143eb..b4d6f2fe5 100644 --- a/youtube_dl/extractor/atresplayer.py +++ b/youtube_dl/extractor/atresplayer.py @@ -160,7 +160,8 @@ class AtresPlayerIE(InfoExtractor): # this videos are protected by DRM, the f4m downloader doesn't support them continue else: - f4m_url = video_url[:-9] + '/manifest.f4m' + 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)) self._sort_formats(formats)