aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:40:20 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:40:20 +0200
commite50e2fcd4deaab50da506a0abf1bafed16085cd7 (patch)
tree3aef7a0a136d80def2c620b46cdc0e9171429b7c
parent6be451f422090601e25b6a9b1f801f521f1ca41f (diff)
[br] fix test case
-rw-r--r--youtube_dl/extractor/br.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/br.py b/youtube_dl/extractor/br.py
index 4e2960c62..2e277c8c3 100644
--- a/youtube_dl/extractor/br.py
+++ b/youtube_dl/extractor/br.py
@@ -26,6 +26,8 @@ class BRIE(InfoExtractor):
'title': 'Wenn das Traditions-Theater wackelt',
'description': 'Heimatsound-Festival 2014: Wenn das Traditions-Theater wackelt',
'duration': 34,
+ 'uploader': 'BR',
+ 'upload_date': '20140802',
}
},
{
@@ -66,8 +68,7 @@ class BRIE(InfoExtractor):
]
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- display_id = mobj.group('id')
+ display_id = self._match_id(url)
page = self._download_webpage(url, display_id)
xml_url = self._search_regex(
r"return BRavFramework\.register\(BRavFramework\('avPlayer_(?:[a-f0-9-]{36})'\)\.setup\({dataURL:'(/(?:[a-z0-9\-]+/)+[a-z0-9/~_.-]+)'}\)\);", page, 'XMLURL')