mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 18:05:07 +00:00
Compare commits
2
Commits
78a6a97fcf
...
5.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b27b10746 | ||
|
|
b29ad6bc0d |
@@ -1,93 +0,0 @@
|
|||||||
name: Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths:
|
|
||||||
- "pyproject.toml"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check-version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
should_release: ${{ steps.version_check.outputs.should_release }}
|
|
||||||
new_version: ${{ steps.version_check.outputs.new_version }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Check for major/minor version bump
|
|
||||||
id: version_check
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
NEW_VERSION=$(grep -m1 '^version' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
|
|
||||||
echo "Detected version in pyproject.toml: $NEW_VERSION"
|
|
||||||
|
|
||||||
LATEST_TAG=$(gh release list --limit 1 --json tagName -q '.[0].tagName' || true)
|
|
||||||
echo "Latest GitHub release: $LATEST_TAG"
|
|
||||||
|
|
||||||
if [ -z "$LATEST_TAG" ]; then
|
|
||||||
echo "No previous release found, treating as new release"
|
|
||||||
echo "should_release=true" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
OLD_MAJOR=$(echo "$LATEST_TAG" | cut -d. -f1)
|
|
||||||
OLD_MINOR=$(echo "$LATEST_TAG" | cut -d. -f2)
|
|
||||||
NEW_MAJOR=$(echo "$NEW_VERSION" | cut -d. -f1)
|
|
||||||
NEW_MINOR=$(echo "$NEW_VERSION" | cut -d. -f2)
|
|
||||||
|
|
||||||
if [ "$NEW_MAJOR" -gt "$OLD_MAJOR" ] || [ "$NEW_MINOR" -gt "$OLD_MINOR" ]; then
|
|
||||||
echo "Major or minor version bump detected: $LATEST_TAG -> $NEW_VERSION"
|
|
||||||
echo "should_release=true" >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
echo "Patch-only change ($LATEST_TAG -> $NEW_VERSION), skipping release"
|
|
||||||
echo "should_release=false" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs: check-version
|
|
||||||
if: needs.check-version.outputs.should_release == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
run: uv python install 3.12
|
|
||||||
|
|
||||||
- name: Install dependencies and build
|
|
||||||
run: |
|
|
||||||
uv sync
|
|
||||||
uv build
|
|
||||||
|
|
||||||
- name: Extract changelog for release
|
|
||||||
id: changelog
|
|
||||||
run: |
|
|
||||||
VERSION=${{ needs.check-version.outputs.new_version }}
|
|
||||||
# Extract the section for this version from CHANGELOG.md
|
|
||||||
awk "/^## \[$VERSION\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md > release_notes.md
|
|
||||||
echo "Extracted release notes:"
|
|
||||||
cat release_notes.md
|
|
||||||
|
|
||||||
- name: Create GitHub Release
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
VERSION=${{ needs.check-version.outputs.new_version }}
|
|
||||||
gh release create "$VERSION" \
|
|
||||||
--title "$VERSION" \
|
|
||||||
--notes-file release_notes.md \
|
|
||||||
dist/unshackle-${VERSION}-py3-none-any.whl \
|
|
||||||
dist/unshackle-${VERSION}.tar.gz
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
name: Version Bump
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 8 * * *" # daily 08:00 UTC
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: version-bump
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
bump:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
with:
|
|
||||||
ref: dev
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install git-cliff
|
|
||||||
uses: taiki-e/install-action@v2
|
|
||||||
with:
|
|
||||||
tool: git-cliff
|
|
||||||
|
|
||||||
- name: Compute next version
|
|
||||||
id: bump
|
|
||||||
run: |
|
|
||||||
CURRENT=$(grep -m1 '^version' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
|
|
||||||
NEXT=$(git cliff --bumped-version)
|
|
||||||
echo "Current version: $CURRENT, bumped version: $NEXT"
|
|
||||||
|
|
||||||
if [ "$NEXT" = "$CURRENT" ]; then
|
|
||||||
echo "No releasable commits since $CURRENT, skipping"
|
|
||||||
echo "skip=true" >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
echo "skip=false" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "version=$NEXT" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Update version files
|
|
||||||
if: steps.bump.outputs.skip == 'false'
|
|
||||||
run: |
|
|
||||||
V=${{ steps.bump.outputs.version }}
|
|
||||||
sed -i "s/^version = \".*\"/version = \"$V\"/" pyproject.toml
|
|
||||||
sed -i "s/^__version__ = \".*\"/__version__ = \"$V\"/" unshackle/core/__init__.py
|
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
if: steps.bump.outputs.skip == 'false'
|
|
||||||
uses: astral-sh/setup-uv@v4
|
|
||||||
|
|
||||||
- name: Update uv.lock
|
|
||||||
if: steps.bump.outputs.skip == 'false'
|
|
||||||
run: uv lock
|
|
||||||
|
|
||||||
- name: Prepend changelog entry
|
|
||||||
if: steps.bump.outputs.skip == 'false'
|
|
||||||
run: git cliff --unreleased --tag ${{ steps.bump.outputs.version }} --prepend CHANGELOG.md
|
|
||||||
|
|
||||||
- name: Commit, tag, and push
|
|
||||||
if: steps.bump.outputs.skip == 'false'
|
|
||||||
run: |
|
|
||||||
V=${{ steps.bump.outputs.version }}
|
|
||||||
git config user.name "github-actions[bot]"
|
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git add pyproject.toml unshackle/core/__init__.py uv.lock CHANGELOG.md
|
|
||||||
git commit -m "chore(release): bump version to $V"
|
|
||||||
git tag "$V"
|
|
||||||
git push origin dev "$V"
|
|
||||||
+37
-2
@@ -6,7 +6,39 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
|
|
||||||
This changelog is automatically generated using [git-cliff](https://git-cliff.org).
|
This changelog is automatically generated using [git-cliff](https://git-cliff.org).
|
||||||
|
|
||||||
## [5.1.0] - 2026-05-29
|
## [5.2.0] - 2026-06-16
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- *vault*: Add VAULT_TAG to share key vault across services
|
||||||
|
- *subtitle*: Data-driven conversion registry + SubtitleEdit 5 support
|
||||||
|
- *subtitle*: Support 'original' sub_format to keep source format
|
||||||
|
- *api*: Aggregate REST download progress with weighting, track labels and mux stage
|
||||||
|
- *logging*: Expand debug-logging coverage, add primitives, redaction & tests
|
||||||
|
- *logging*: Add debug_requests flag and aggregate subtitle-conversion logs
|
||||||
|
- *drm*: Add native DASH ClearKey (org.w3.clearkey) support
|
||||||
|
- *music*: Native music core - shared helpers, album folder template, display cleanup
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- *core*: Replace deprecated ast.Num visitor in FPS parser
|
||||||
|
- *hls*: Decrypt AES-128 (ClearKey) media-playlist keys + per-segment sequence IV
|
||||||
|
- *dl*: Mux hybrid ingredients standalone only when range explicitly requested
|
||||||
|
- *dl*: Make a failed subtitle non-fatal under --skip-subtitle-errors
|
||||||
|
- *api*: Repair REST API downloads, add /services flags & live progress
|
||||||
|
- *dl*: Apply per-service dl config overrides for all options
|
||||||
|
- *security*: Sanitize logs, redact secrets, harden XML parsing
|
||||||
|
- *dl*: Export DRM-free, ClearKey, MonaLisa and server-CDM tracks
|
||||||
|
- *ism*: Rebuild moov init segment for Smooth Streaming decrypt
|
||||||
|
- *ism*: Derive video colour range from CodecPrivateData SPS VUI
|
||||||
|
- *subtitle*: Drive SubtitleEdit 4.x with legacy /convert syntax
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
- *cli*: Replace deprecated click.MultiCommand with click.Group
|
||||||
|
- *dl*: Type the two-pass download helper + pin skipped_subtitles shape
|
||||||
|
|
||||||
|
## [5.1.0] - 2026-06-03
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
@@ -66,6 +98,8 @@ This changelog is automatically generated using [git-cliff](https://git-cliff.or
|
|||||||
### Maintenance
|
### Maintenance
|
||||||
|
|
||||||
- *pre-commit*: Update hook versions in .pre-commit-config.yaml
|
- *pre-commit*: Update hook versions in .pre-commit-config.yaml
|
||||||
|
- *changelog*: Update version date and add new features and fixes for 5.1.0
|
||||||
|
- *changelog*: Update changelog and cleanup readme
|
||||||
|
|
||||||
## [5.0.0] - 2026-05-04
|
## [5.0.0] - 2026-05-04
|
||||||
|
|
||||||
@@ -685,7 +719,8 @@ This changelog is automatically generated using [git-cliff](https://git-cliff.or
|
|||||||
- Reorganize Planned Features section in README for clarity
|
- Reorganize Planned Features section in README for clarity
|
||||||
- Improve track selection logic in dl.py
|
- Improve track selection logic in dl.py
|
||||||
|
|
||||||
[unreleased]: https://github.com/unshackle-dl/unshackle/compare/5.0.0..HEAD
|
[5.2.0]: https://github.com/unshackle-dl/unshackle/compare/5.1.0..5.2.0
|
||||||
|
[5.1.0]: https://github.com/unshackle-dl/unshackle/compare/5.0.0..5.1.0
|
||||||
[5.0.0]: https://github.com/unshackle-dl/unshackle/compare/4.0.0..5.0.0
|
[5.0.0]: https://github.com/unshackle-dl/unshackle/compare/4.0.0..5.0.0
|
||||||
[4.0.0]: https://github.com/unshackle-dl/unshackle/compare/3.0.0..4.0.0
|
[4.0.0]: https://github.com/unshackle-dl/unshackle/compare/3.0.0..4.0.0
|
||||||
[3.0.0]: https://github.com/unshackle-dl/unshackle/compare/2.3.0..3.0.0
|
[3.0.0]: https://github.com/unshackle-dl/unshackle/compare/2.3.0..3.0.0
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "unshackle"
|
name = "unshackle"
|
||||||
version = "5.1.0"
|
version = "5.2.0"
|
||||||
description = "Modular Movie, TV, and Music Archival Software."
|
description = "Modular Movie, TV, and Music Archival Software."
|
||||||
authors = [{ name = "unshackle team" }]
|
authors = [{ name = "unshackle team" }]
|
||||||
requires-python = ">=3.10,<3.13"
|
requires-python = ">=3.10,<3.13"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "5.1.0"
|
__version__ = "5.2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user