[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
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def _real_extract(self, url):
'duration', default=None))
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))
filesize = int_or_none(self._html_search_regex(