Skip to content

Commit c6ab792

Browse files
author
catboy
authored
[medaltv] Fix extraction (ytdl-org#28807)
numeric clip ids are no longer used by medal, and integer user ids are now sent as strings.
1 parent 0db79d8 commit c6ab792

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

youtube_dl/extractor/medaltv.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@
1515

1616

1717
class MedalTVIE(InfoExtractor):
18-
_VALID_URL = r'https?://(?:www\.)?medal\.tv/clips/(?P<id>[0-9]+)'
18+
_VALID_URL = r'https?://(?:www\.)?medal\.tv/clips/(?P<id>[a-zA-Z0-9]+)'
1919
_TESTS = [{
20-
'url': 'https://medal.tv/clips/34934644/3Is9zyGMoBMr',
20+
'url': 'https://medal.tv/clips/2mA60jWAGQCBH',
2121
'md5': '7b07b064331b1cf9e8e5c52a06ae68fa',
2222
'info_dict': {
23-
'id': '34934644',
23+
'id': '2mA60jWAGQCBH',
2424
'ext': 'mp4',
2525
'title': 'Quad Cold',
2626
'description': 'Medal,https://medal.tv/desktop/',
2727
'uploader': 'MowgliSB',
2828
'timestamp': 1603165266,
2929
'upload_date': '20201020',
30-
'uploader_id': 10619174,
30+
'uploader_id': '10619174',
3131
}
3232
}, {
33-
'url': 'https://medal.tv/clips/36787208',
33+
'url': 'https://medal.tv/clips/2um24TWdty0NA',
3434
'md5': 'b6dc76b78195fff0b4f8bf4a33ec2148',
3535
'info_dict': {
36-
'id': '36787208',
36+
'id': '2um24TWdty0NA',
3737
'ext': 'mp4',
3838
'title': 'u tk me i tk u bigger',
3939
'description': 'Medal,https://medal.tv/desktop/',
4040
'uploader': 'Mimicc',
4141
'timestamp': 1605580939,
4242
'upload_date': '20201117',
43-
'uploader_id': 5156321,
43+
'uploader_id': '5156321',
4444
}
4545
}]
4646

0 commit comments

Comments
 (0)