Skip to content

Commit

Permalink
use --og-title as fallback if template gives blank result
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed May 5, 2024
1 parent 36f2c44 commit 48a6789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copyparty/httpcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4857,7 +4857,7 @@ def tx_browser(self) -> bool:
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():
Expand Down

0 comments on commit 48a6789

Please sign in to comment.