Объекты событий#
- class EncodeStart(*, id, episode, resolution, quality, is_reupload)#
Объект для события
on_encode_start. Вызывается, когда начинается загрузка эпизода на сервер.@client.on(EncodeStart) async def start_encode(event: EncodeStart): ...
- class EncodeProgress(*, id, episode, resolution, quality, encoded_percent)#
Объект для события
on_encode_progress. Вызывается на каждые 5% загрузки.@client.on(EncodeProgress) async def progress(event: EncodeProgress): ...
- class EncodeEnd(*, id, episode, resolution, quality)#
Объект для события
on_encode_end. Вызывается, когда было загружено одно качество эпизода на сервер.@client.on(EncodeEnd) async def encode_end(event: EncodeEnd): ...
- class EncodeFinish(*, id, episode)#
Объект для события
on_encode_finish. Вызывается, когда все возможные качества эпизода были загружены на сервер.@client.on(EncodeFinish) async def encode_finish(event: EncodeFinish): ...
- class PlaylistUpdate(*, id=None, player=None, updated_episode=None, episode=None, diff=None, reupload=None)#
Модель для ивента
on_playlist_update. Вызывается при обновлении данных плейлиста тайтла.@client.on(PlaylistUpdate) async def on_playlist_update(event: PlaylistUpdate): ...
- class TitleUpdate(*, title=None, diff=None)#
Модель для ивента
on_title_update. Вызывается при изменении информации о тайтле.@client.on(TitleUpdate) async def on_title_update(event: TitleUpdate): ...
- class TorrentUpdate(*, id=None, torrents=None, updated_torrent_id=None, diff=None)#
Модель для ивента on_torrent_update. Вызывается при изменении информации о торрент файлах.
@client.on(TorrentUpdate) async def on_torrent_update(event: TorrentUpdate): ...
- class Subscription(*, subscribe, subscription_id)#
Модель для ивента on_subscription. Вызывается при подписке на события, приходящие с websocket.
@client.on(Subscription) async def event_subscription(event: Subscription): ...
- class Connect(*, api_version)#
Модель для события
on_connect. Вызывается при подключении к АПИ анилибрии. Может вызываться несколько раз.@client.on(Connect) async def connected(event: Connect): ...