1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +01:00

[cohost] limit 'headline' length in default filenames (#6262)

This commit is contained in:
Mike Fährmann 2024-10-10 09:37:15 +02:00
parent 4b7a24122e
commit c681e94736
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -19,7 +19,7 @@ class CohostExtractor(Extractor):
category = "cohost"
root = "https://cohost.org"
directory_fmt = ("{category}", "{postingProject[handle]}")
filename_fmt = ("{postId}_{headline:?/_/}{num}.{extension}")
filename_fmt = ("{postId}_{headline:?/_/[b:200]}{num}.{extension}")
archive_fmt = "{postId}_{num}"
def _init(self):