Skip to content

Say what the yt-dlp updater will actually do at startup - #180

Merged
umputun merged 1 commit into
masterfrom
fix/ytdlp-updater-status-log
Sep 20, 2026
Merged

umputun merged 1 commit into
masterfrom
fix/ytdlp-updater-status-log

Conversation

@umputun

@umputun umputun commented Sep 20, 2026

Copy link
Copy Markdown
Owner

the yt-dlp updater's startup line keyed off the interval alone, so it could not be trusted as a signal that the ytdlp_update section had been read.

two cases were actively misleading. An interval with no command logged yt-dlp updater enabled, interval 24h and then never executed anything, because the tick path is guarded on the command being non-empty. force_on_startup: true with no interval logged yt-dlp periodic updater is disabled, which reads as the whole feature being off even though the startup run does happen.

the line now states the resulting behaviour: disabled when no command is set, on startup only, every interval, both, or never when a command is set with neither trigger.

it also moved inside the goroutine, after the disable_updates early return. Where it was, a config with a command and disable_updates: true announced work that Do was never reached to perform, which is the same untruthful status this change is about.

README.md said an omitted interval means yt-dlp will not be updated. That is false when force_on_startup is set.

context is #169, where the reporter sees no evidence the command is invoked. This does not diagnose that report and it stays open; the startup line was simply not good enough to tell the two situations apart.

Related to #169

The startup line keyed off the interval alone, so a config with an interval and
no command logged 'updater enabled' and then never ran anything, and one with
only force_on_startup logged 'periodic updater is disabled', which reads as the
whole feature being off. Neither told the operator whether the ytdlp_update
section had been read at all, and config parsing is a plain yaml.Unmarshal, so a
misplaced key is silently ignored.

The line now states the resulting behaviour: disabled with no command, on startup
only, every interval, both, or never when a command is set with neither trigger.

README claimed an omitted interval means yt-dlp will not be updated, which is
false when force_on_startup is set.

Related to #169
Copilot AI lite review requested due to automatic review settings September 20, 2026 02:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit 361fe91 into master Sep 20, 2026
4 checks passed
@umputun
umputun deleted the fix/ytdlp-updater-status-log branch September 20, 2026 02:18
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.

2 participants