From b02b5b87b3bae22a9c2667c5b1652ddd7e5afbcb Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 6 Aug 2018 19:25:14 -0700 Subject: list music used in video if available --- youtube_dl/extractor/youtube.py | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'youtube_dl/extractor/youtube.py') diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index c120cfb..39e4ca5 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -10,6 +10,7 @@ import random import re import time import traceback +import html from .common import InfoExtractor, SearchInfoExtractor from ..jsinterp import JSInterpreter @@ -1479,6 +1480,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): }) return chapters + ul_tag_pattern = re.compile(r'(\s*(Song|Music|Artist|Album)\s*\s*