From fba4a4fc68e8e4c829c82a4269e5666ad2ca9ed5 Mon Sep 17 00:00:00 2001 From: Alex Seiler Date: Sat, 18 Feb 2017 13:12:22 +0100 Subject: [PATCH] [tegnamedia] Support HDS format --- youtube_dl/extractor/tegnamedia.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/youtube_dl/extractor/tegnamedia.py b/youtube_dl/extractor/tegnamedia.py index f46bc40d8..943bc5120 100644 --- a/youtube_dl/extractor/tegnamedia.py +++ b/youtube_dl/extractor/tegnamedia.py @@ -51,12 +51,9 @@ class TegnaMediaIE(InfoExtractor): path, video_id, ext='mp4', entry_protocol='m3u8_native') formats += forms elif elem.get('Format') == 'HDS': - # I am not sure how to extract this format, I have tried the - # following, but this format seems to be only mentioned - # in the json, but not really available: - # forms = self._extract_akamai_formats(path, video_id) - # formats += forms - pass + path += '/manifest.f4m?hdcode' + forms = self._extract_akamai_formats(path, video_id) + formats += forms self._sort_formats(formats) return {