From 48a6789d3679dbd524ebef4d484d91c9c4290c03 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 5 May 2024 11:25:52 +0000 Subject: [PATCH] use `--og-title` as fallback if template gives blank result --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 7fc3c570..86493666 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -4857,7 +4857,7 @@ class HttpCli(object): while title.endswith(" - "): title = title[:3] - if vn.flags.get("og_s_title"): + if vn.flags.get("og_s_title") or not title: title = str(vn.flags.get("og_title") or "") for tag, hname in tagmap.items():