0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +00:00

[Newgrounds] Fix view count on songs (#1071)

Authored by: u-spec-png
This commit is contained in:
u-spec-png 2021-09-25 01:12:30 +00:00 committed by GitHub
parent 1fed277349
commit e99b2d2771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ def _real_extract(self, url):
'duration', default=None)) 'duration', default=None))
view_count = parse_count(self._html_search_regex( view_count = parse_count(self._html_search_regex(
r'(?s)<dt>\s*Views\s*</dt>\s*<dd>([\d\.,]+)</dd>', webpage, r'(?s)<dt>\s*(?:Views|Listens)\s*</dt>\s*<dd>([\d\.,]+)</dd>', webpage,
'view count', default=None)) 'view count', default=None))
filesize = int_or_none(self._html_search_regex( filesize = int_or_none(self._html_search_regex(