[koofer] include '{hash}' in default filenames

This commit is contained in:
Mike Fährmann
2026-02-12 19:26:46 +01:00
parent 0f41f343f4
commit 84b5b1e5e4

View File

@@ -18,6 +18,7 @@ class KoofrSharedExtractor(Extractor):
subcategory = "shared"
root = "https://app.koofr.net"
directory_fmt = ("{category}", "{post[title]} ({post[id]})", "{path:I}")
filename_fmt = "{filename} ({hash[:8]}).{extension}"
archive_fmt = "{post[id]}_{path:J/}_{hash|id}"
pattern = (r"(?:https?://)?(?:"
r"(?:app\.)?koofr\.(?:net|eu)/links/([\w-]+)|"