mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 16:51:26 +01:00
Compare commits
3 Commits
ebedb7f01e
...
e28449cd2b
Author | SHA1 | Date | |
---|---|---|---|
|
e28449cd2b | ||
|
4b6d4967f8 | ||
|
8886a6d3fc |
|
@ -5,23 +5,23 @@ from ..utils import format_field, parse_iso8601
|
||||||
class RinseFMIE(InfoExtractor):
|
class RinseFMIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?rinse\.fm/episodes/(?P<id>[^/?#]+)'
|
_VALID_URL = r'https?://(?:www\.)?rinse\.fm/episodes/(?P<id>[^/?#]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://rinse.fm/episodes/cameo-blush-01-09-2023-2300/',
|
'url': 'https://rinse.fm/episodes/club-glow-15-12-2023-2000/',
|
||||||
'md5': '9284abbd785e6b86e67d1cdca6224feb',
|
'md5': '76ee0b719315617df42e15e710f46c7b',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1351562',
|
'id': '1536535',
|
||||||
'ext': 'mp3',
|
'ext': 'mp3',
|
||||||
'title': 'Cameo Blush - 01/09/2023 - 23:00',
|
'title': 'Club Glow - 15/12/2023 - 20:00',
|
||||||
'thumbnail': r're:^https?://.*\.JPG$',
|
'thumbnail': r're:^https://.+\.(?:jpg|JPG)$',
|
||||||
'release_timestamp': 1693522800,
|
'release_timestamp': 1702598400,
|
||||||
'release_date': '20230831'
|
'release_date': '20231215'
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
|
entry = self._search_nextjs_data(webpage, display_id)['props']['pageProps']['entry']
|
||||||
|
|
||||||
entry = self._search_nextjs_data(webpage, video_id)['props']['pageProps']['entry']
|
|
||||||
return {
|
return {
|
||||||
'id': entry['id'],
|
'id': entry['id'],
|
||||||
'title': entry.get('title'),
|
'title': entry.get('title'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user