From b5879f6e4466a8573ce58ffc39d3f7b541d9c98a Mon Sep 17 00:00:00 2001 From: rubyist Date: Thu, 27 Feb 2020 19:10:31 -0800 Subject: [PATCH] Don't use _html_search_regex when there's no html to filter out --- youtube_dl/extractor/matter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/matter.py b/youtube_dl/extractor/matter.py index 1d2db7451..fb47bbff0 100644 --- a/youtube_dl/extractor/matter.py +++ b/youtube_dl/extractor/matter.py @@ -22,19 +22,19 @@ class MatterIE(InfoExtractor): "https://api.matter.online/api/v1/open-graph/tracks/%s/embedded" % track_id, track_id ) - author = self._html_search_regex( + author = self._search_regex( r'([^<]+)', webpage, "author" ) - title = self._html_search_regex( + title = self._search_regex( r'([^<]+)', webpage, "title" ) - download_url = self._html_search_regex( + download_url = self._search_regex( r'', webpage, "download_url" ) - artwork = self._html_search_regex( + artwork = self._search_regex( r'style="background: url\((https://matter-production.s3.amazonaws.com/images/[^\.]+\.[^\)]+)\)', webpage, "artwork" )