imartemy1524 / vk_audio

Модуль на python для работы с аудио вк
46 stars 4 forks source link

PermissionError: Undefined error #12

Open aweone opened 2 years ago

aweone commented 2 years ago

Не работает библиотека. Авторизируюсь через токен. Код и ошибка:

import vk_audio, vk_api
vk_session = vk_api.VkApi(token="токен")
vk = vk_audio.VkAudio(vk=vk_session)
print(vk.search("Query").Audios)

Traceback (most recent call last):
  File "/Users/paul/PycharmProjects/VKAudioDownloaderBot/main.py", line 4, in <module>
    print(vk.search("Query").Audios)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/vk_audio/audio.py", line 49, in Audios
    if(not self._audios_loaded):self.load_audios();
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/vk_audio/audio.py", line 75, in load_audios
    if(not audios_json['payload'][1][0]):raise PermissionError("Undefined error")
PermissionError: Undefined error