From ecf6f49f7ef3792a1de20bbed562f366e7ec31ea Mon Sep 17 00:00:00 2001 From: Mohammed Yaseen Mowzer Date: Sat, 16 Jun 2018 11:19:57 +0200 Subject: [PATCH] Add test for fallback after _parse_jwplayer_data fails --- youtube_dl/extractor/generic.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index c5cc2cae7..e6f9370bc 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2069,6 +2069,20 @@ class GenericIE(InfoExtractor): }, 'skip': 'TODO: fix nested playlists processing in tests', }, + { + # Test for fallback after _parse_jwplayer_data fails + # See https://github.com/rg3/youtube-dl/pull/16735 + 'url': 'http://www.anime1.com/watch/nichijou/episode-1', + 'info_dict': { + 'id': '[HorribleSubs] Nichijou - 01 [480p]_a1_BRK', + 'title': 'Nichijou - Episode 1', + 'ext': 'mp4', + 'uploader': 'www.anime1.com', + }, + 'params': { + 'skip_download': True, + } + }, # { # # TODO: find another test # # http://schema.org/VideoObject