Skip to content

Fix story video downloads backed by blob URLs - #77

Open
paha77 wants to merge 1 commit into
y252328:masterfrom
paha77:fix-story-blob-video-download
Open

paha77 wants to merge 1 commit into
y252328:masterfrom
paha77:fix-story-blob-video-download

Conversation

@paha77

@paha77 paha77 commented Sep 2, 2026

Copy link
Copy Markdown

Fixes story video downloads when Instagram exposes the <video> source as a blob: MediaSource URL, which cannot be downloaded directly.

Changes:

  • Try multiple candidate media IDs for story info API resolution.
  • Use the web media info endpoint with the web app ID fallback.
  • Search embedded page JSON for story video_versions / video_resources.
  • Fall back to recent CDN MP4 resource URLs and strip bytestart / byteend so the full resource is downloaded instead of one small range chunk.
  • Use the story URL username for filenames when the header username is unavailable.

Tested manually on a private profile story video where the original script downloaded/linked a blob: URL. The patched script downloaded a valid MP4 with the expected username in the
filename.

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.

1 participant