TheRealDude2
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
youtube_dl/extractor/xhamster.py
|
|
@ -138,7 +138,8 @@ class XHamsterIE(InfoExtractor): |
|
|
|
|
|
|
|
initials = self._parse_json( |
|
|
|
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='{}'), |
|
|
|
video_id, fatal=False) |
|
|
|
if initials: |
|
|
|