Skip to content

Fix: Incomplete history import for marked as watched videos#9201

Open
Shadorc wants to merge 2 commits into
FreeTubeApp:developmentfrom
Shadorc:fix/incomplete-history
Open

Fix: Incomplete history import for marked as watched videos#9201
Shadorc wants to merge 2 commits into
FreeTubeApp:developmentfrom
Shadorc:fix/incomplete-history

Conversation

@Shadorc
Copy link
Copy Markdown
Contributor

@Shadorc Shadorc commented May 27, 2026

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #9021

Description

When video data are parsed from video list, 'description' seems to always be undefined. When the video is marked as watched manually, the same data is used to insert it in the watch history database. This leads to 'description' field not being part of the exported data. However, it is a required field when importing, leading to the exception.

The fix is to mark this 'description' field as optional. It is already the case when importing from YouTube watch history.

Also, I didn't find where this 'description' field was used, if used.

Testing

  1. Go to trending or subscription page
  2. Mark a video as watched
  3. Export history
  4. Check that the exported history contains the video with an empty "description" field
  5. Delete watch history
  6. Import history
  7. Check that the video is correctly part of the history

Desktop

  • OS: Bazzite
  • OS Version:
  • FreeTube version: v0.24.0-beta

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 27, 2026 22:48
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 27, 2026
@Shadorc Shadorc changed the title Make 'description' field optional when importing FreeTube wtahc history Fix: Incomplete history import for marked as watched videos May 27, 2026
auto-merge was automatically disabled May 27, 2026 23:21

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 27, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: waiting for review For PRs that are complete, tested, and ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Incomplete history import for marked as watched videos

2 participants