Browse Source

[googleplus] move tests

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
0c56a3f773
2 changed files with 11 additions and 10 deletions
  1. +0
    -10
      test/tests.json
  2. +11
    -0
      youtube_dl/extractor/googleplus.py

+ 0
- 10
test/tests.json View File

@ -146,16 +146,6 @@
"title": "Breaking Down Baldur's Gate"
}
},
{
"name": "GooglePlus",
"url": "https://plus.google.com/u/0/108897254135232129896/posts/ZButuJc6CtH",
"file": "ZButuJc6CtH.flv",
"info_dict": {
"upload_date": "20120613",
"uploader": "井上ヨシマサ",
"title": "嘆きの天使 降臨"
}
},
{
"name": "FunnyOrDie",
"url": "http://www.funnyordie.com/videos/0732f586d7/heart-shaped-box-literal-video-version",


+ 11
- 0
youtube_dl/extractor/googleplus.py View File

@ -1,3 +1,5 @@
# coding: utf-8
import datetime
import re
@ -12,6 +14,15 @@ class GooglePlusIE(InfoExtractor):
_VALID_URL = r'(?:https://)?plus\.google\.com/(?:[^/]+/)*?posts/(\w+)'
IE_NAME = u'plus.google'
_TEST = {
u"url": u"https://plus.google.com/u/0/108897254135232129896/posts/ZButuJc6CtH",
u"file": u"ZButuJc6CtH.flv",
u"info_dict": {
u"upload_date": u"20120613",
u"uploader": u"井上ヨシマサ",
u"title": u"嘆きの天使 降臨"
}
}
def _real_extract(self, url):
# Extract id from URL


Loading…
Cancel
Save