From 454d52039434f8680aa2dcee32941a9872e67f17 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 21 Nov 2022 15:50:01 +0700 Subject: [PATCH] standard video thumb path building --- tubearchivist/home/src/frontend/searching.py | 2 +- tubearchivist/home/templates/home/channel_id.html | 2 +- tubearchivist/home/templates/home/downloads.html | 2 +- tubearchivist/home/templates/home/home.html | 4 ++-- tubearchivist/home/templates/home/playlist_id.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tubearchivist/home/src/frontend/searching.py b/tubearchivist/home/src/frontend/searching.py index 839e1961..a082f053 100644 --- a/tubearchivist/home/src/frontend/searching.py +++ b/tubearchivist/home/src/frontend/searching.py @@ -120,7 +120,7 @@ class SearchHandler: if "vid_thumb_url" in hit_keys: youtube_id = hit["source"]["youtube_id"] thumb_path = ThumbManager(youtube_id).vid_thumb_path() - hit["source"]["vid_thumb_url"] = thumb_path + hit["source"]["vid_thumb_url"] = f"/cache/{thumb_path}" if "channel_last_refresh" in hit_keys: refreshed = hit["source"]["channel_last_refresh"] diff --git a/tubearchivist/home/templates/home/channel_id.html b/tubearchivist/home/templates/home/channel_id.html index 6480f86c..a9fd843e 100644 --- a/tubearchivist/home/templates/home/channel_id.html +++ b/tubearchivist/home/templates/home/channel_id.html @@ -100,7 +100,7 @@