home · contact · privacy
Remove youtube watch link. master
authorChristian Heller <c.heller@plomlompom.de>
Fri, 21 Feb 2025 13:36:44 +0000 (14:36 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 21 Feb 2025 13:36:44 +0000 (14:36 +0100)
src/templates/yt_result.tmpl
src/ytplom/http.py

index ea81f4584a4787f8266d965ebf3a2702720d586d..5216bc14d49adf7590ba3a4c236cd73a7ddec625 100644 (file)
@@ -8,7 +8,7 @@
 <tr><th>description:</th><td>{{video_data.description}}</td></tr>
 <tr><th>duration:</th><td>{{video_data.duration}}</td></tr>
 <tr><th>definition:</th><td>{{video_data.definition}}</td></tr>
-<tr><th>YouTube ID:</th><td>{{video_data.id_}} (<a href="{{youtube_prefix}}{{video_data.id_}}">watch</a>)</td></tr>
+<tr><th>YouTube ID:</th><td>{{video_data.id_}}</td></tr>
 <tr><th>download:</th><td>{% if is_temp %}working on it{% elif file_path %}<a href="/{{page_names.file}}/{{file_digest}}">{{file_path}}</a>{% else %}<a href="/{{page_names.download}}/{{video_data.id_}}">please do</a>{% endif %}</td></tr>
 <tr>
 <th>linked queries:</th>
index c2a25d4aa2bd4879a7e87b08478e5ef3ec55ff31..12fa9bcf27cfd0de9f56a44a9f381b4bfb66ea07 100644 (file)
@@ -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: