[xhamster] Fix extraction (closes #26157) (#26254)
authorTheRealDude2 <the.real.dude@gmx.de>
Wed, 12 Aug 2020 14:42:17 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 14:42:17 +0000 (21:42 +0700)
youtube_dl/extractor/xhamster.py

index 72ce5e1d3750febdabb771d081188b312c597c5e..babe317390255ad3956ac1fe24d225ba9880efc0 100644 (file)
@@ -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: