1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-11-30 21:29:36 +01: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 @@ class NewgroundsIE(InfoExtractor):
'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(