mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 01:01:25 +01:00
Compare commits
No commits in common. "e28449cd2b956027a760b3e8e45f2a895134369c" and "ebedb7f01e575df89075d6aff56d249c92d85b5a" have entirely different histories.
e28449cd2b
...
ebedb7f01e
|
@ -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/club-glow-15-12-2023-2000/',
|
'url': 'https://rinse.fm/episodes/cameo-blush-01-09-2023-2300/',
|
||||||
'md5': '76ee0b719315617df42e15e710f46c7b',
|
'md5': '9284abbd785e6b86e67d1cdca6224feb',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1536535',
|
'id': '1351562',
|
||||||
'ext': 'mp3',
|
'ext': 'mp3',
|
||||||
'title': 'Club Glow - 15/12/2023 - 20:00',
|
'title': 'Cameo Blush - 01/09/2023 - 23:00',
|
||||||
'thumbnail': r're:^https://.+\.(?:jpg|JPG)$',
|
'thumbnail': r're:^https?://.*\.JPG$',
|
||||||
'release_timestamp': 1702598400,
|
'release_timestamp': 1693522800,
|
||||||
'release_date': '20231215'
|
'release_date': '20230831'
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
display_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, video_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