Repository: yt-dlp
Issue: [Broken Site] WP Pilot (Polish TV service)
Labels: account-needed,site-bug,can-share-account

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.02.04**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Poland

### Description

Basically, WP Pilot is a Polish TV streaming service, and I would like to get the stream URLs.

I'm providing my cookies file so yt-dlp can authenticate, and it succeeds up to the point it tries to get the stream URLs, those respond with a 403 error, I tried --get-url, but those URLs also don't work if opened in a browser.

The site is geo-locked, however I'm connecting from a Polish IP address so that shouldn't be an issue.

Command used: yt-dlp -vU --cookies=cookies.txt "https://pilot.wp.pl/tv/#tvp-1-hd"

### Verbose log

```shell
[debug] Command-line config: ['-vU', '--cookies=cookies.txt', 'https://pilot.wp.pl/tv/#tvp-1-hd']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] exe versions: ffmpeg 2021-12-20-git-631e31773b-full_build-www.gyan.dev (setts), ffprobe 2021-12-20-git-631e31773b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [wppilot] Extracting URL: https://pilot.wp.pl/tv/#tvp-1-hd
[debug] Loading wppilot.channel-list from cache
[wppilot] 3: Downloading JSON metadata
[wppilot] 3: Invalidating previous stream session
[debug] [wppilot] Extracting URL: https://pilot.wp.pl/tv/#tvp-1-hd
[debug] Loading wppilot.channel-list from cache
[wppilot] 3: Downloading JSON metadata
[wppilot] 3: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 3: Downloading 1 format(s): 2+audio-polski
WARNING: Requested formats are incompatible for merge and will be merged into mkv
[debug] Invoking downloader on "https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b889000_vo_t64MzYwcA==.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5", "https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b64000_ao_slpl_t64cG9sc2tp.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5"
[download] Destination: TVP 1 HD 2022-02-10 20_41 [3].mkv
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
" -i "https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b889000_vo_t64MzYwcA==.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5" -i "https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b64000_ao_slpl_t64cG9sc2tp.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5" -c copy -map "0:0" -map "1:0" -f matroska "file:TVP 1 HD 2022-02-10 20_41 [3].mkv.part"
ffmpeg version 2021-12-20-git-631e31773b-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 11.100 / 57. 11.100
  libavcodec     59. 14.100 / 59. 14.100
  libavformat    59. 10.100 / 59. 10.100
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8. 20.100 /  8. 20.100
  libswscale      6.  1.101 /  6.  1.101
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[tcp @ 00000183d7f20d40] Starting connection attempt to 212.77.107.1 port 443
[tcp @ 00000183d7f20d40] Successfully connected to 212.77.107.1 port 443
[hls @ 00000183d7f1cec0] Skip ('#EXT-X-VERSION:3')
[hls @ 00000183d7f1cec0] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 00000183d7f1cec0] HLS request for url 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-e8973af99_b889000_vo_t64MzYwcA==_16163534.ts', offset 0, playlist 0
[hls @ 00000183d7f1cec0] Opening 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-e8973af99_b889000_vo_t64MzYwcA==_16163534.ts' for reading
[tcp @ 00000183d8057b80] Starting connection attempt to 188.47.228.11 port 443
[tcp @ 00000183d8057b80] Successfully connected to 188.47.228.11 port 443
[hls @ 00000183d7f1cec0] HLS request for url 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-cef1c5895_b889000_vo_t64MzYwcA==_16163535.ts', offset 0, playlist 0
[hls @ 00000183d7f1cec0] Opening 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-cef1c5895_b889000_vo_t64MzYwcA==_16163535.ts' for reading
[tcp @ 00000183d8033100] Starting connection attempt to 188.47.228.11 port 443
[tcp @ 00000183d8033100] Successfully connected to 188.47.228.11 port 443
[h264 @ 00000183d82cc8c0] Reinit context to 640x368, pix_fmt: yuv420p
[hls @ 00000183d7f1cec0] HLS request for url 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-42bb9c8ed_b889000_vo_t64MzYwcA==_16163536.ts', offset 0, playlist 0
[https @ 00000183d7f21400] Opening 'https://wppilot.cache.orange.pl/ogrupawirtualnapolska/stream-cdn-1.videostar.pl/3/smil:basic/media-42bb9c8ed_b889000_vo_t64MzYwcA==_16163536.ts' for reading
Input #0, hls, from 'https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b889000_vo_t64MzYwcA==.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5':
  Duration: N/A, start: 72285.522200, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 0
  Stream #0:1: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
    Metadata:
      variant_bitrate : 0
[tcp @ 00000183d83885c0] Starting connection attempt to 212.77.107.1 port 443
[tcp @ 00000183d83885c0] Successfully connected to 212.77.107.1 port 443
[https @ 00000183d7fe7980] HTTP error 403 Forbidden
https://stream-cdn-2.videostar.pl/3/smil:basic/chunklist_b64000_ao_slpl_t64cG9sc2tp.m3u8?t2=ecd08ee2ff2948a2b2be60d1c8693cf0&t3=ecac0dc9ae5448028459719033af0e8b&t5=&device=web&type=free&ts=ccdb344c3679aade76f01c09c5d4c87da4ce7dcfa8176aa61a422c221105ebd5: Server returned 403 Forbidden (access denied)
[AVIOContext @ 00000183d8085ac0] Statistics: 48355 bytes read, 0 seeks
[AVIOContext @ 00000183d7f2b440] Statistics: 484664 bytes read, 0 seeks
[AVIOContext @ 00000183d809e000] Statistics: 897 bytes read, 0 seeks


ERROR: ffmpeg exited with code 1
  File "yt_dlp\__main__.py", line 19, in <module>
  File "yt_dlp\__init__.py", line 857, in main
  File "yt_dlp\__init__.py", line 847, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3212, in download
  File "yt_dlp\YoutubeDL.py", line 3185, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1372, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1381, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1465, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1536, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 1372, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1381, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1465, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1517, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2607, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3035, in process_info
  File "yt_dlp\YoutubeDL.py", line 2801, in dl
  File "yt_dlp\downloader\common.py", line 440, in download
  File "yt_dlp\downloader\external.py", line 68, in real_download
  File "yt_dlp\downloader\common.py", line 177, in report_error
  File "yt_dlp\YoutubeDL.py", line 930, in report_error
  File "yt_dlp\YoutubeDL.py", line 860, in trouble
```

### Verbose log with "--list-formats" flag

```
[debug] Command-line config: ['-vU', '--cookies=cookies.txt', '--list-formats', 'https://pilot.wp.pl/tv/#tvp-1-hd']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] exe versions: ffmpeg 2021-12-20-git-631e31773b-full_build-www.gyan.dev (setts), ffprobe 2021-12-20-git-631e31773b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [wppilot] Extracting URL: https://pilot.wp.pl/tv/#tvp-1-hd
[debug] Loading wppilot.channel-list from cache
[wppilot] 3: Downloading JSON metadata
[wppilot] 3: Invalidating previous stream session
[debug] [wppilot] Extracting URL: https://pilot.wp.pl/tv/#tvp-1-hd
[debug] Loading wppilot.channel-list from cache
[wppilot] 3: Downloading JSON metadata
[wppilot] 3: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for 3:
ID           EXT  RESOLUTION │  TBR PROTO  │ VCODEC       VBR ACODEC     MORE INFO
─────────────────────────────────────────────────────────────────────────────────────
audio-polski m3u8 audio only │      m3u8_n │ audio only       unknown    [pl] polski
1            mp4  256x144    │ 229k m3u8_n │ avc1.42c00c 229k video only
2            mp4  640x360    │ 889k m3u8_n │ avc1.4d401e 889k video only
```