From 8c84e27a0a4440180cab59a901b783e26e084406 Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Sun, 7 Sep 2025 12:40:08 +0200 Subject: [PATCH] More fixes --- app/app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index 0b486ac..46051d1 100644 --- a/app/app.py +++ b/app/app.py @@ -116,13 +116,17 @@ def search(): ctx = h.get("_formatted",{}).get("text", h.get("text","")[:300]) segs = h.get("segments",[]) ts = int(segs[0]["start"]) if segs else 0 - open_link = f"/open?file={{requests.utils.quote(src)}}&t={ts}" if typ=='podcast' else f"/open?file={{requests.utils.quote(src)}}" + if typ == 'podcast': + open_link = f"/open?file={requests.utils.quote(src)}&t={ts}" + else: + open_link = f"/open?file={requests.utils.quote(src)}" + transcript_link = f" | Transcript" if typ == 'podcast' else "" badge = f"{typ}" out.append( f"
{badge}{t}
{src}" f"

{ctx}

" f"Open" - f"{' | Transcript' if typ=='podcast' else ''}" + f"{transcript_link}" f"
" ) return "\n".join(out) or "No results yet."