commit a7e348556a213f008758011777a0a25759efc2e8
parent 6cb30ea5eddb2db4a2536d1b851f4cc45f427d3c
Author: TheRealDude2 <the.real.dude@gmx.de>
Date:   Wed, 12 Aug 2020 16:42:17 +0200

[xhamster] Fix extraction (closes #26157) (#26254)


Diffstat:
Myoutube_dl/extractor/xhamster.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py @@ -132,7 +132,7 @@ class XHamsterIE(InfoExtractor): initials = self._parse_json( self._search_regex( - r'window\.initials\s*=\s*({.+?})\s*;\s*\n', webpage, 'initials', + r'window\.initials\s*=\s*({.+?})\s*;', webpage, 'initials', default='{}'), video_id, fatal=False) if initials: