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

Code before:
                    # number of fragment that would subsequently requested with (`&sq=N`)
                    if fmt_stream.get('type') == 'FORMAT_STREAM_TYPE_OTF' and not bool(fmt_stream.get('drmFamilies')):
                        continue

                    stream_id = get_stream_id(fmt_stream)
                    if not all_formats:
                        if stream_id in stream_ids:
                            continue

                    pot_policy: GvsPoTokenPolicy = self._get_default_ytcfg(client_name)['GVS_PO_TOKEN_POLICY'][StreamingProtocol.HTTPS]

                    require_po_token = (
                        stream_id[0] not in ['18']
                        and gvs_pot_required(pot_policy, is_premium_subscriber, player_token_provided))

                    po_token = (
                        gvs_pots.get(client_name)
                        or fetch_po_token_func(required=require_po_token or pot_policy.recommended))
                    if po_token:
                        if client_name not in gvs_pots:
                            gvs_pots[client_name] = po_token

                    fmt_url = fmt_stream.get('url')
                    encrypted_sig, sc = None, None
                    if not fmt_url:
                        # We should still extract original/default language information
                        get_language_code_and_preference(fmt_stream)
                        sc = urllib.parse.parse_qs(fmt_stream.get('signatureCipher'))
                        fmt_url = url_or_none(try_get(sc, lambda x: x['url'][0]))
                        encrypted_sig = try_get(sc, lambda x: x['s'][0])
                        if not all((sc, fmt_url, player_url, encrypted_sig)):
                            msg = f'Some {client_name} client https formats have been skipped as they are missing a url. '
                            if client_name in ('web', 'web_safari'):
                                msg += 'YouTube is forcing SABR streaming for this client. '
                            else:
                                msg += (
                                    f'YouTube may have enabled the SABR-only or Server-Side Ad Placement experiment for '
                                    f'{"your account" if self.is_authenticated else "the current session"}. '
                                )
                            msg += 'See  https://github.com/yt-dlp/yt-dlp/issues/12482  for more details'
                            self.report_warning(msg, video_id, only_once=True)
                            continue

                    fmt = process_format_stream(fmt_stream, proto, missing_pot=require_po_token and not po_token)
                    if not fmt:
                        continue

                    # signature
                    # Attempt to load sig spec from cache
                    if encrypted_sig:
                        spec_cache_id = self._sig_spec_cache_id(player_url, len(encrypted_sig))

Review comment (suggestion):
```suggestion
                        # We still need to register original/default language information
                        # See: https://github.com/yt-dlp/yt-dlp/issues/14883
```

Code after:
                    # number of fragment that would subsequently requested with (`&sq=N`)
                    if fmt_stream.get('type') == 'FORMAT_STREAM_TYPE_OTF' and not bool(fmt_stream.get('drmFamilies')):
                        continue

                    stream_id = get_stream_id(fmt_stream)
                    if not all_formats:
                        if stream_id in stream_ids:
                            continue

                    pot_policy: GvsPoTokenPolicy = self._get_default_ytcfg(client_name)['GVS_PO_TOKEN_POLICY'][StreamingProtocol.HTTPS]

                    require_po_token = (
                        stream_id[0] not in ['18']
                        and gvs_pot_required(pot_policy, is_premium_subscriber, player_token_provided))

                    po_token = (
                        gvs_pots.get(client_name)
                        or fetch_po_token_func(required=require_po_token or pot_policy.recommended))
                    if po_token:
                        if client_name not in gvs_pots:
                            gvs_pots[client_name] = po_token

                    fmt_url = fmt_stream.get('url')
                    encrypted_sig, sc = None, None
                    if not fmt_url:
                        # We still need to register original/default language information
                        # See: https://github.com/yt-dlp/yt-dlp/issues/14883
                        get_language_code_and_preference(fmt_stream)
                        sc = urllib.parse.parse_qs(fmt_stream.get('signatureCipher'))
                        fmt_url = url_or_none(try_get(sc, lambda x: x['url'][0]))
                        encrypted_sig = try_get(sc, lambda x: x['s'][0])
                        if not all((sc, fmt_url, player_url, encrypted_sig)):
                            msg = f'Some {client_name} client https formats have been skipped as they are missing a url. '
                            if client_name in ('web', 'web_safari'):
                                msg += 'YouTube is forcing SABR streaming for this client. '
                            else:
                                msg += (
                                    f'YouTube may have enabled the SABR-only or Server-Side Ad Placement experiment for '
                                    f'{"your account" if self.is_authenticated else "the current session"}. '
                                )
                            msg += 'See  https://github.com/yt-dlp/yt-dlp/issues/12482  for more details'
                            self.report_warning(msg, video_id, only_once=True)
                            continue

                    fmt = process_format_stream(fmt_stream, proto, missing_pot=require_po_token and not po_token)
                    if not fmt:
                        continue

                    # signature
                    # Attempt to load sig spec from cache
                    if encrypted_sig: