Skip to content

fix(media): correct video downloads and add Story format selection - #209

Open
atlab95 wants to merge 1 commit into
ReSo7200:mainfrom
atlab95:fix/issue-204-story-downloads
Open

fix(media): correct video downloads and add Story format selection#209
atlab95 wants to merge 1 commit into
ReSo7200:mainfrom
atlab95:fix/issue-204-story-downloads

Conversation

@atlab95

@atlab95 atlab95 commented Aug 29, 2026

Copy link
Copy Markdown

Summary

This PR fixes media downloads being saved with the wrong type and adds an
explicit format choice for Stories that expose both an image and a rendered
video.

Fixes

  • Resolves modern Instagram media models independently from the legacy
    MutableMediaDictIntf.
  • Supports LiveTreeMediaDict/Pando video-version getters.
  • Prevents Reels and video Stories from silently falling back to their JPG cover.
  • Detects the downloaded payload from its signature and Content-Type.
  • Corrects the filename extension and MIME type before saving.

Story feature

When both variants are available, the Story downloader now offers:

  • Download photo
  • Download video with music

Plain photo Stories continue to download directly.

Testing

  • ./gradlew testDebugUnitTest — 14 tests passed
  • ./gradlew assembleDebug
  • APK signature and archive integrity verified
  • Manual test on Instagram/LSPosed after fully restarting the Instagram process

Fixes #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downloading reels as photo

1 participant