youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 0c56a3f773f416aeeb143db5b0ab36701c6c8e64
parent 9d069c477895862d93e223b6d8cc475d42746033
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Thu, 27 Jun 2013 20:31:27 +0200

[googleplus] move tests

Diffstat:
Mtest/tests.json | 10----------
Myoutube_dl/extractor/googleplus.py | 11+++++++++++
2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/test/tests.json b/test/tests.json @@ -147,16 +147,6 @@ } }, { - "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", "file": "0732f586d7.mp4", diff --git a/youtube_dl/extractor/googleplus.py b/youtube_dl/extractor/googleplus.py @@ -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