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)
ru ("Russian (auto-generated)")[TRANSLATABLE]
(TRANSLATION LANGUAGES)
af ("Afrikaans")
ak ("Akan")
sq ("Albanian")
am ("Amharic")
ar ("Arabic")
hy ("Armenian")
as ("Assamese")
ay ("Aymara")
az ("Azerbaijani")
bn ("Bangla")
eu ("Basque")
be ("Belarusian")
bho ("Bhojpuri")
bs ("Bosnian")
bg ("Bulgarian")
my ("Burmese")
ca ("Catalan")
ceb ("Cebuano")
zh-Hans ("Chinese (Simplified)")
zh-Hant ("Chinese (Traditional)")
co ("Corsican")
hr ("Croatian")
cs ("Czech")
da ("Danish")
dv ("Divehi")
nl ("Dutch")
en ("English")
eo ("Esperanto")
et ("Estonian")
ee ("Ewe")
fil ("Filipino")
fi ("Finnish")
fr ("French")
gl ("Galician")
lg ("Ganda")
ka ("Georgian")
de ("German")
el ("Greek")
gn ("Guarani")
gu ("Gujarati")
ht ("Haitian Creole")
ha ("Hausa")
haw ("Hawaiian")
iw ("Hebrew")
hi ("Hindi")
hmn ("Hmong")
hu ("Hungarian")
is ("Icelandic")
ig ("Igbo")
id ("Indonesian")
ga ("Irish")
it ("Italian")
ja ("Japanese")
jv ("Javanese")
kn ("Kannada")
kk ("Kazakh")
km ("Khmer")
rw ("Kinyarwanda")
ko ("Korean")
kri ("Krio")
ku ("Kurdish")
ky ("Kyrgyz")
lo ("Lao")
la ("Latin")
lv ("Latvian")
ln ("Lingala")
lt ("Lithuanian")
lb ("Luxembourgish")
mk ("Macedonian")
mg ("Malagasy")
ms ("Malay")
ml ("Malayalam")
mt ("Maltese")
mi ("Māori")
mr ("Marathi")
mn ("Mongolian")
ne ("Nepali")
nso ("Northern Sotho")
no ("Norwegian")
ny ("Nyanja")
or ("Odia")
om ("Oromo")
ps ("Pashto")
fa ("Persian")
pl ("Polish")
pt ("Portuguese")
pa ("Punjabi")
qu ("Quechua")
ro ("Romanian")
ru ("Russian")
sm ("Samoan")
sa ("Sanskrit")
gd ("Scottish Gaelic")
sr ("Serbian")
sn ("Shona")
sd ("Sindhi")
si ("Sinhala")
sk ("Slovak")
sl ("Slovenian")
so ("Somali")
st ("Southern Sotho")
es ("Spanish")
su ("Sundanese")
sw ("Swahili")
sv ("Swedish")
tg ("Tajik")
ta ("Tamil")
tt ("Tatar")
te ("Telugu")
th ("Thai")
ti ("Tigrinya")
ts ("Tsonga")
tr ("Turkish")
tk ("Turkmen")
uk ("Ukrainian")
ur ("Urdu")
ug ("Uyghur")
uz ("Uzbek")
vi ("Vietnamese")
cy ("Welsh")
fy ("Western Frisian")
xh ("Xhosa")
yi ("Yiddish")
yo ("Yoruba")
zu ("Zulu")
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!
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!