diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-13 18:05:30 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-13 18:05:30 -0500 |
commit | bcc2fc0faf3845cc3e95c6fc465e2b203f431f20 (patch) | |
tree | 8928e72dbe53bf35107d749b70eb9026cf9f7488 /yt_dlp/extractor/rutube.py | |
parent | 3a9fe880dddb69cfca33c8438683b69833139cd6 (diff) | |
parent | 86f3d52f8c0ee253827a2c86b9b5e7bd7e6458ed (diff) | |
download | hypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.tar.lz hypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.tar.xz hypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.zip |
updated from upstream | 13/12/2021 at 18:05
Diffstat (limited to 'yt_dlp/extractor/rutube.py')
-rw-r--r-- | yt_dlp/extractor/rutube.py | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/yt_dlp/extractor/rutube.py b/yt_dlp/extractor/rutube.py index d027412c4..2f753b41f 100644 --- a/yt_dlp/extractor/rutube.py +++ b/yt_dlp/extractor/rutube.py @@ -230,9 +230,9 @@ class RutubePlaylistBaseIE(RutubeBaseIE): return self._extract_playlist(self._match_id(url)) -class RutubeChannelIE(RutubePlaylistBaseIE): - IE_NAME = 'rutube:channel' - IE_DESC = 'Rutube channels' +class RutubeTagsIE(RutubePlaylistBaseIE): + IE_NAME = 'rutube:tags' + IE_DESC = 'Rutube tags' _VALID_URL = r'https?://rutube\.ru/tags/video/(?P<id>\d+)' _TESTS = [{ 'url': 'http://rutube.ru/tags/video/1800/', @@ -312,3 +312,18 @@ class RutubePlaylistIE(RutubePlaylistBaseIE): playlist_kind = qs['pl_type'][0] playlist_id = qs['pl_id'][0] return self._extract_playlist(playlist_id, item_kind=playlist_kind) + + +class RutubeChannelIE(RutubePlaylistBaseIE): + IE_NAME = 'rutube:channel' + IE_DESC = 'Rutube channel' + _VALID_URL = r'https?://rutube\.ru/channel/(?P<id>\d+)/videos' + _TESTS = [{ + 'url': 'https://rutube.ru/channel/639184/videos/', + 'info_dict': { + 'id': '639184', + }, + 'playlist_mincount': 133, + }] + + _PAGE_TEMPLATE = 'http://rutube.ru/api/video/person/%s/?page=%s&format=json' |