Skip to content

fix: refresh saved video metadata once it is a day old - #123

Merged
Priveetee merged 2 commits into
devfrom
fix/refresh-saved-video-metadata
Nov 20, 2026
Merged

Priveetee merged 2 commits into
devfrom
fix/refresh-saved-video-metadata

Conversation

@Priveetee

Copy link
Copy Markdown
Member

Fixes TypeType-Video/TypeType#424 (server side).

Watch later, Favorites and playlists kept the view count a video had on the day it was saved, because the background repair only picked rows with a missing field. Rows saved without a channel avatar also kept an empty picture forever.

  • New metadata_refreshed_at column on watch_later, favorites and playlist_videos.
  • The repair also picks rows older than 24 hours, and rows without a channel avatar after an hour, oldest first.
  • It never replaces a stored value with an empty or zero one, and it marks unavailable videos so they wait for the next refresh.
  • Opening a playlist repairs that playlist, with its own 5-minute cooldown, instead of one cooldown for every playlist of the user.
  • Each run logs how many videos it tried and how many rows it updated.

The batch limits stay the same (8 videos per batch, 3 batches per run). Clients need no change.

@Priveetee
Priveetee merged commit f08d7bf into dev Nov 20, 2026
1 check passed
@Priveetee
Priveetee deleted the fix/refresh-saved-video-metadata branch November 20, 2026 11:11
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.

[Bug]: Playlist videos keep stale view counts and often show no thumbnail

1 participant