[extractor] Common function _match_valid_url
This commit is contained in:
parent
f79ec47d71
commit
5ad28e7ffd
293 changed files with 389 additions and 541 deletions
|
|
@ -173,7 +173,7 @@ class NitterIE(InfoExtractor):
|
|||
title = self._html_search_regex(r'<div class="tweet-content[^>]+>([^<]+)</div>', webpage, 'title')
|
||||
description = title
|
||||
|
||||
mobj = re.match(self._VALID_URL, url)
|
||||
mobj = self._match_valid_url(url)
|
||||
uploader_id = (
|
||||
mobj.group('uploader_id')
|
||||
or self._html_search_regex(r'<a class="fullname"[^>]+title="([^"]+)"', webpage, 'uploader name', fatal=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue