mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[twitter] Add IE_NAMEs
This commit is contained in:
parent
01d22d4703
commit
014e880372
@ -13,6 +13,7 @@
|
||||
|
||||
|
||||
class TwitterCardIE(InfoExtractor):
|
||||
IE_NAME = 'twitter:card'
|
||||
_VALID_URL = r'https?://(?:www\.)?twitter\.com/i/cards/tfw/v1/(?P<id>\d+)'
|
||||
_TESTS = [
|
||||
{
|
||||
@ -101,6 +102,7 @@ def _real_extract(self, url):
|
||||
|
||||
|
||||
class TwitterIE(TwitterCardIE):
|
||||
IE_NAME = 'twitter'
|
||||
_VALID_URL = r'https?://(?:www|m|mobile)?\.?twitter\.com/(?P<id>[^/]+/status/\d+)'
|
||||
|
||||
_TESTS = [{
|
||||
|
Loading…
Reference in New Issue
Block a user