mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-08 10:59:28 +00:00
fix subtitle URL building in search processor
This commit is contained in:
@@ -106,13 +106,15 @@ class SearchProcess:
|
|||||||
vid_thumb_url = ThumbManager(video_id).vid_thumb_path()
|
vid_thumb_url = ThumbManager(video_id).vid_thumb_path()
|
||||||
channel = self._process_channel(video_dict["channel"])
|
channel = self._process_channel(video_dict["channel"])
|
||||||
|
|
||||||
|
cache_root = EnvironmentSettings().get_cache_root()
|
||||||
|
media_root = EnvironmentSettings().get_media_root()
|
||||||
|
|
||||||
if "subtitles" in video_dict:
|
if "subtitles" in video_dict:
|
||||||
for idx, _ in enumerate(video_dict["subtitles"]):
|
for idx, _ in enumerate(video_dict["subtitles"]):
|
||||||
url = video_dict["subtitles"][idx]["media_url"]
|
url = video_dict["subtitles"][idx]["media_url"]
|
||||||
video_dict["subtitles"][idx]["media_url"] = f"/media/{url}"
|
video_dict["subtitles"][idx][
|
||||||
|
"media_url"
|
||||||
cache_root = EnvironmentSettings().get_cache_root()
|
] = f"{media_root}/{url}"
|
||||||
media_root = EnvironmentSettings().get_media_root()
|
|
||||||
|
|
||||||
video_dict.update(
|
video_dict.update(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user