From c8b6321972901f4a0c0f54c44f1735751f379b96 Mon Sep 17 00:00:00 2001 From: Michael Standen Date: Thu, 13 Jul 2017 10:31:24 +1200 Subject: [PATCH] Add testcase for video with YouTube Red ad in creator metadata --- youtube_dl/extractor/youtube.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index cc2d7ad27..7133bedb3 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1016,6 +1016,25 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'url': 'https://www.youtube.com/watch?v=MuAGGZNfUkU&list=RDMM', 'only_matching': True, }, + { + 'url': 'https://www.youtube.com/watch?v=ZUf6p5Inc08', + 'note': 'Audio of Video with artist containing YouTube advert', + 'info_dict': { + 'id': 'ZUf6p5Inc08', + 'ext': 'm4a', + 'upload_date': '20140210', + 'uploader_id': 'glitchmob', + 'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/glitchmob', + 'creator': 'The Glitch Mob', + 'license': 'Standard YouTube License', + 'title': 'The Glitch Mob - Mind of a Beast' + }, + 'params': { + 'skip_download': True, + 'youtube_include_dash_manifest': True, + 'format': '140', + }, + }, ] def __init__(self, *args, **kwargs):