diff --git a/od_database b/od_database index 1ff1e03..faeff70 160000 --- a/od_database +++ b/od_database @@ -1 +1 @@ -Subproject commit 1ff1e039f5aed3394cd9ff0f0e6e4b88d3b0618e +Subproject commit faeff701dee8b9660fd850a736593c40b4d89219 diff --git a/od_db_client.py b/od_db_client.py index 48c4f3a..e7231d2 100644 --- a/od_db_client.py +++ b/od_db_client.py @@ -107,18 +107,9 @@ class OdDatabase: else: hl_name = src["name"] - # Path highlight - if "path" in hit["highlight"]: - hl_path = format_highlight(hit["highlight"]["path"][0]) - else: - hl_path = src["path"] - hl_path = truncate_path(hl_path, 35) - hl_path += "/" if hl_path else "" - - message += "[" + src["website_url"] + "](https://od-db.the-eye.eu/website/" + str(src["website_id"]) + "/)" + hl_path + message += "[" + src["website_url"] + "](https://od-db.the-eye.eu/website/" + str(src["website_id"]) + "/).../" message += hl_name + ("." if src["ext"] else "") + src["ext"] + " | " - message += humanfriendly.format_size(src["size"]) + " | " - message += time.strftime("%Y-%m-%d", time.gmtime(src["mtime"])) + " \n" + message += humanfriendly.format_size(src["size"]) + " \n" else: message += "\n"