From 59ee8ed161dea20edb06321a775f8a5f22d1fc06 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 19 Mar 2025 17:58:29 +0100 Subject: [PATCH] lint --- rwx/sw/ytdlp/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rwx/sw/ytdlp/__init__.py b/rwx/sw/ytdlp/__init__.py index 5ada933..b609019 100644 --- a/rwx/sw/ytdlp/__init__.py +++ b/rwx/sw/ytdlp/__init__.py @@ -162,7 +162,9 @@ class Video(Object): # TODO subtitles self.chapters = d["chapters"] self.likes = d["like_count"] - self.timestamp = datetime.fromtimestamp(d["timestamp"]).strftime(TIMESTAMP) + self.timestamp = datetime.fromtimestamp(d["timestamp"]).strftime( + TIMESTAMP + ) self.fulltitle = d["fulltitle"] @@ -175,7 +177,9 @@ def download_video(video_id: str | None) -> None: if video_id: ytdl( { - "format": "+".join([f"best{av}[ext={EXT}]" for av in ["video", "audio"]]), + "format": "+".join( + [f"best{av}[ext={EXT}]" for av in ["video", "audio"]] + ), "outtmpl": "%(id)s.%(ext)s", "postprocessors": [ {