[koofer] include '{hash}' in default filenames
This commit is contained in:
@@ -18,6 +18,7 @@ class KoofrSharedExtractor(Extractor):
|
|||||||
subcategory = "shared"
|
subcategory = "shared"
|
||||||
root = "https://app.koofr.net"
|
root = "https://app.koofr.net"
|
||||||
directory_fmt = ("{category}", "{post[title]} ({post[id]})", "{path:I}")
|
directory_fmt = ("{category}", "{post[title]} ({post[id]})", "{path:I}")
|
||||||
|
filename_fmt = "{filename} ({hash[:8]}).{extension}"
|
||||||
archive_fmt = "{post[id]}_{path:J/}_{hash|id}"
|
archive_fmt = "{post[id]}_{path:J/}_{hash|id}"
|
||||||
pattern = (r"(?:https?://)?(?:"
|
pattern = (r"(?:https?://)?(?:"
|
||||||
r"(?:app\.)?koofr\.(?:net|eu)/links/([\w-]+)|"
|
r"(?:app\.)?koofr\.(?:net|eu)/links/([\w-]+)|"
|
||||||
|
|||||||
Reference in New Issue
Block a user