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

Code before:
            r'<meta.*itemprop ?= ?"description".*content ?= ?"([^"]+)".*/>',
            webpage, 'Description', fatal=False)

        globalEmbed_url = self._search_regex(
            r'<script.+?window.globEmbedUrl = \'((?:https?:)?//(?:daxab\.com|dxb\.to|[^/]+/player)/[^\']+)\'.*?></script>',
            webpage, 'global Embed url', flags=re.DOTALL)
        hash = self._search_regex(
            r'<script id="data-embed-video.+?hash: "([^"]+)"[^<]*</script>',
            webpage, 'Hash', flags=re.DOTALL)

        embed_url = globalEmbed_url + hash

        if VKIE.suitable(embed_url):
            return self.url_result(embed_url, VKIE.ie_key(), video_id)

        embed_page = self._download_webpage(
            embed_url, video_id, 'Downloading embed webpage', headers={'Referer': url})

        globParams = self._parse_json(self._search_regex(
            r'<script id="globParams">.*window.globParams = ([^;]+);[^<]+</script>',
            embed_page, 'Global Parameters', flags=re.DOTALL), video_id, transform_source=js_to_json)
        hostName = compat_b64decode(globParams['server'][::-1]).decode()
        server = 'https://%s/method/video.get/' % hostName

        item = self._download_json(
            server + video_id, video_id,
            headers={'Referer': url}, query={
                'token': globParams['video']['access_token'],
                'videos': video_id,
                'ckey': globParams['c_key'],
                'credentials': globParams['video']['credentials'],
            })['response']['items'][0]

        formats = []
        for f_id, f_url in item.get('files', {}).items():
            if f_id == 'external':
                return self.url_result(f_url)
            ext, height = f_id.split('_')
            if traverse_obj(globParams, ('video', 'partial', 'quality', height)) is not None:
                formats.append({
                    'format_id': height + 'p',
                    'url': f'https://{hostName}/{f_url[8:]}&videos={video_id}&extra_key={globParams["video"]["partial"]["quality"][height]}',
                    'height': int_or_none(height),
                    'ext': ext,
                })
        self._sort_formats(formats)

        thumbnails = []
        for k, v in item.items():
            if k.startswith('photo_') and v:
                width = k.replace('photo_', '')

Review comment (suggestion):
```suggestion
            f'https://{hostName}/method/video.get/{video_id}', video_id,
```

Code after:

        if VKIE.suitable(embed_url):
            return self.url_result(embed_url, VKIE.ie_key(), video_id)

        embed_page = self._download_webpage(
            embed_url, video_id, 'Downloading embed webpage', headers={'Referer': url})

        glob_params = self._parse_json(self._search_regex(
            r'<script id="globParams">[^<]*window.globParams = ([^;]+);[^<]+</script>',
            embed_page, 'Global Parameters'), video_id, transform_source=js_to_json)
        host_name = compat_b64decode(glob_params['server'][::-1]).decode()

        item = self._download_json(
            f'https://{host_name}/method/video.get/{video_id}', video_id,
            headers={'Referer': url}, query={
                'token': glob_params['video']['access_token'],
                'videos': video_id,
                'ckey': glob_params['c_key'],
                'credentials': glob_params['video']['credentials'],
            })['response']['items'][0]

        formats = []
        for f_id, f_url in item.get('files', {}).items():
            if f_id == 'external':
                return self.url_result(f_url)
            ext, height = f_id.split('_')
            height_extra_key = traverse_obj(glob_params, ('video', 'partial', 'quality', height))
            if height_extra_key:
                formats.append({
                    'format_id': f'{height}p',
                    'url': f'https://{host_name}/{f_url[8:]}&videos={video_id}&extra_key={height_extra_key}',
                    'height': int_or_none(height),
                    'ext': ext,
                })
        self._sort_formats(formats)

        thumbnails = []
        for k, v in item.items():
            if k.startswith('photo_') and v:
                width = k.replace('photo_', '')
                thumbnails.append({
                    'id': width,
                    'url': v,
                    'width': int_or_none(width),
                })

        return {
            'id': video_id,
            'title': title,
            'formats': formats,
            'comment_count': int_or_none(item.get('comments')),