mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:00:48 +01:00
testcases for libsyn and The Daily Show Podcast extractors
This commit is contained in:
parent
2e90dff2c2
commit
9ef4f12b53
@ -276,6 +276,10 @@ def _real_extract(self, url):
|
||||
|
||||
class TheDailyShowPodcastIE(InfoExtractor):
|
||||
_VALID_URL = r'(?P<scheme>https?:)?//thedailyshow\.cc\.com/podcast/(?P<id>[a-z\-]+)'
|
||||
_TESTS = [{
|
||||
"url": "http://thedailyshow.cc.com/podcast/episodetwelve",
|
||||
'only_matching': True,
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
display_id = self._match_id(url)
|
||||
|
@ -6,6 +6,15 @@
|
||||
|
||||
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('//'):
|
||||
|
Loading…
Reference in New Issue
Block a user