Repository: yt-dlp/yt-dlp
File: yt_dlp/extractor/ridehome.py (Python)

Code before:
from .common import InfoExtractor
from .art19 import Art19IE

from ..utils import (
    ExtractorError,
    extract_attributes,
    get_elements_html_by_class,
    traverse_obj,
)


class RideHomeIE(InfoExtractor):
    _VALID_URL = r'https?://(?:www\.)?ridehome\.info/show/techmeme-ride-home/(?P<id>[\w-]+)(?:/|$)'
    _TESTS = [{
        'url': 'https://www.ridehome.info/show/techmeme-ride-home/thu-1228-will-2024-be-the-year-apple-gets-serious-about-gaming-on-macs/',
        'md5': 'c84ea3cc96950a9ab86fe540f3edc588',
        'info_dict': {
            'id': '540e5493-9fe6-4c14-a488-dc508d8794b2',
            'ext': 'mp3',
            'title': 'Thu. 12/28 – Will 2024 Be The Year Apple Gets Serious About Gaming On Macs?',
            'description': 'md5:9dba86ae9b5047a8150eceddeeb629c2',
            'series': 'Techmeme Ride Home',
            'series_id': '3c30e8f4-ab48-415b-9421-1ae06cd4058b',
            'upload_date': '20231228',
            'timestamp': 1703780995,
            'modified_date': '20231230',
            'episode_id': '540e5493-9fe6-4c14-a488-dc508d8794b2',
            'modified_timestamp': 1703912404,
            'release_date': '20231228',
            'release_timestamp': 1703782800,
            'duration': 1000.1502,
            'thumbnail': r're:^https?://content\.production\.cdn\.art19\.com/images/.*\.jpeg$'
        }
    }, {
        'url': 'https://www.ridehome.info/show/techmeme-ride-home/portfolio-profile-sensel-with-ilyarosenberg/',
        'md5': 'bf9d6efad221008ce71aea09d5533cf6',
        'info_dict': {
            'id': '6beed803-b1ef-4536-9fef-c23cf6b4dcac',

Review comment (suggestion):
Other shows exist
```suggestion
    _VALID_URL = r'https?://(?:www\.)?ridehome\.info/show/[\w-]+/(?P<id>[\w-]+)/?(?:$|[?#])'
```


Code after:
from .art19 import Art19IE
from .common import InfoExtractor
from ..utils import extract_attributes, get_elements_html_by_class
from ..utils.traversal import traverse_obj


class RideHomeIE(InfoExtractor):
    _VALID_URL = r'https?://(?:www\.)?ridehome\.info/show/[\w-]+/(?P<id>[\w-]+)/?(?:$|[?#])'
    _TESTS = [{
        'url': 'https://www.ridehome.info/show/techmeme-ride-home/thu-1228-will-2024-be-the-year-apple-gets-serious-about-gaming-on-macs/',
        'info_dict': {
            'id': 'thu-1228-will-2024-be-the-year-apple-gets-serious-about-gaming-on-macs',
        },
        'playlist_count': 1,
        'playlist': [{
            'md5': 'c84ea3cc96950a9ab86fe540f3edc588',
            'info_dict': {
                'id': '540e5493-9fe6-4c14-a488-dc508d8794b2',
                'ext': 'mp3',
                'title': 'Thu. 12/28 – Will 2024 Be The Year Apple Gets Serious About Gaming On Macs?',
                'description': 'md5:9dba86ae9b5047a8150eceddeeb629c2',
                'series': 'Techmeme Ride Home',
                'series_id': '3c30e8f4-ab48-415b-9421-1ae06cd4058b',
                'upload_date': '20231228',
                'timestamp': 1703780995,
                'modified_date': '20231230',
                'episode_id': '540e5493-9fe6-4c14-a488-dc508d8794b2',
                'modified_timestamp': 1703912404,
                'release_date': '20231228',
                'release_timestamp': 1703782800,
                'duration': 1000.1502,
                'thumbnail': r're:^https?://content\.production\.cdn\.art19\.com/images/.*\.jpeg$',
            },
        }],
    }, {
        'url': 'https://www.ridehome.info/show/techmeme-ride-home/portfolio-profile-sensel-with-ilyarosenberg/',
        'info_dict': {
            'id': 'portfolio-profile-sensel-with-ilyarosenberg',