projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1727541
)
[eporner] Fix view count extraction and make optional (closes #23306)
author
Sergey M․
<dstftw@gmail.com>
Sun, 13 Dec 2020 13:27:08 +0000
(20:27 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 13 Dec 2020 13:27:08 +0000
(20:27 +0700)
youtube_dl/extractor/eporner.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/eporner.py
b/youtube_dl/extractor/eporner.py
index 920fb417e7a5daec420730f1d319865a904517d5..bfecd3a418805761fc3516cf7afb1e14f9d16283 100644
(file)
--- a/
youtube_dl/extractor/eporner.py
+++ b/
youtube_dl/extractor/eporner.py
@@
-118,8
+118,8
@@
class EpornerIE(InfoExtractor):
duration = parse_duration(self._html_search_meta(
'duration', webpage, default=None))
view_count = str_to_int(self._search_regex(
- r'id=
"cinemaviews">\s*([0-9,]+)\s*<small>views
',
- webpage, 'view count',
fatal=Fals
e))
+ r'id=
["\']cinemaviews1["\'][^>]*>\s*([0-9,]+)
',
+ webpage, 'view count',
default=Non
e))
return merge_dicts(json_ld, {
'id': video_id,