diff options
| author | Matthew Rayermann <matthew.rayermann@gmail.com> | 2020-12-02 23:47:56 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 07:47:56 +0000 | 
| commit | beab2f88c9c83c2dba3d539f06133345542b7f03 (patch) | |
| tree | 3388b891aa11cbc157c5ec2ae0f0c5726a7f5e19 | |
| parent | 00254473691185e567006da00524eedbee9597aa (diff) | |
| download | hypervideo-pre-beab2f88c9c83c2dba3d539f06133345542b7f03.tar.lz hypervideo-pre-beab2f88c9c83c2dba3d539f06133345542b7f03.tar.xz hypervideo-pre-beab2f88c9c83c2dba3d539f06133345542b7f03.zip | |
[nhk] Add audio clip test to NHK extractor (#27269)
| -rw-r--r-- | youtube_dl/extractor/nhk.py | 15 | 
1 files changed, 14 insertions, 1 deletions
| diff --git a/youtube_dl/extractor/nhk.py b/youtube_dl/extractor/nhk.py index de6a707c4..6a61a47d2 100644 --- a/youtube_dl/extractor/nhk.py +++ b/youtube_dl/extractor/nhk.py @@ -10,7 +10,7 @@ class NhkVodIE(InfoExtractor):      # Content available only for a limited period of time. Visit      # https://www3.nhk.or.jp/nhkworld/en/ondemand/ for working samples.      _TESTS = [{ -        # clip +        # video clip          'url': 'https://www3.nhk.or.jp/nhkworld/en/ondemand/video/9999011/',          'md5': '256a1be14f48d960a7e61e2532d95ec3',          'info_dict': { @@ -22,6 +22,19 @@ class NhkVodIE(InfoExtractor):              'upload_date': '20190816',          },      }, { +        # audio clip +        'url': 'https://www3.nhk.or.jp/nhkworld/en/ondemand/audio/r_inventions-20201104-1/', +        'info_dict': { +            'id': 'r_inventions-20201104-1-en', +            'ext': 'm4a', +            'title': "Japan's Top Inventions - Miniature Video Cameras", +            'description': 'md5:07ea722bdbbb4936fdd360b6a480c25b', +        }, +        'params': { +            # m3u8 download +            'skip_download': True, +        }, +    }, {          'url': 'https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2015173/',          'only_matching': True,      }, { | 
