From: TheRealDude2 Date: Wed, 12 Aug 2020 14:42:17 +0000 (+0200) Subject: [xhamster] Fix extraction (closes #26157) (#26254) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a7e348556a213f008758011777a0a25759efc2e8;p=youtube-dl [xhamster] Fix extraction (closes #26157) (#26254) --- diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index 72ce5e1d3..babe31739 100644 --- 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: