Browse Source

[twitter] Add IE_NAMEs

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
014e880372
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/twitter.py

+ 2
- 0
youtube_dl/extractor/twitter.py View File

@ -13,6 +13,7 @@ from ..utils import (
class TwitterCardIE(InfoExtractor): class TwitterCardIE(InfoExtractor):
IE_NAME = 'twitter:card'
_VALID_URL = r'https?://(?:www\.)?twitter\.com/i/cards/tfw/v1/(?P<id>\d+)' _VALID_URL = r'https?://(?:www\.)?twitter\.com/i/cards/tfw/v1/(?P<id>\d+)'
_TESTS = [ _TESTS = [
{ {
@ -101,6 +102,7 @@ class TwitterCardIE(InfoExtractor):
class TwitterIE(TwitterCardIE): class TwitterIE(TwitterCardIE):
IE_NAME = 'twitter'
_VALID_URL = r'https?://(?:www|m|mobile)?\.?twitter\.com/(?P<id>[^/]+/status/\d+)' _VALID_URL = r'https?://(?:www|m|mobile)?\.?twitter\.com/(?P<id>[^/]+/status/\d+)'
_TESTS = [{ _TESTS = [{


Loading…
Cancel
Save