mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 10:11:52 +00:00
[eporner] Fix view count extraction and make optional (closes #23306)
This commit is contained in:
parent
1727541315
commit
679b711395
1 changed files with 2 additions and 2 deletions
|
@ -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=False))
|
||||
r'id=["\']cinemaviews1["\'][^>]*>\s*([0-9,]+)',
|
||||
webpage, 'view count', default=None))
|
||||
|
||||
return merge_dicts(json_ld, {
|
||||
'id': video_id,
|
||||
|
|
Loading…
Reference in a new issue