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

. #4017

Closed
curya opened this issue May 6, 2023 · 5 comments
Closed

. #4017

curya opened this issue May 6, 2023 · 5 comments

Comments

@curya
Copy link

curya commented May 6, 2023

.

@mikf
Copy link
Owner

mikf commented May 6, 2023

It is not smart enough and will indeed skip all the newer posts in those categories.

I always assumed stories and highlights were returned in newest-first order ... maybe it was like that the last time I checked.

@mikf
Copy link
Owner

mikf commented May 26, 2023

Regarding post/file order, I've added two options for that:

  • order-posts to sort highlight posts from instagram.com/USER/highlights
    Kind of like chapter-reverse. Only applies to highlights.
  • order-files to reverse the order in which files of a single post get returned.
    Basically the same as page-reverse.

Commits a83983c and d680623 are not part of a release yet, but there will be one this weekend.

@mikf
Copy link
Owner

mikf commented May 27, 2023

You can use --filter "not pinned" to ignore them. See #2752.

@mikf mikf closed this as completed May 27, 2023
@neta540
Copy link

neta540 commented Nov 16, 2023

@mikf I am trying to download instagram highlights by fetching the last few highlights and utilizing -A to make the process as fast as possible, with the least amount of API calls as well, utilizing an archive file.

It seems like the sorting options we have are fetching the highlights in a sorted order however they are still grouped by highlight_title. Which is making the highlights to be downloaded not as intended for me.

...
      "order-files": "desc",
      "order-posts": "desc",
      "highlights": {
        "directory": [
          "highlights",
          "{highlight_title}"
        ],
        "archive-prefix": "{subcategory}_{highlight_title}_",
        "filename": {
          "": "{date:%Y%m%d%H%M%S} {num:>03} {shortcode}.{extension}"
        }
      }
...

when gallery-dl is passed with -A 3 the output is the following:

# .\highlights\M\20210124163805 005 <redacted>.jpg
# .\highlights\M\20210124162615 004 <redacted>.jpg
# .\highlights\M\20200903214449 003 <redacted>.jpg

However, the 3 most recent highlights are not the highlights shown, even though they are sorted. When passing -A 8 we can see this output:

# .\highlights\M\20210124163805 005 <redacted>.jpg
# .\highlights\M\20210124162615 004 <redacted>.jpg
# .\highlights\M\20200903214449 003 <redacted>.jpg
# .\highlights\M\20200903190809 002 <redacted>.jpg
# .\highlights\M\20200821232100 001 <redacted>.mp4
# .\highlights\D\20210112151057 013 <redacted>.jpg
# .\highlights\D\20210105192252 012 <redacted>.jpg
# .\highlights\D\20210102160042 011 <redacted>.jpg

From this output we can learn that the 3 most recent highlights are supposed to be these:

# .\highlights\M\20210124163805 005 <redacted>.jpg
# .\highlights\M\20210124162615 004 <redacted>.jpg
# .\highlights\D\20210112151057 013 <redacted>.jpg

Is there a way to fetch the highlights in the order shown here so they're not grouped by highlight_title?

@neta540
Copy link

neta540 commented Nov 17, 2023

Seems like order-posts is sorting the highlight IDs, instead of the media in these highlights. I was hoping to have the sort order by reels_media items IDs. I've saved reels_media response to look at it. Running jq [.reels_media[].items[].id] on the response. This provides the array I am looking to be sorted by order-posts.

@curya curya changed the title [Question] How does -A work with Instagram stories and highlights? . Jun 28, 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

3 participants