projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cb30ea
)
[xhamster] Fix extraction (closes #26157) (#26254)
author
TheRealDude2
<the.real.dude@gmx.de>
Wed, 12 Aug 2020 14:42:17 +0000
(16:42 +0200)
committer
GitHub
<noreply@github.com>
Wed, 12 Aug 2020 14:42:17 +0000
(21:42 +0700)
youtube_dl/extractor/xhamster.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xhamster.py
b/youtube_dl/extractor/xhamster.py
index 72ce5e1d3750febdabb771d081188b312c597c5e..babe317390255ad3956ac1fe24d225ba9880efc0 100644
(file)
--- 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: