From: Christian Heller Date: Fri, 21 Feb 2025 13:36:44 +0000 (+0100) Subject: Remove youtube watch link. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/blog?a=commitdiff_plain;p=ytplom Remove youtube watch link. --- diff --git a/src/templates/yt_result.tmpl b/src/templates/yt_result.tmpl index ea81f45..5216bc1 100644 --- a/src/templates/yt_result.tmpl +++ b/src/templates/yt_result.tmpl @@ -8,7 +8,7 @@ description:{{video_data.description}} duration:{{video_data.duration}} definition:{{video_data.definition}} -YouTube ID:{{video_data.id_}} (watch) +YouTube ID:{{video_data.id_}} download:{% if is_temp %}working on it{% elif file_path %}{{file_path}}{% else %}please do{% endif %} linked queries: diff --git a/src/ytplom/http.py b/src/ytplom/http.py index c2a25d4..12fa9bc 100644 --- a/src/ytplom/http.py +++ b/src/ytplom/http.py @@ -14,8 +14,7 @@ from plomlib.web import ( from ytplom.db import Hash, DbConn from ytplom.misc import ( FilterStr, FlagName, QueryId, QueryText, TagSet, YoutubeId, - FILE_FLAGS, PATH_THUMBNAILS, YOUTUBE_URL_PREFIX, - ensure_expected_dirs, + FILE_FLAGS, PATH_THUMBNAILS, ensure_expected_dirs, Config, DownloadsManager, Player, QuotaLog, VideoFile, YoutubeQuery, YoutubeVideo ) @@ -393,7 +392,6 @@ class _TaskHandler(PlomHttpHandler): 'is_temp': video_id in self.server.downloads.ids_unfinished, 'file_digest': file_digest, 'file_path': file_path, - 'youtube_prefix': YOUTUBE_URL_PREFIX, 'queries': linked_queries}) def _send_yt_queries_index_and_search(self) -> None: