From 328cfef9eead56818cc60a04cda7b904c51b8c63 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 6 Nov 2025 12:04:10 +0100 Subject: [PATCH] Remove dead code. --- src/ytplom/http.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ytplom/http.py b/src/ytplom/http.py index b867914..a99ada4 100644 --- a/src/ytplom/http.py +++ b/src/ytplom/http.py @@ -395,19 +395,9 @@ class _TaskHandler(PlomHttpHandler): video_data = YoutubeVideo.get_one(conn, video_id) except NotFoundException: video_data = YoutubeVideo(video_id) - file_digest: Optional[str] - file_path: Optional[Path] - try: - file = VideoFile.get_by_yt_id(conn, video_id) - file_digest = file.digest.b64 - file_path = file.rel_path if file.present else None - except NotFoundException: - file_path, file_digest = None, None self._send_rendered_template( _NAME_TEMPLATE_YT_RESULT, {'video_data': video_data, - 'file_digest': file_digest, - 'file_path': file_path, 'queries': linked_queries, 'youtube_prefix': ( YOUTUBE_URL_PREFIX if self.server.config.link_originals -- 2.30.2