diff --git a/app/discord_client.py b/app/discord_client.py index 723da3a..610b335 100644 --- a/app/discord_client.py +++ b/app/discord_client.py @@ -2,7 +2,6 @@ import os import requests from loguru import logger - from twitch_client import StreamInformation diff --git a/app/main.py b/app/main.py index b5fc39f..5ed6a8f 100644 --- a/app/main.py +++ b/app/main.py @@ -1,11 +1,10 @@ import os import time +from discord_client import DiscordClient from loguru import logger from requests import HTTPError - -from discord_client import DiscordClient -from twitch_client import TwitchClient, StreamInformation +from twitch_client import StreamInformation, TwitchClient class Main: diff --git a/app/twitch_client.py b/app/twitch_client.py index 700bf2d..c90f276 100644 --- a/app/twitch_client.py +++ b/app/twitch_client.py @@ -34,10 +34,8 @@ class StreamInformation: @property def thumbnail_url(self): - return ( - self._thumbnail_url - .replace("{width}", "1280") - .replace("{height}", "720") + return self._thumbnail_url.replace("{width}", "1280").replace( + "{height}", "720" ) @@ -145,7 +143,7 @@ class TwitchClient: started_at=stream_data.get("started_at"), _thumbnail_url=self._cache_prevent.prevent_cache_on_url( url=stream_data.get("thumbnail_url"), - ) + ), ) def get_vod(self, user_id: str, is_retry: bool = False) -> str | None: