diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-08 21:44:50 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-08 21:59:10 +0530 |
commit | 00dd0cd573c6ef8ca38dc73b88160b6c9f074dbe (patch) | |
tree | 7a7c1f5587556df9ccbb981eed745567dfba86a0 /test/test_utils.py | |
parent | 0c0ff18f7d9087c8306a8ad8713aef409a7f63f8 (diff) | |
download | hypervideo-pre-00dd0cd573c6ef8ca38dc73b88160b6c9f074dbe.tar.lz hypervideo-pre-00dd0cd573c6ef8ca38dc73b88160b6c9f074dbe.tar.xz hypervideo-pre-00dd0cd573c6ef8ca38dc73b88160b6c9f074dbe.zip |
Update to ytdl-2021.01.08
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index bb69b0522..a0f78ebe1 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -21,6 +21,7 @@ from youtube_dlc.utils import ( encode_base_n, caesar, clean_html, + clean_podcast_url, date_from_str, DateRange, detect_exe_version, @@ -1497,6 +1498,10 @@ Line 1 iri_to_uri('http://导航.中国/'), 'http://xn--fet810g.xn--fiqs8s/') + def test_clean_podcast_url(self): + self.assertEqual(clean_podcast_url('https://www.podtrac.com/pts/redirect.mp3/chtbl.com/track/5899E/traffic.megaphone.fm/HSW7835899191.mp3'), 'https://traffic.megaphone.fm/HSW7835899191.mp3') + self.assertEqual(clean_podcast_url('https://play.podtrac.com/npr-344098539/edge1.pod.npr.org/anon.npr-podcasts/podcast/npr/waitwait/2020/10/20201003_waitwait_wwdtmpodcast201003-015621a5-f035-4eca-a9a1-7c118d90bc3c.mp3'), 'https://edge1.pod.npr.org/anon.npr-podcasts/podcast/npr/waitwait/2020/10/20201003_waitwait_wwdtmpodcast201003-015621a5-f035-4eca-a9a1-7c118d90bc3c.mp3') + if __name__ == '__main__': unittest.main() |