diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-10-18 17:13:58 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-10-18 17:13:58 +0800 |
commit | 014e880372e896cdd63f9075864d2a3bba60e706 (patch) | |
tree | 05069ffb8712f6768297cdcc390c1ef00538a834 /youtube_dl | |
parent | 01d22d47039dedace1c5414c83e9fecfca41b5a5 (diff) |
[twitter] Add IE_NAMEs
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/twitter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index 37a9fd5fd..5f697782e 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -13,6 +13,7 @@ from ..utils import ( 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 @@ class TwitterCardIE(InfoExtractor): class TwitterIE(TwitterCardIE): + IE_NAME = 'twitter' _VALID_URL = r'https?://(?:www|m|mobile)?\.?twitter\.com/(?P<id>[^/]+/status/\d+)' _TESTS = [{ |