diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-03-23 01:09:33 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-03-23 01:09:33 +0700 |
commit | b8526c78f9a8a9101c5fd365f07c12e7b53c5ed9 (patch) | |
tree | 1ef99425e1db48b47806f90e07ad795b9d14e1a2 /youtube_dl/extractor | |
parent | 5e1271c56dbf3f96fbf928ccd3facf5fc70493b4 (diff) |
[pornhub] Add support for DASH formats (closes #20403)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/pornhub.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 3a474c179..bf8f0be88 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -14,6 +14,7 @@ from ..compat import ( ) from .openload import PhantomJSwrapper from ..utils import ( + determine_ext, ExtractorError, int_or_none, orderedSet, @@ -275,6 +276,10 @@ class PornHubIE(PornHubBaseIE): r'/(\d{6}/\d{2})/', video_url, 'upload data', default=None) if upload_date: upload_date = upload_date.replace('/', '') + if determine_ext(video_url) == 'mpd': + formats.extend(self._extract_mpd_formats( + video_url, video_id, mpd_id='dash', fatal=False)) + continue tbr = None mobj = re.search(r'(?P<height>\d+)[pP]?_(?P<tbr>\d+)[kK]', video_url) if mobj: |