mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 00:07:49 +00:00
[keek] Improve uploader fields regexes
This commit is contained in:
parent
926fb62eec
commit
1ab1c4ef57
1 changed files with 6 additions and 2 deletions
|
@ -30,6 +30,10 @@ class KeekIE(InfoExtractor):
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': self._og_search_description(webpage),
|
'title': self._og_search_description(webpage),
|
||||||
'thumbnail': self._og_search_thumbnail(webpage),
|
'thumbnail': self._og_search_thumbnail(webpage),
|
||||||
'uploader': self._search_regex(r'data-username="([^"]+)"', webpage, 'uploader', fatal=False),
|
'uploader': self._search_regex(
|
||||||
'uploader_id': self._search_regex(r'data-user-id="([^"]+)"', webpage, 'uploader id', fatal=False),
|
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'),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue