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

Code before:
                    'url': r're:^https://.*\.pvvstream.pro/.*extra=',
                    'quality': '480',
                    'ext': 'mp4',
                },
                {
                    'url': r're:^https://.*\.pvvstream.pro/.*extra=',
                    'quality': '720',
                    'ext': 'mp4',
                },
            ]
        }
    }

    def _real_extract(self, url):
        video_id = self._match_id(url)
        webpage = self._download_webpage(url, video_id)
        title = self._og_search_title(webpage)
        duration = str_to_int(self._html_search_meta('video:duration', webpage, 'duration', default=None))
        description = self._og_search_property('description', webpage, default='').replace(' watch online hight quality video', '')
        tags = self._html_search_meta('video:tag', webpage, default='').split(', ')
        view_count = str_to_int(self._html_search_meta('ya:ovs:views_total', webpage, default=None))
        like_count = str_to_int(self._html_search_meta('ya:ovs:likes', webpage, default=None))
        upload_update = str_or_none(self._html_search_meta('ya:ovs:upload_date', webpage, default='').replace('-', ''))

        # fetch json
        m = self._html_search_regex(r'/' + video_id + r'\?(?:.*&)?m=([^&"\'\s,]+)', webpage, 'm')
        playlist = 'https://adult.noodlemagazine.com/playlist/%s?m=%s' % (video_id, m)
        info = self._download_json(playlist, video_id)
        thumbnail = self._og_search_property('image', webpage, default=None) or info.get('image')

        formats = []

        for mobj in info.get('sources'):
            formats.append({
                'url': traverse_obj(mobj, 'file'),
                'quality': traverse_obj(mobj, 'label'),
                'ext': traverse_obj(mobj, 'type'),
            })

        self._sort_formats(formats)

        return {
            'id': video_id,
            'formats': formats,
            'title': title,
            'thumbnail': thumbnail,
            'duration': duration,
            'description': description,
            'tags': tags,
            'view_count': view_count,
            'like_count': like_count,

Review comment (suggestion):
```suggestion
        m = self._html_search_regex(rf'/{video_id}\?(?:.*&)?m=([^&"\'\s,]+)', webpage, 'm')
```
what's m? Use a better name

Code after:
        like_count = parse_count(self._html_search_meta('ya:ovs:likes', webpage, default=None))
        upload_date = unified_strdate(self._html_search_meta('ya:ovs:upload_date', webpage, default=''))

        key = self._html_search_regex(rf'/{video_id}\?(?:.*&)?m=([^&"\'\s,]+)', webpage, 'key')
        playlist_info = self._download_json(f'https://adult.noodlemagazine.com/playlist/{video_id}?m={key}', video_id)
        thumbnail = self._og_search_property('image', webpage, default=None) or playlist_info.get('image')

        formats = [{
            'url': source.get('file'),
            'quality': source.get('label'),
            'ext': source.get('type'),
        } for source in playlist_info.get('sources')]

        self._sort_formats(formats)

        return {
            'id': video_id,
            'formats': formats,
            'title': title,
            'thumbnail': thumbnail,
            'duration': duration,
            'description': description,
            'tags': tags,
            'view_count': view_count,
            'like_count': like_count,
            'upload_date': upload_date,
            'age_limit': 18
        }