Skip to content

Youtube链接报错(已经下载了cookie,并且闪过了正在下载视频,但日志报错) #868

@furunxungpt

Description

@furunxungpt

问题描述 | Problem Description

如题目,报错信息如下

日志信息(可选)| Logs (Optional)

开始下载视频: https://www.youtube.com/watch?v=Hm-ZIiwiN1o
使用cookiefile: C:\Program Files\VideoCaptioner\AppData\cookies.txt
2025-11-10 23:02:46 - video_download_thread - ERROR - 下载视频失败: ERROR: [youtube] Hm-ZIiwiN1o: Requested format is not available. Use --list-formats for a list of available formats
Traceback (most recent call last):
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1637, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1793, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1852, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2986, in process_video_result
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [youtube] Hm-ZIiwiN1o: Requested format is not available. Use --list-formats for a list of available formats

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\VideoCaptioner\app\thread\video_download_thread.py", line 33, in run
    self.download()
  File "C:\Program Files\VideoCaptioner\app\thread\video_download_thread.py", line 145, in download
    info_dict = ydl.extract_info(self.url, download=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1626, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1655, in wrapper
    self.report_error(str(e), e.format_traceback())
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1095, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Program Files\VideoCaptioner\runtime\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1034, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] Hm-ZIiwiN1o: Requested format is not available. Use --list-formats for a list of available formats

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions