]> jfr.im git - yt-dlp.git/commitdiff
[Newgrounds] Fix view count on songs (#1071)
authoru-spec-png <redacted>
Sat, 25 Sep 2021 01:12:30 +0000 (01:12 +0000)
committerGitHub <redacted>
Sat, 25 Sep 2021 01:12:30 +0000 (06:42 +0530)
Authored by: u-spec-png

yt_dlp/extractor/newgrounds.py

index 25b468b7dcfec4c5ccd7337e38ac29328dd97a06..3c49008a0a46c32b4019ce7b4e94b52f4a746b30 100644 (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(