diff options
-rwxr-xr-x | later | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -77,10 +77,8 @@ class TitleMap: sys.exit(f"later: cannot read title cache: {err}") def get(self, key): - title = self.map.get(key) - - if title or title == "": - return title + if key in self.map: + return self.map[key] if not re.fullmatch(r"https?://.*", key): return None |