mishl-dev / Discord-AI-Chatbot

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API
GNU Affero General Public License v3.0
1.32k stars 417 forks source link

Возникает ошибка при создании субтитрова для выбраного видео. #92

Closed Qiota closed 1 year ago

Qiota commented 1 year ago

ERROR discord.client Ignoring exception in on_message Traceback (most recent call last): File "/home/runner/test/.pythonlibs/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event await coro(*args, **kwargs) File "main.py", line 214, in on_message yt_transcript = await get_transcript_from_message(message.content) File "main.py", line 98, in get_transcript_from_message transcript = YouTubeTranscriptApi.get_transcript(video_id) File "/home/runner/test/.pythonlibs/lib/python3.10/site-packages/youtube_transcript_api/_api.py", line 137, in get_transcript return cls.list_transcripts(video_id, proxies, cookies).find_transcript(languages).fetch(preserve_formatting=preserve_formatting) File "/home/runner/test/.pythonlibs/lib/python3.10/site-packages/youtube_transcript_api/_transcripts.py", line 183, in find_transcript return self._find_transcript(language_codes, [self._manually_created_transcripts, self._generated_transcripts]) File "/home/runner/test/.pythonlibs/lib/python3.10/site-packages/youtube_transcript_api/_transcripts.py", line 219, in _find_transcript raise NoTranscriptFound( youtube_transcript_api._errors.NoTranscriptFound: Could not retrieve a transcript for the video https://www.youtube.com/watch?v=bajv3SNoUa4! This is most likely caused by:

No transcripts were found for any of the requested language codes: ('en',)

For this video (bajv3SNoUa4) transcripts are available in the following languages:

(MANUALLY CREATED) None

(GENERATED)

(TRANSLATION LANGUAGES)

If you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!

mishl-dev commented 1 year ago

я также добавил код для суммирования русского контента

image