aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Triendl <david@triendl.name>2014-02-21 17:48:40 +0100
committerDavid Triendl <david@triendl.name>2014-02-21 18:00:05 +0100
commit7928024f5747eee6435c22df8395da4ed0aef4cd (patch)
tree5c5ddda494667d038933a50bdba9e068882ef007
parent3eb38acb43f30c94a9b93894b1d8171f3e6fa809 (diff)
[BR] Add basic test
-rw-r--r--youtube_dl/extractor/br.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/youtube_dl/extractor/br.py b/youtube_dl/extractor/br.py
index 888c5c239..41e16f6cb 100644
--- a/youtube_dl/extractor/br.py
+++ b/youtube_dl/extractor/br.py
@@ -8,7 +8,19 @@ class BRIE(InfoExtractor):
_VALID_URL = r"^https?://(?:www\.)?br\.de/mediathek/video/(?:sendungen/)?(?:[a-z0-9\-]+\.html)$"
_BASE_URL = u"http://www.br.de"
- _TESTS = []
+ _TESTS = [
+ {
+ u"url": u"http://www.br.de/mediathek/video/anselm-gruen-114.html",
+ u"file": u"2c8d81c5-6fb7-4a74-88d4-e768e5856532.mp4",
+ u"md5": u"c4f83cf0f023ba5875aba0bf46860df2",
+ u"info_dict": {
+ u"title": u"Feiern und Verzichten",
+ u"description": u"Anselm GrĂ¼n: Feiern und Verzichten",
+ u"uploader": u"BR/Birgit Baier",
+ u"upload_date": u"20140301"
+ }
+ }
+ ]
def _real_extract(self, url):
page = self._download_webpage(url, None)