mirror of
https://github.com/9001/copyparty.git
synced 2025-11-04 22:03:21 +00:00
use --og-title as fallback if template gives blank result
This commit is contained in:
@@ -4857,7 +4857,7 @@ class HttpCli(object):
|
|||||||
while title.endswith(" - "):
|
while title.endswith(" - "):
|
||||||
title = title[:3]
|
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 "")
|
title = str(vn.flags.get("og_title") or "")
|
||||||
|
|
||||||
for tag, hname in tagmap.items():
|
for tag, hname in tagmap.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user