projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01d22d4
)
[twitter] Add IE_NAMEs
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:13:58 +0000
(17:13 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 09:13:58 +0000
(17:13 +0800)
youtube_dl/extractor/twitter.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitter.py
b/youtube_dl/extractor/twitter.py
index 37a9fd5fdf7fcfb79b17063c298aedcd017bdfc7..5f697782e81980c37e3cda37286f6c70015828b0 100644
(file)
--- 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 = [{