use --og-title as fallback if template gives blank result

This commit is contained in:
ed 2024-05-05 11:25:52 +00:00
parent 36f2c446af
commit 48a6789d36

View file

@ -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():