yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
89.96k stars 6.98k forks source link

couldn't get the video content #11556

Open Sunda001 opened 11 hours ago

Sunda001 commented 11 hours ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Provide a description that is worded well enough to be understood

it returns 'Video unavailable. This video is not available' but when i use browser with the same account, the video is available.

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

yt-dlp --cookies s_cookies.txt -F https://youtu.be/p2ct4xXak24 -vU
[debug] Command-line config: ['--cookies', 'sansakerta006_cookies.txt', '-F', 'https://youtu.be/p2ct4xXak24', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.11.04 from yt-dlp/yt-dlp [197d0b03b] (pip)
[debug] Python 3.12.6 (CPython aarch64 64bit) - Linux-6.11.2-1-aarch64-ARCH-aarch64-with-glibc2.39 (OpenSSL 3.3.2 3 Sep 2024, glibc 2.39)
[debug] exe versions: ffmpeg 7.0.2 (setts), ffprobe 7.0.2
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, mutagen-1.47.0, requests-2.32.3, sqlite3-3.46.1, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Plugin directories: ['/home/sakty/automate-siakad-stkip-syekhManshur/siakad/lib/python3.12/site-packages/yt_dlp_plugins']
[debug] Loaded 1838 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.11.04 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.11.04 from yt-dlp/yt-dlp)
[youtube] Extracting URL: https://youtu.be/p2ct4xXak24
[youtube] p2ct4xXak24: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[youtube] p2ct4xXak24: Downloading ios player API JSON
[youtube] p2ct4xXak24: Downloading mweb player API JSON
ERROR: [youtube] p2ct4xXak24: Video unavailable. This video is not available
  File "/home/sakty/automate-siakad-stkip-syekhManshur/siakad/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 742, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sakty/automate-siakad-stkip-syekhManshur/siakad/lib/python3.12/site-packages/yt_dlp/extractor/youtube.py", line 4672, in _real_extract
    self.raise_no_formats(reason, expected=True)
  File "/home/sakty/automate-siakad-stkip-syekhManshur/siakad/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 1276, in raise_no_formats
    raise ExtractorError(msg, expected=expected, video_id=video_id)
bashonly commented 8 hours ago

but when i use browser with the same account, the video is available.

Is the browser on the same machine using the same IP? This looks like geo-restriction