Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[instagram] Getting "None" when I use "{date:%Y-%m-%d}" in directory for downloading stories. #6677

Closed
lillytoo opened this issue Dec 16, 2024 · 0 comments

Comments

@lillytoo
Copy link

I want to arrange my downloaded stories by their dates, but when I use "{date:%Y-%m-%d}" in directory, I get "None".

    "instagram": {
        "include": "info,avatar,stories,posts",
  	"cookies"      : "login.txt",
        "sleep-request": "15-45",
        "sleep"        : "2-10",

        "posts": {
            "directory": ["instagram", "{username}", "Posts", "{date:%Y-%m-%d}"],
            "filename" : "{date:%Y-%m-%d}_{num} - {description[:90]} - {filename}.{extension}",
  		"order-files": "asc",
  		"metadata": true,
  		"postprocessors": ["metadata-insta"]
        },
        "stories": {
  		"directory": ["instagram", "{username}", "Stories", "{username} - {date:%Y-%m-%d}"],
            "filename" : "(Story){date:%Y-%m-%d}_{num}-{post_id}.{extension}",
            "order-files": "asc",
  		"metadata": true,
  		"postprocessors": ["metadata-insta"]
        },

        "api": "rest",
        "cursor": true,
        "max-posts": null,
  	"download-archive": true,
  	"archive-event": ["file", "skip"],
        "order-files": "asc",
        "order-posts": "asc",
        "previews": true,
        "videos": true

Output:

gallery-dl\instagram\banffphotography\Stories\banffphotography - None\

It works just fine when downloading posts instead.

gallery-dl\instagram\banffphotography\Posts\2023-06-19\

mikf added a commit that referenced this issue Dec 20, 2024
generalize 'date' extraction for all post types
@mikf mikf closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants