Check for SageTube updates, not YTSage's
The update check asked PyPI for the `ytsage` package's version, asked GitHub for oop7/YTSage's release notes, and pointed the download button at upstream's releases. None of that describes this program. Being reminded to install YTSage was the visible symptom; the cause was that the check had never been repointed when the fork was made. It now reads SageTube's own releases from git.houmeres.sk. Gitea's release API is shaped like GitHub's, so the dialog and the caller are unchanged -- the class keeps its name and signal signature, and only its body moved out to core/ytsage_app_update.py, which is fork-owned and will not conflict on the next merge from upstream. Upstream's inherited tags end in `b` (v5.3.0b and earlier). packaging reads that as a beta marker, so they sort below v5.4.0 and a stable instance cannot be handed one. Tag parsing is defensive anyway: one unparseable tag must not take the whole check down with it. Also: the check is rate-limited to once a day rather than every start, the dialog gained a "Skip this version" that survives a restart, the thread is now joined on close, and the About dialog says SageTube. The three binary updaters -- yt-dlp, Deno, ffmpeg -- legitimately track their own upstreams and are deliberately untouched; ytsage_app_update's docstring says so, because "update" is an overloaded word in this codebase. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,25 @@ records.
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Changed
|
||||
|
||||
- **The update check now looks at SageTube's own releases.** It queried PyPI's
|
||||
`ytsage` package for the version and `oop7/YTSage` for the changelog, then
|
||||
linked to upstream's downloads — a different program's release stream. It now
|
||||
reads `git.houmeres.sk/Houmeres/SageTube` releases, anonymously, and the
|
||||
"Download update" button opens this repository's release page.
|
||||
- The beta channel follows SageTube pre-releases. Upstream's inherited `b` tags
|
||||
(`v5.3.0b` and earlier) read as pre-releases, so a stable instance cannot be
|
||||
offered one.
|
||||
- The check now runs at most once a day rather than on every start.
|
||||
- The About dialog and the update settings say SageTube rather than YTSage. The
|
||||
"Based on YTSage by oop7" attribution link stays — it is the MIT credit.
|
||||
|
||||
### Added
|
||||
|
||||
- **Skip this version** in the update dialog. The skipped version is never
|
||||
offered again; later ones still are.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **The app no longer offers upstream YTSage's releases as its own updates.**
|
||||
|
||||
Reference in New Issue
Block a user