From 8ec63c3f81eab2e979c03cfed2c6fd6f1bd14ba9 Mon Sep 17 00:00:00 2001 From: upintheairsheep <43690204+upintheairsheep@users.noreply.github.com> Date: Wed, 22 Feb 2023 09:28:30 -0800 Subject: [PATCH] Update youtube_dl/extractor/googlephotos.py Co-authored-by: dirkf --- youtube_dl/extractor/googlephotos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/googlephotos.py b/youtube_dl/extractor/googlephotos.py index c923622db..9e6aeb980 100644 --- a/youtube_dl/extractor/googlephotos.py +++ b/youtube_dl/extractor/googlephotos.py @@ -46,7 +46,7 @@ class GooglePhotosIE(InfoExtractor): formats = [] dash_mpd_fatal = True - dash_link = self._html_search_regex(r'data-url="(.+?)"', webpage, '') + dash_link = self._search_regex(r'''data-url\s*=\s*('|")(?P(?:(?!\1).)+)''', webpage, group='link') mpd_url = self._download_webpage(dash_link + '=mm,dash?alr=true', video_id) for df in self._extract_mpd_formats(