diff options
author | felix <m.p.isaev@yandex.com> | 2015-03-17 18:54:36 +0100 |
---|---|---|
committer | felix <m.p.isaev@yandex.com> | 2015-03-17 18:54:36 +0100 |
commit | 9ef4f12b534578ae3d3e47815492c90826c03c36 (patch) | |
tree | 6cd0063b813e11cbb877ec3593d1b3c5d7098a4e /youtube_dl/extractor/libsyn.py | |
parent | 2e90dff2c2ecade8afb444b086fbc0ad6d2c812d (diff) |
testcases for libsyn and The Daily Show Podcast extractors
Diffstat (limited to 'youtube_dl/extractor/libsyn.py')
-rw-r--r-- | youtube_dl/extractor/libsyn.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/libsyn.py b/youtube_dl/extractor/libsyn.py index 4b5029f89..88379f276 100644 --- a/youtube_dl/extractor/libsyn.py +++ b/youtube_dl/extractor/libsyn.py @@ -6,6 +6,15 @@ from ..utils import ( class LibsynIE(InfoExtractor): _VALID_URL = r'(?:https?:)?//html5-player\.libsyn\.com/embed/episode/id/(?P<id>[0-9]+)(?:/.*)?' + _TESTS = [{ + 'url': "http://html5-player.libsyn.com/embed/episode/id/3377616/", + 'info_dict': { + 'id': "3377616", + 'ext': "mp3", + 'title': "Episode 12: Bassem Youssef: Egypt's Jon Stewart", + 'description': "<p>Bassem Youssef joins executive producer Steve Bodow and senior producer Sara Taksler for a conversation about how <em style=\"font-family: Tahoma, Geneva, sans-serif; font-size: 12.8000001907349px;\">The Daily Show</em> inspired Bassem to create <em style=\"font-family: Tahoma, Geneva, sans-serif; font-size: 12.8000001907349px;\">Al-Bernameg</em>, his massively popular (and now banned) Egyptian news satire program. Sara discusses her soon-to-be-released documentary, <em style=\"font-family: Tahoma, Geneva, sans-serif; font-size: 12.8000001907349px;\">Tickling Giants</em>, which chronicles how Bassem and his staff risked their safety every day to tell jokes.</p>", + }, + }] def _real_extract(self, url): if url.startswith('//'): |