diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-09-28 01:15:13 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-28 01:15:13 +0600 |
commit | 1ab1c4ef5708fc1db50c5b875dcbcfe9ce984035 (patch) | |
tree | bd9e376a4a144b06dcf5ae12a99d3e496aabfce0 /youtube_dl | |
parent | 926fb62eec016db9ef23e9d8d210c8fb2e4de20e (diff) |
[keek] Improve uploader fields regexes
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/keek.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/keek.py b/youtube_dl/extractor/keek.py index dff4cb558..dfd800a91 100644 --- a/youtube_dl/extractor/keek.py +++ b/youtube_dl/extractor/keek.py @@ -30,6 +30,10 @@ class KeekIE(InfoExtractor): 'ext': 'mp4', 'title': self._og_search_description(webpage), 'thumbnail': self._og_search_thumbnail(webpage), - 'uploader': self._search_regex(r'data-username="([^"]+)"', webpage, 'uploader', fatal=False), - 'uploader_id': self._search_regex(r'data-user-id="([^"]+)"', webpage, 'uploader id', fatal=False), + 'uploader': self._search_regex( + r'data-username=(["\'])(?P<uploader>.+?)\1', webpage, + 'uploader', fatal=False, group='uploader'), + 'uploader_id': self._search_regex( + r'data-user-id=(["\'])(?P<uploader_id>.+?)\1', webpage, + 'uploader id', fatal=False, group='uploader_id'), } |