youtube-dl

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

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

[infoq] move tests

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

diff --git a/test/tests.json b/test/tests.json @@ -177,18 +177,6 @@ } }, { - "name": "InfoQ", - "url": "http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things", - "file": "12-jan-pythonthings.mp4", - "info_dict": { - "description": "Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.", - "title": "A Few of My Favorite [Python] Things" - }, - "params": { - "skip_download": true - } - }, - { "name": "ComedyCentral", "url": "http://www.thedailyshow.com/watch/thu-december-13-2012/kristen-stewart", "file": "422212.mp4", diff --git a/youtube_dl/extractor/infoq.py b/youtube_dl/extractor/infoq.py @@ -11,6 +11,18 @@ from ..utils import ( class InfoQIE(InfoExtractor): _VALID_URL = r'^(?:https?://)?(?:www\.)?infoq\.com/[^/]+/[^/]+$' + _TEST = { + u"name": u"InfoQ", + u"url": u"http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things", + u"file": u"12-jan-pythonthings.mp4", + u"info_dict": { + u"description": u"Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.", + u"title": u"A Few of My Favorite [Python] Things" + }, + u"params": { + u"skip_download": true + } + } def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)