mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-24 12:34:57 +00:00
parent
de6758128e
commit
c24ce07a84
@ -131,10 +131,10 @@ class NitterIE(InfoExtractor):
|
|||||||
repost_count = parse_count(self._html_search_regex(r'<span[^>]+class="icon-retweet[^>]*></span>\s([^<]+)</div>', webpage, 'repost count', fatal=False))
|
repost_count = parse_count(self._html_search_regex(r'<span[^>]+class="icon-retweet[^>]*></span>\s([^<]+)</div>', webpage, 'repost count', fatal=False))
|
||||||
comment_count = parse_count(self._html_search_regex(r'<span[^>]+class="icon-comment[^>]*></span>\s([^<]+)</div>', webpage, 'repost count', fatal=False))
|
comment_count = parse_count(self._html_search_regex(r'<span[^>]+class="icon-comment[^>]*></span>\s([^<]+)</div>', webpage, 'repost count', fatal=False))
|
||||||
|
|
||||||
thumbnail = base_url + (self._html_search_meta('og:image', webpage, 'thumbnail url')
|
thumbnail = self._html_search_meta('og:image', webpage, 'thumbnail url')
|
||||||
or self._html_search_regex(r'<video[^>]+poster="([^"]+)"', webpage, 'thumbnail url', fatal=False))
|
if not thumbnail:
|
||||||
|
thumbnail = base_url + self._html_search_regex(r'<video[^>]+poster="([^"]+)"', webpage, 'thumbnail url', fatal=False)
|
||||||
thumbnail = remove_end(thumbnail, '%3Asmall') # if parsed with regex, it should contain this
|
thumbnail = remove_end(thumbnail, '%3Asmall')
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
thumbnail_ids = ('thumb', 'small', 'large', 'medium', 'orig')
|
thumbnail_ids = ('thumb', 'small', 'large', 'medium', 'orig')
|
||||||
|
Loading…
Reference in New Issue
Block a user