diff options
author | gavin <32209764+7x11x13@users.noreply.github.com> | 2025-01-25 12:48:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-25 18:48:06 +0100 |
commit | 7bfb4f72e490310d2681c7f4815218a2ebbc73ee (patch) | |
tree | ac9c0c0f50013ad67df5f8ae0623bc3ce54165f6 | |
parent | 5d904b077d2f58ae44bdf208d2dcfcc3ff8347f5 (diff) |
[ie/soundcloud:user] Add `/comments` page support (#11999)
Authored by: 7x11x13
-rw-r--r-- | yt_dlp/extractor/soundcloud.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/yt_dlp/extractor/soundcloud.py b/yt_dlp/extractor/soundcloud.py index 85779e91a..0b75c9a72 100644 --- a/yt_dlp/extractor/soundcloud.py +++ b/yt_dlp/extractor/soundcloud.py @@ -393,7 +393,7 @@ class SoundcloudIE(SoundcloudBaseIE): (?:(?:(?:www\.|m\.)?soundcloud\.com/ (?!stations/track) (?P<uploader>[\w\d-]+)/ - (?!(?:tracks|albums|sets(?:/.+?)?|reposts|likes|spotlight)/?(?:$|[?#])) + (?!(?:tracks|albums|sets(?:/.+?)?|reposts|likes|spotlight|comments)/?(?:$|[?#])) (?P<title>[\w\d-]+) (?:/(?P<token>(?!(?:albums|sets|recommended))[^?]+?))? (?:[?].*)?$) @@ -776,7 +776,7 @@ class SoundcloudUserIE(SoundcloudPagedPlaylistBaseIE): (?:(?:www|m)\.)?soundcloud\.com/ (?P<user>[^/]+) (?:/ - (?P<rsrc>tracks|albums|sets|reposts|likes|spotlight) + (?P<rsrc>tracks|albums|sets|reposts|likes|spotlight|comments) )? /?(?:[?#].*)?$ ''' @@ -830,6 +830,13 @@ class SoundcloudUserIE(SoundcloudPagedPlaylistBaseIE): 'title': 'Grynpyret (Spotlight)', }, 'playlist_mincount': 1, + }, { + 'url': 'https://soundcloud.com/one-thousand-and-one/comments', + 'info_dict': { + 'id': '992430331', + 'title': '7x11x13-testing (Comments)', + }, + 'playlist_mincount': 1, }] _BASE_URL_MAP = { @@ -840,6 +847,7 @@ class SoundcloudUserIE(SoundcloudPagedPlaylistBaseIE): 'reposts': 'stream/users/%s/reposts', 'likes': 'users/%s/likes', 'spotlight': 'users/%s/spotlight', + 'comments': 'users/%s/comments', } def _real_extract(self, url): |