Skip to content

Hidden ^ command to download 7digital zip files #88

Description

@Jason-Abbott

Add a hidden TUI command bound to ^ (caret) that:

  1. Opens a modal/text input prompting for a 7digital download ID (e.g. 844708572 from https://us.7digital.com/download/844708572)
  2. On Enter, navigates to https://us.7digital.com/download/<id>
  3. Validates the page/download exists
  4. Finds and downloads all zip files linked on the page
  5. Saves them to an appropriate location

Tasks

  • Inspect 7digital download page to understand structure and zip file links
  • Add ^ keybinding to TUI
  • Create modal/text input for download ID entry (3 fields: ID, email, password)
  • Implement page fetching and zip link extraction
  • Implement zip file downloading
  • Wire it all together

Protocol Notes

Login

  • POST https://us.7digital.com/signin with form body: referrer=&email=<email>&password=<password>
  • Response: 302 + Set-Cookie: session=<JWT>; secureSession=<JWT> (HttpOnly, .7digital.com)

Download Page

  • GET https://us.7digital.com/download/<orderId> with cookies
  • Parse HTML: form[action="/download/release/<releaseId>"] + input[name=formatId] value

Download ZIP

  • GET https://us.7digital.com/download/release/<releaseId>?formatId=<formatId> with cookies
  • 302 → signed media.geo.7digital.com URL (server generates OAuth sig)
  • 200 with Content-Disposition: attachment; filename="Artist - Album.zip"

Credentials

  • Store 7digital_user and 7digital_pass in DB settings table
  • Prompt in TUI modal if not set

👾 This issue is managed by Jig. Edits made here will be overwritten.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions