Skip to content

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

@IxarusNona

Description

@IxarusNona

Guidelines

Describe the bug

  1. mark a video (of which you haven't visited the watching page) as watched.
  2. Export your watch history to a FreeTube (.db) file
  3. (for simplicity sake) delete the previously marked video from your history
  4. Then import the file you made in step 2

the following observations can be quite divers

case 1: no errors or warnings during import, in which case probably no videos are missing from your history. Maybe you had visited the page of the video.

case 2: some errors or warnings during import, afterwhich a message for succes also pops up. Now there are videos missing from your history. but only those that were marked.

case 3: (in case of clean history at step 3) some errors or warnings during import, afterwhich a message for succes also pops up. Now the video from step 1 is still present, but other videos which where previously marked beforehand are missing anyways.

Expected: every video from the export (.db) should be imported in the history

I encountered this happening as I am trying to transfer all my FreeTube Data to an different computer, while still using a different computer.
... I noticed later that to transfer everything it is beter to copy the files mentioned in https://docs.freetubeapp.io/usage/data-location/#notable-files
This was how I expected the history transfer would go, but I guess not.

Issues #776 and #5174 might be refrencing the same thing.

TL;DR
If you want to make a copy of your watch history and you want that exactly the way it already is, then just copy the history.db file instead of exporting your history to a Freetube (.db) file. And paste it over the instance you want to replace.

Exporting is fine (probably), but importing seems to be way to picky and potientially skips a lot of videos.

Expected Behavior

I expected no videos to be skipped/missing after importing it through the settings.
Just like replacing the history.db file (in this case).

Issue Labels

data loss

FreeTube Version

v0.24.0 Bèta

Operating System Version

Windows 11 Version 25H2 (26200.6901), Windows 10 Version 22H2 (19045.6456)

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Upload screenshots or videos

No response

Additional Information

It might be enough to put a warning when exporting/importing that
"in case you want to transfer your entire history, then copying and pasting the files mentioned in https://docs.freetubeapp.io/usage/data-location/#notable-files
might be a better choice"
or something like that.
I dunno...

Nightly Build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To assign

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions