Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: jroth55/sbstck-dl

Tags

v0.7

Toggle v0.7's commit message
feat: add archive index page generation with comprehensive metadata

Add --create-archive flag to generate organized index pages linking all downloaded posts.

Features:
- Archive pages in HTML/Markdown/Text formats matching post format
- Post metadata: titles, publication/download dates, descriptions, cover images
- Automatic sorting by publication date (newest first)
- Enhanced post extraction for subtitle (.subtitle) and cover image (og:image)
- Integration with single post and bulk download workflows
- Comprehensive test coverage (30+ new test cases)
- Complete documentation and technical specifications

Usage: sbstck-dl download --url https://example.substack.com --create-archive

Generated files: index.{html|md|txt} in output directory root

v0.6.7

Toggle v0.6.7's commit message
chore: bump version to v0.6.7

v0.6.6

Toggle v0.6.6's commit message
chore: bump version to v0.6.6

v0.6.5

Toggle v0.6.5's commit message
fix: prevent Windows test timeout in file download test server

The test server's timeout simulation was using an infinite select{} which
caused the Windows tests to hang indefinitely. Added a 5-second timeout
to ensure the server responds with a proper timeout status instead of
blocking forever.

v0.6.4

Toggle v0.6.4's commit message
chore: bump version to v0.6.4

v0.6.3

Toggle v0.6.3's commit message
chore: bump version to v0.6.3

v0.6.2

Toggle v0.6.2's commit message
fix: prevent comma-separated URL fragments in srcset parsing

Refactors srcset parsing to handle Substack CDN URLs that contain commas
in their parameters (like w_424,c_limit,f_auto,q_auto:good). Previous
naive comma splitting was treating URL parameter fragments as separate
entries, causing malformed image paths in downloaded HTML.

- Adds robust regex-based parseSrcsetEntries() for URLs with embedded commas
- Updates extractURLFromSrcset, extractAllURLsFromSrcset, and updateSrcsetAttribute
- Updates test cases to use proper HTTP URLs instead of filenames
- Verified fix works on real Substack posts with complex CDN URLs

Fixes regression from commit 57657b2 where tests were failing due to
stricter URL validation conflicting with test expectations.

v0.6.1

Toggle v0.6.1's commit message
chore: bump version to v0.6.1

v0.6.0

Toggle v0.6.0's commit message
chore: bump version to v0.6.0

v0.5.0

Toggle v0.5.0's commit message
fix: resolve Windows CI test failures for image downloader

Remove backslash check in generateSafeFilename to prevent false matches on Windows paths
Use filepath.Join in test to ensure cross-platform path compatibility