projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab9001d
)
[youporn] Fix extraction (closes #27822)
author
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jan 2021 07:43:52 +0000
(14:43 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jan 2021 07:43:52 +0000
(14:43 +0700)
youtube_dl/extractor/youporn.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youporn.py
b/youtube_dl/extractor/youporn.py
index 7b9feafeb2a6beb75a8f7e9424fd74af0b227c3f..a1f0cce2c6d7752a5488e39ad2d0c3fca8064d37 100644
(file)
--- a/
youtube_dl/extractor/youporn.py
+++ b/
youtube_dl/extractor/youporn.py
@@
-88,7
+88,7
@@
class YouPornIE(InfoExtractor):
# Main source
definitions = self._parse_json(
self._search_regex(
- r'mediaDefinition\s*
=\s*(\[.+?\]);
', webpage,
+ r'mediaDefinition\s*
[=:]\s*(\[.+?\])\s*[;,]
', webpage,
'media definitions', default='[]'),
video_id, fatal=False)
if definitions: