From: Christian Heller Date: Thu, 6 Nov 2025 11:04:10 +0000 (+0100) Subject: Remove dead code. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/static/%7Broute%7D?a=commitdiff_plain;p=ytplom Remove dead code. --- 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