[twitter] use '{author[name]' in default directory names

with the changes to 'user' (749802c7),
'{user[name]' with enabled retweets / quote tweets
would put a lot of them in a wrong directory
This commit is contained in:
Mike Fährmann
2022-08-12 11:36:55 +02:00
parent 764906e1af
commit 9ad3cdc5d8

View File

@@ -23,7 +23,7 @@ BASE_PATTERN = (
class TwitterExtractor(Extractor):
"""Base class for twitter extractors"""
category = "twitter"
directory_fmt = ("{category}", "{user[name]}")
directory_fmt = ("{category}", "{author[name]}")
filename_fmt = "{tweet_id}_{num}.{extension}"
archive_fmt = "{tweet_id}_{retweet_id}_{num}"
cookiedomain = ".twitter.com"