aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ninegag.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-23 01:55:16 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-23 01:55:16 +0600
commit8ea6bd2802a0dbb860187bb5aaf687585ff7c1c7 (patch)
tree8ad1fbd626c3e38817d8fc5a52a696ceac48ee1d /youtube_dl/extractor/ninegag.py
parentc659022b5cabebaba3275df2d0f4ae97b468eac8 (diff)
[9gag] Add vimeo test
Diffstat (limited to 'youtube_dl/extractor/ninegag.py')
-rw-r--r--youtube_dl/extractor/ninegag.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py
index d8e103189..0ef6a6c65 100644
--- a/youtube_dl/extractor/ninegag.py
+++ b/youtube_dl/extractor/ninegag.py
@@ -1,7 +1,6 @@
from __future__ import unicode_literals
import re
-import json
from .common import InfoExtractor
from ..utils import str_to_int
@@ -22,9 +21,21 @@ class NineGagIE(InfoExtractor):
'uploader': 'CompilationChannel',
'upload_date': '20131110',
"view_count": int,
- "thumbnail": "re:^https?://",
},
- 'add_ie': ['Youtube']
+ 'add_ie': ['Youtube'],
+ }, {
+ 'url': 'http://9gag.com/tv/p/aKolP3',
+ 'info_dict': {
+ 'id': 'aKolP3',
+ 'ext': 'mp4',
+ 'title': 'This Guy Travelled 11 countries In 44 days Just To Make This Amazing Video',
+ 'description': "I just saw more in 1 minute than I've seen in 1 year. This guy's video is epic!!",
+ 'uploader_id': 'rickmereki',
+ 'uploader': 'Rick Mereki',
+ 'upload_date': '20110803',
+ 'view_count': int,
+ },
+ 'add_ie': ['Vimeo'],
}, {
'url': 'http://9gag.com/tv/p/KklwM',
'only_matching': True,