Skip to content

Commit

Permalink
chore(client): Rephrase comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Damego committed Feb 4, 2023
1 parent 45a28ca commit de956f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anilibria/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def _on_playlist_update(self, event: PlaylistUpdate):
# Убеждаемся, что ивент затрагивает обновление эпизода, а не другие данные
if not event.updated_episode or not event.updated_episode.hls:
return
# Проверяем, что все три качества видео присутствуют
# Проверяем, что хотя бы одно из трёх качеств видео отсутствует, иначе это перезалив
hls = event.updated_episode.hls
if not hls.sd or not hls.hd or not hls.fhd:
return
Expand All @@ -66,7 +66,7 @@ async def _on_playlist_update(self, event: PlaylistUpdate):
# - значения hls эпизода
if (previous_hls := episode.get("hls")) is None:
return
# Проверяем, не перезалив ли это
# Если есть предыдущее значение, значит это перезалив
if all(v is not None for v in previous_hls.values()):
return

Expand Down

0 comments on commit de956f7

Please sign in to comment.