Unverified Commit 62ae19ff authored by TheRealDude2's avatar TheRealDude2 Committed by GitHub
Browse files

[xhamster] Improve initials regex (#26526) (closes #26353)

parent 5ed05f26
...@@ -138,7 +138,8 @@ class XHamsterIE(InfoExtractor): ...@@ -138,7 +138,8 @@ class XHamsterIE(InfoExtractor):
initials = self._parse_json( initials = self._parse_json(
self._search_regex( self._search_regex(
r'window\.initials\s*=\s*({.+?})\s*;', webpage, 'initials', (r'window\.initials\s*=\s*({.+?})\s*;\s*</script>',
r'window\.initials\s*=\s*({.+?})\s*;'), webpage, 'initials',
default='{}'), default='{}'),
video_id, fatal=False) video_id, fatal=False)
if initials: if initials:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment